Установить R Ubuntu 17.10 [Сломанные пакеты]

Я пытаюсь установить R на ubuntu 17.10

У меня есть следующий вывод:

$ sudo apt 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: libpng12-0 (>= 1.2.13-4) but it is not installable 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.

Я пробовал следующее:

$sudo dpkg --get-selections | grep deinstall

Нет выхода.

$sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. $sudo aptitude full-upgrade No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used.

Так что пока я застрял в том, как идти дальше ..

0
задан 14 November 2017 в 17:18

6 ответов

Я добавил неверный rep:

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/' 

должен быть

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu artful/'
0
ответ дан 22 May 2018 в 16:14

я добавил неправильный рэп:

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

должно быть

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu artful/'
0
ответ дан 18 July 2018 в 03:18

Я добавил неверный rep:

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

должен быть

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu artful/'
0
ответ дан 24 July 2018 в 17:48

Сначала вы должны удалить неправильный «xenial» репозиторий, выполнив:

sudo add-apt-repository -r 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

, затем установите r-base-core, выполнив:

sudo apt install r-base-core
0
ответ дан 22 May 2018 в 16:14

Сначала вы должны удалить неправильный «xenial» репозиторий, выполнив:

sudo add-apt-repository -r 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

, затем установите r-base-core, выполнив:

sudo apt install r-base-core
0
ответ дан 18 July 2018 в 03:18

Сначала вы должны удалить неправильный «xenial» репозиторий, выполнив:

sudo add-apt-repository -r 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

, затем установите r-base-core, выполнив:

sudo apt install r-base-core
0
ответ дан 24 July 2018 в 17:48

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

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