Ошибка установки R в Ubuntu 16.04 (работает на Chromebook через Crouton)

У меня проблемы с установкой R в Ubuntu 16.04. Я понимаю, что подобные вопросы были опубликованы ранее, и я попробовал все решения, которые были предоставлены, но ни один из них, похоже, не работает для меня.

Я следую инструкциям из этого поста .

Я никогда не использовал ни Linux, ни Terminal до вчерашнего дня, так что, честно говоря, я действительно не знаю, что делаю, и просто пробовал различные команды, которые, как говорили люди, могли бы работать, но, к сожалению , но безрезультатно.

Это сообщение об ошибке, которое я получаю:

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.

Любой совет или руководство высоко ценится! Спасибо за помощь

Вот результаты того, что было запрошено:

(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

Хорошо, я считаю, что мне удалось удалить дубликат, поэтому не должно быть конфликта между http и https. Получил следующее:

(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.
1
задан 14 January 2018 в 21:29

0 ответов

Другие вопросы по тегам:

Похожие вопросы: