Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it impossible to install R 4.0 on Ubuntu 18.04.4 LTS because r-base-core requires a libc6 version >= 2.29?

Tags:

linux

r

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?

like image 643
user321627 Avatar asked May 04 '20 06:05

user321627


People also ask

What version of R is installed on Ubuntu?

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.

Is it time to upgrade your Ubuntu Server installation to R?

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…

How do I update R language in Ubuntu?

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

Is it possible to upgrade from Ubuntu 18 04 to 20 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.


1 Answers

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.

like image 121
Shubham Gupta Avatar answered Sep 28 '22 03:09

Shubham Gupta