I need to install r-base
3.0.2 because a needed library isn't compatible with 3.0.3 yet (the latest).
I can install the older version of R like so:
sudo apt-get install r-base=3.0.2-1precise0
However all the dependencies of r-base try and install with 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.
I guess I could install every dependency first, however there are a lot of them.
r-cran-boot r-cran-class r-cran-cluster r-cran-codetools r-cran-foreign r-cran-kernsmooth r-cran-lattice
r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival
r-recommended
I'm mostly familiar with Centos and Yum.
Is there a way to 'version lock' r and all it's dependencies to 3.0.2 instead of 3.0.3 ?
root@foo:~# apt-cache policy r-base
r-base:
Installed: (none)
Candidate: 3.0.3-1precise0
Version table:
3.0.3-1precise0 0
500 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/ Packages
3.0.2-1precise0 0
500 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-6precise0 0
500 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-5precise0 0
500 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/ Packages
3.0.1-3precise 0
500 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/ Packages