
Al instalar una versión más reciente de r eliminando la versión anterior de r (3.0.2), tuve el siguiente problema.
anupam :~$ sudo apt-get install r-base
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-base-core (>= 3.1.3.20150410-1trusty) but it is not going to be installed
Depends: r-recommended (= 3.1.3.20150410-1trusty) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
He revisado la respuesta más votada.instalar la última versión de R en ubuntu,,
Intenté instalarlo desde aptitude
también... pero no funcionó. Lo intenté sudo apt-get autoclean
también... ¿cómo podría resolver esto?
Respuesta1
Como tienes confiable (14.04), y no preciso (12.04), la línea
deb http://cran.rstudio.com/bin/linux/ubuntu precise/
necesita ser
deb http://cran.rstudio.com/bin/linux/ubuntu trusty/
.
Cambie esa línea, luego ejecute
sudo apt-get update
sudo apt-get install r-base
.