
Necesito instalar R
3.0.2 porque una biblioteca necesaria aún no es compatible con 3.0.3 (la última).
Puedo instalar la versión anterior de R así:
sudo apt-get install r-base=3.0.2-1precise0
Sin embargo, todas las dependencias de r-base intentan instalarlas con 3.0.3.
root@foo:~# apt-get install r-base=3.0.2-1precise0
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.0.2-1precise0) but 3.0.3-1precise0 is to be installed
E: Unable to correct problems, you have held broken packages.
¿Cómo puedo instalar r-base 3.0.2 y todas las dependencias como 3.0.2?
Respuesta1
Primero retire los paquetes.
sudo apt-get remove r-base
un poco de limpieza
sudo apt-get clean; sudo apt-get autoclean
ReinstalarRforzando una versión anterior
sudo apt-get install r-base=3.0.2-1precise0
Respuesta2
Puede degradar paquetes simplemente instalándolos en la parte superior. apt es lo suficientemente inteligente como para manejar esto correctamente.
Para instalar R 3.0.2 ejecuté dpkg -S /usr/bin/R y descubrí que el binario fue proporcionado por r-base-core
. Degradación que solucionó el problema
apt-get install r-base-core=3.0.2-1precise0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
r-cran-foreign ...
Use 'apt-get autoremove' to remove them.
Suggested packages:
ess r-doc-info r-doc-pdf r-mathlib
The following packages will be REMOVED:
r-base r-cran-class r-cran-cluster r-cran-kernsmooth r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-recommended
The following packages will be DOWNGRADED:
r-base-core
0 upgraded, 0 newly installed, 1 downgraded, 9 to remove and 123 not upgraded.
Need to get 21.5 MB of archives.
apt-get install r-base=3.0.2-1precise0
...
apt-get install r-recommended=3.0.2-1precise0
...
Respuesta3
Deshabilite el repositorio "Universe" de software y actualizaciones y luego ejecute los siguientes comandos en la terminal,
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get install r-base