I wanted to install the new R version so I did a purge by removing all r-*. And then I broke everything unfortunately. I try to reinstall R project by typing
sudo apt install r-base r-base-core r-recommended
and then I obtain
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.27) but 2.23-0ubuntu11 is to be
installed
Depends: libcurl4 (>= 7.28.0) but it is not installable
Depends: libicu60 (>= 60.1-1~) but it is not installable
Depends: libreadline7 (>= 6.0) but it is not installable
Recommends: r-base-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Does anyone know how to solve this ?
sudo apt -f install
& explore anything it reports, I would fix those first). I'd also view theapt
logs to see what you removed with your first listed command, and use that as a guide on fixing your system. I'd suggest closely avoiding using wildcards on remove commands unless you closely scrutinize what's being removed – guiverc Mar 13 '19 at 22:37deb https://cloud.r-project.org/bin/linux/ubuntu cosmic-cran35/
instead of debhttps://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/
. Thank you ! – Akusa Mar 13 '19 at 22:57