Проблемы с установкой r-base (Следующие пакеты имеют неудовлетворенные зависимости.) [Закрыто]

Я пытаюсь установить R на Ubuntu. Я относительно новичок и неопытен, поэтому, возможно, совершил глупую ошибку. Я использую Ubuntu 19.04

Я устанавливаю R с помощью apt: sudo apt-get install r-base

Когда я запускаю это, я получаю такую ​​ошибку:

Чтение списков пакетов ... Готово {{ 1}} Построение дерева зависимостей
Чтение информации о состоянии ... Готово Не удалось установить некоторые пакеты. Это может означать, что вы запросили невозможную ситуацию или, если вы используете нестабильный дистрибутив, некоторые необходимые пакеты еще не созданы или перемещены из Incoming. { {1}} Следующая информация может помочь разрешить ситуацию:

The following packages have unmet dependencies.
 r-base : Depends: r-base-core (>= 3.6.3-1bionic) but it is not going to be installed
          Depends: r-recommended (= 3.6.3-1bionic) but it is not going to be installed
          Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Я изучил этот вопрос: Как разрешить неудовлетворенные зависимости после добавления PPA? для получения помощи.

Я выполнил

  • sudo apt-get update
  • sudo apt-get upgrade (0 для обновления, 0 для новой установки, 0 для удаления и 0 для отказа от обновления).

Они запускаются без проблем.

Затем я запустил sudo apt-get -o Debug :: pkgProblemResolver = yes dist-upgrade

На это ответили:

    Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) wine-stable:amd64 < 3.0.1ubuntu1 -> 5.0.0~disco @ii umU Ib >
Broken wine-stable:amd64 Depends on wine-stable-i386:amd64 < none @un H > (= 5.0.0~disco)
  Considering wine-stable-i386:i386 0 as a solution to wine-stable:amd64 0
  Holding Back wine-stable:amd64 rather than change wine-stable-i386:amd64
 Try to Re-Instate (1) wine-stable:amd64
Done
Calculating upgrade... Done
The following packages have been kept back:
  wine-stable
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.

Поэтому я удалил и переустановил Wine-stable. При повторном запуске отладки пакеты не показывались.

Я считаю, что моя проблема может быть связана с моим PPA. Я отключил пару из них.

Вывод cat /etc/apt/sources.list:

# deb cdrom:[Ubuntu 19.04 _Disco Dingo_ - Release amd64 (20190416)]/ disco main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ disco main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ disco-updates main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ disco universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco universe
deb http://gb.archive.ubuntu.com/ubuntu/ disco-updates universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ disco multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ disco-updates multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ disco-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu disco partner
# deb-src http://archive.canonical.com/ubuntu disco partner

deb http://security.ubuntu.com/ubuntu disco-security main restricted
# deb-src http://security.ubuntu.com/ubuntu disco-security main restricted
deb http://security.ubuntu.com/ubuntu disco-security universe
# deb-src http://security.ubuntu.com/ubuntu disco-security universe
deb http://security.ubuntu.com/ubuntu disco-security multiverse
# deb-src http://security.ubuntu.com/ubuntu disco-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
# deb https://dl.winehq.org/wine-builds/ubuntu/ disco main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ disco main
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
# deb-src https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
# deb http://cran.rstudio.com/bin/linux/ubuntu disco/
# deb-src http://cran.rstudio.com/bin/linux/ubuntu disco/

вывод cat /etc/apt/sources.list.d/*:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
# deb http://ppa.launchpad.net/jonathonf/gcc-7.1/ubuntu disco main
# deb http://ppa.launchpad.net/jonathonf/gcc-7.1/ubuntu disco main
deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main
# deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main
deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main
# deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main

В разделе «Программное обеспечение и обновления -> Другое программное обеспечение» я снял отметку с нескольких пунктов, которые, возможно, помогли или ухудшили ситуацию: введите описание изображения здесь

Надеюсь, я добавил все, что может оказаться полезным. Дайте мне знать, если вам понадобятся более подробные сведения.

0
задан 24 March 2020 в 19:22

1 ответ

Это - простая фиксация. Бионический-cran35 пытается работать, поскольку это присутствует в source.list. Это от предыдущей испорченной попытки установки. Комментирование

deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ 

строка в коде зафиксировала этот ptoblem.

Бионический от предыдущих дистрибутивов Ubuntu и был заменен Дискотекой в 19,04.

Спасибо @steeldriver для указания на мой дефект.

0
ответ дан 7 April 2020 в 23:29

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

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