Erro ao instalar o R no Ubuntu 16.04 (em execução no Chromebook através do Crouton)

1

Estou com dificuldades para instalar o R no Ubuntu 16.04. Percebo que perguntas semelhantes foram postadas antes e tentei todas as soluções que foram fornecidas, mas nenhuma parece funcionar para mim.

Estou seguindo as instruções de este post .

Eu nunca usei Linux nem o Terminal antes de ontem, então, com toda honestidade, eu realmente não sei o que estou fazendo e apenas tentei os vários comandos que as pessoas disseram que podem funcionar, mas infelizmente, sem aproveitar.

Esta é a mensagem de erro que recebo:

The following packages have unmet dependencies: r-base : Depends: r-base-
core (>= 3.4.3-1xenial0) but it is not installable Depends: r-recommended 
(= 3.4.3-1xenial0) but it is not going to be installed Recommends: r-base-
html 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.

Qualquer conselho ou orientação muito apprecaited! Obrigado pela ajuda

Aqui estão as saídas para o que foi solicitado:

(xenial)samerbibi@localhost:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
(xenial)samerbibi@localhost:~$ apt-cache policy r-base-core
r-base-core:
  Installed: (none)
  Candidate: (none)
  Version table:

(xenial)samerbibi@localhost:~$ sudo apt-get update
Get:1 http://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease [3590 B]
Get:2 https://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease [3590 B]
Hit:3 http://ppa.launchpad.net/marutter/rdev/ubuntu xenial InRelease           
Hit:4 http://ppa.launchpad.net/marutter/rrutter/ubuntu xenial InRelease      
Fetched 7180 B in 2s (3468 B/s)                                              
Reading package lists... Done
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
E: Failed to stat /var/lib/apt/lists/partial/cran.rstudio.com_bin_linux_ubuntu_xenial_InRelease - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Duplicate sources.list entry https://cran.rstudio.com/bin/linux/ubuntu xenial/ Release

Ok, acredito que consegui excluir a duplicata, portanto, não deve haver conflito entre http e https. Obteve o seguinte:

(xenial)samerbibi@localhost:~$ sudo apt-get update
Hit:1 https://cran.rstudio.com/bin/linux/ubuntu xenial/ InRelease
Hit:2 http://ppa.launchpad.net/marutter/rdev/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/marutter/rrutter/ubuntu xenial InRelease      
Reading package lists... Done                      
(xenial)samerbibi@localhost:~$ sudo apt-get install r-base
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.4.3-1xenial0) but it is not installable
          Depends: r-recommended (= 3.4.3-1xenial0) but it is not going to be installed
          Recommends: r-base-html 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.
    
por Samer Bibi 13.01.2018 / 08:56

0 respostas