-
-
Save spuder/f7b05b3e742494f8a4d9 to your computer and use it in GitHub Desktop.
R install problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Suggested the solution provided here: http://askubuntu.com/questions/435232/install-older-version-of-software-and-dependencies/435256?noredirect=1#435256 | |
# It appears that 3.0.3 is still installed even though I requested 3.0.2 | |
root@SRyvolaVM:~# apt-get remove r-base r-recommended | |
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 r-cran-cluster libxfixes3 libxcomposite1 libjpeg-turbo8-dev r-cran-kernsmooth libxxf86dga1 | |
gfortran-4.6 libjpeg-turbo8 r-cran-rpart libjpeg8 libblas-dev libxml-parser-perl x11-utils ttf-dejavu-core | |
r-cran-mass unzip r-cran-mgcv r-cran-spatial libxxf86vm1 xterm libgl1-mesa-dri libxcb-glx0 libgl1-mesa-glx | |
libncurses5-dev r-base-dev libcairo2 libx11-xcb1 libglapi-mesa r-cran-lattice r-cran-nlme liblapack3gf | |
libfile-desktopentry-perl r-doc-html r-cran-nnet libthai-data cdbs libreadline6-dev libpcrecpp0 libdatrie1 | |
fontconfig intltool r-cran-class liblapack-dev xbitmaps libtinfo-dev libpixman-1-0 r-base-core libxaw7 | |
libxinerama1 libjpeg-dev python-scour libxft2 fontconfig-config libfile-basedir-perl gfortran libice6 | |
x11-xserver-utils r-cran-survival libthai0 zlib1g-dev libxmu6 libxpm4 xdg-utils libxrender1 r-cran-boot libblas3gf | |
libxss1 tcl8.5 libtiff4 libfontenc1 libjpeg8-dev libxtst6 libutempter0 zip tk8.5 x11-common libfile-mimeinfo-perl | |
libgfortran3 libpcre3-dev libfontconfig1 dh-translations r-cran-codetools libpango1.0-0 libsm6 r-base-html | |
libxdamage1 libxcb-render0 libpaper-utils libxi6 libxcb-shape0 libxcursor1 libxcb-shm0 libxt6 libxv1 libxrandr2 | |
r-cran-matrix libbz2-dev libpaper1 libllvm3.0 libreadline-dev libpng12-dev | |
Use 'apt-get autoremove' to remove them. | |
The following packages will be REMOVED: | |
r-base r-recommended | |
0 upgraded, 0 newly installed, 2 to remove and 65 not upgraded. | |
After this operation, 116 kB disk space will be freed. | |
Do you want to continue [Y/n]? y | |
(Reading database ... 85% | |
(Reading database ... 60995 files and directories currently installed.) | |
Removing r-base ... | |
Removing r-recommended ... | |
root@SRyvolaVM:~# | |
root@SRyvolaVM:~# | |
root@SRyvolaVM:~# apt-get clean | |
root@SRyvolaVM:~# apt-get autoclean | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
root@SRyvolaVM:~# 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 tried installing r-recommended before r-base | |
root@SRyvolaVM:~# apt-get install r-recommended=3.0.2-1precise0 | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following NEW packages will be installed: | |
r-recommended | |
0 upgraded, 1 newly installed, 0 to remove and 65 not upgraded. | |
Need to get 2,672 B of archives. | |
After this operation, 42.0 kB of additional disk space will be used. | |
WARNING: The following packages cannot be authenticated! | |
r-recommended | |
Install these packages without verification [y/N]? y | |
Get:1 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/ r-recommended 3.0.2-1precise0 [2,672 B] | |
Fetched 2,672 B in 0s (31.7 kB/s) | |
Selecting previously unselected package r-recommended. | |
(Reading database ... 60989 files and directories currently installed.) | |
Unpacking r-recommended (from .../r-recommended_3.0.2-1precise0_all.deb) ... | |
Setting up r-recommended (3.0.2-1precise0) ... | |
root@SRyvolaVM:~# apt-get install r-base=3.0.2-1precise0 | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Suggested packages: | |
ess r-doc-info r-doc-pdf | |
The following NEW packages will be installed: | |
r-base | |
0 upgraded, 1 newly installed, 0 to remove and 66 not upgraded. | |
Need to get 38.3 kB of archives. | |
After this operation, 73.7 kB of additional disk space will be used. | |
WARNING: The following packages cannot be authenticated! | |
r-base | |
Install these packages without verification [y/N]? y | |
Get:1 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ precise/ r-base 3.0.2-1precise0 [38.3 kB] | |
Fetched 38.3 kB in 0s (1,842 kB/s) | |
Selecting previously unselected package r-base. | |
(Reading database ... 60991 files and directories currently installed.) | |
Unpacking r-base (from .../r-base_3.0.2-1precise0_all.deb) ... | |
Setting up r-base (3.0.2-1precise0) ... | |
Yet when I run R, it shows R is still 3.0.3 | |
root@SRyvolaVM:~# R | |
R version 3.0.3 (2014-03-06) -- "Warm Puppy" | |
... | |
Checking dpkg -l shows that 3.0.2 is installed | |
dpkg -l r-base | |
Desired=Unknown/Install/Remove/Purge/Hold | |
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend | |
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) | |
||/ Name Version Description | |
+++-=======================-=======================-============================================================== | |
ii r-base 3.0.2-1precise0 GNU R statistical computation and graphics system | |
which R | |
/usr/bin/R | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out, had to downgrade all packages
apt-get install r-core-base=3.0.2-1precise0
apt-get install r-recommended=3.0.2-1precise0
apt-get install r-core=3.0.2-1precise0