Hi,

I am running a dual-booted Ubuntu 16.04 from a USB stick and having problems 
installing R.
I have been following the steps at this site: 
https://www.datascienceriot.com/how-to-install-r-in-linux-ubuntu-16-04-xenial-xerus/kris/
Below is the the output and the commands from the terminal:

sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a 
/etc/apt/sources.list
[sudo] password for atakan: 
deb http://cran.rstudio.com/bin/linux/ubuntu xenial/

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.com
gpg: key E084DAB9: "Michael Rutter <marut...@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

gpg -a --export E084DAB9 | sudo apt-key add -
OK

sudo apt-get update
Hit:1 http://tr.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease               
                         
Hit:3 http://tr.archive.ubuntu.com/ubuntu xenial-updates InRelease              
                         
Hit:4 http://tr.archive.ubuntu.com/ubuntu xenial-backports InRelease            
   
Hit:5 http://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease             
Reading package lists... Done
W: Target Packages (Packages) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:57
W: Target Translations (en_US) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:57
W: Target Translations (en) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:57
W: Target Packages (Packages) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:58
W: Target Translations (en_US) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:58
W: Target Translations (en) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:58
W: Target Packages (Packages) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:59
W: Target Translations (en_US) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:59
W: Target Translations (en) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:59
W: Target Packages (Packages) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:57
W: Target Translations (en_US) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:57
W: Target Translations (en) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:57
W: Target Packages (Packages) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:58
W: Target Translations (en_US) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:58
W: Target Translations (en) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:58
W: Target Packages (Packages) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:59
W: Target Translations (en_US) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:59
W: Target Translations (en) is configured multiple times in 
/etc/apt/sources.list:54 and /etc/apt/sources.list:59

sudo apt-get install r-base r-base-dev
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.3.0-1xenial0) but it is not going to be 
installed
          Depends: r-recommended (= 3.3.0-1xenial0) but it is not going to be 
installed
          Recommends: r-base-html but it is not going to be installed
 r-base-dev : Depends: r-base-core (>= 3.3.0-1xenial0) but it is not going to 
be installed
              Depends: gfortran but it is not going to be installed
              Depends: libblas-dev but it is not going to be installed or
                       libatlas-base-dev but it is not going to be installed
              Depends: liblapack-dev but it is not going to be installed or
                       libatlas-base-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Any help is appreciated, thanks.

Atakan Okan
                                          
_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to