I was delighted to hear that R developers finally shipped R 3.5 through their CRAN mirrors and decided to install it immediately.I added the requisite PPA as mentioned in the CRAN website,deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu bionic-cran35/
but after running the commandsudo apt-get update
,I found the following warning.
expected bionic-cran35/ but got bionic
The screenshot is attached here for further clarity. R_Bionic_installation_error
I was too optimistic and went on with the next codesudo apt-get install r-base
and as expected, the installation failed. The errors are shown here.
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 : Depends: r-recommended (= 3.5.0-1bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
It is worth mentioning that it is not a secure APT related problem and I had already added the required apt-key . Also, I do not have any previous R installation in my system.I need the updated version out there.(The R in Bionic Universe is still 3.4.4)
Am I missing something?
UPDATE : The bug has been fixed by Michael Rutter and his Debian team. A big thanks to everyone involved.
sudo apt-get install r-base
code. – pineapple Jun 13 '18 at 17:13W: Conflicting distribution: http://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease (expected bionic-cran35/ but got bionic)
and dependency problem while installingr-base
. As temporary solution you can use marutter PPA as described in this answer. – N0rbert Jun 13 '18 at 20:52