I am trying to install R 4.0 on Ubuntu 18.04.4 LTS but I keep getting errors of
> sudo apt install r-base-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base-core : Depends: libc6 (>= 2.29) but 2.27-3ubuntu1 is to be installed
Depends: libicu66 (>= 66.1-1~) but it is not installable
Depends: libreadline8 (>= 6.0) but it is not installable
Recommends: r-recommended but it is not going to be installed
Recommends: r-base-dev but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
when trying to install. I have removed and deleted R 3.6.3 and have added
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/
in my /etc/apt/sources.list
file. Note that the above requires libc6 (>= 2.29)
yet from what I have seen, it is NOT AVAILABLE for 18.04. Does this mean I have to upgrade to 19.04, or 20.04 in order to run R 4.0?
Note that if you’re not using 18.04, you can find the relevant repository from the R Project Ubuntu list, named for each release. Ubuntu 18.04 is named Bionic Beaver, and the most recent version of R is 4.0, hence the naming convention of ubuntu bionic-cran40.
You plan to upgrade your server installation from Ubuntu 18.04 to Ubuntu 20.04 LTS? It is also the best time to migrate to R 4.0 ! By the way, if you always found difficult to install R packages for geographical data on Ubuntu, this time is over. Just follow the guide…
To receive and install the future updates of R Language on your system, simply use the update and upgrade command of Ubuntu using the APT package manager. 7. Uninstall or Remove R language – Ubuntu 22.04
The first release of Ubuntu 20.04 Focal Fossa for server or desktop is available for download. If you are still using Ubuntu 18.04 you may be proposed this upgrade. During the last few months, you also heard about the release of R 4.0 as announced by the R Core team.
I am using Ubuntu 18.04, for this there should be a single source
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/
in /etc/apt/sources.list
Unfortunately, I added deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
by mistake which I removed to install R 4.0
R is successfully installed now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With