Skip to content
Prev 2390 / 3656 Next

Cannot Install R to Trusty 14.04

Thanks for the suggestion Luis, no changes however:

dhis at tmctpsql:~$ sudo apt-get install -f
[sudo] password for dhis:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So I rand the second command, here is the output:

dhis at tmctpsql:~$ sudo apt-get --simulate install r-base-core
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: libgomp1 (>= 4.9) but 4.8.2-19ubuntu1 is to be
installed
               Recommends: r-recommended but it is not going to be installed
               Recommends: r-base-dev but it is not going to be installed
               Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I did however try installing trusty again to another VM, and that one
worked without issue. I used the following how-to this time:
http://r-interface.blogspot.com/2012/04/install-r-jgr-and-deducer-in-ubuntu.html

Not sure what is going on with this one however. Here is a list of commands
that I ran, I'm guessing I followed a bum tutorial the first time. The
results are always the same: Unable to correct problems, you have held
broken packages.

#Attempt 1:
sudo vi /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base

#Further Attempts:
sudo vi /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base
sudo apt-get install r-base-dev
sudo apt-get remove --purge r-cran* r-base*
sudo apt-get install r-base-dev
sudo apt-get install r-base-core
sudo vi /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base-dev
sudo apt-get autoclean
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get -f install
sudo vi /etc/apt/sources.list
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get install r-base-dev
sudo apt-get clean; sudo apt-get autoclean
sudo apt-get install r-base-dev=3.1.3-1trusty
sudo apt-get install r-base-dev=3.1.2-1trusty0

Timothy Harding
RPCV Vanuatu
Skype: hardingt at gmail.com
+1 (541) 632-6623

On Wed, Apr 15, 2015 at 11:23 PM, Lu?s de Sousa <luis.a.de.sousa at gmail.com>
wrote: