Проблема с обновлением apt-get и зависимостями [дубликат]

Я пытаюсь обновить свою систему, но когда я выполняю команду, происходит следующее:

plex@plex-server:~$ sudo apt-get upgrade
[sudo] password for plex:
Reading package lists...
Building dependency tree         
Reading state information... Done  
You may want to run 'apt --fix-broken install' to fix it.
The following packages have unmet dependencies: 
  libgail-3-0 : Depends: libgtk-3-0 (=3.22.30-1ubuntu4) but 3.22.30-1ubuntu1 is installed
  libgtk-3-bin : Depends: libgtk-3-0 (>= 3.22.30-1ubuntu4) but 3.22.30-1ubuntu1 is installed
E: Unmet dependencies. Run 'apt --fix-broken install' without packages (or specify a solution).

Я уже выполнил обновление, и я пробовал autoclean, autoremove, --fix-missing, но это все равно не работает.

ИЗМЕНИТЬ Это то, что у меня есть в моем файле sources.list:

#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ 
bionic main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://es.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-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://es.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ bionic universe
deb http://es.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-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://es.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://es.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-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://es.archive.ubuntu.com/ubuntu/ bionic-backports main restricted 
universe multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-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 bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main 
restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
0
задан 5 October 2019 в 22:27

2 ответа

Давайте смотреть на ключевую роль сообщения об ошибке:

Los siguientes paquetes tienen dependencias incumplidas: 
  libgail-3-0 : Depende: libgtk-3-0 (=3.22.30-1ubuntu4) pero 3.22.30-1ubuntu1 está instalado
  libgtk-3-bin : Depende: libgtk-3-0 (>= 3.22.30-1ubuntu4) pero 3.22.30-1ubuntu1 está instalado

Это говорит, что Вы пытаетесь обновить более новые пакеты с более старыми версиями. Считайте его снова, играя пристальное внимание к различию между номерами версий.

Давайте использовать удобный способный инструмент для наблюдения, из какого репозитория эти пакеты прибыли:

$ apt cache madison libgtk-3-bin
libgtk-3-bin | 3.22.30-1ubuntu1 | http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
libgtk-3-bin | 3.22.30-1ubuntu4 | http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages

О, посмотрите, ОБА пакета перечислены. Каждый находится в бионическом, другом в бионических обновлениях.

Таким образом, система жалуется, что НУЖДАЕТСЯ в версии от бионических обновлений, но не может установить его.

Время для рассмотрения источников в программном обеспечении и панели управления Обновлений (или в/etc/apt/sources.list). Удостоверьтесь, что repo для бионических обновлений присутствует и включил.

1
ответ дан 22 December 2019 в 00:25

Сначала попробуйте эту команду:

apt --fix-broken install

И затем:

sudo apt update
0
ответ дан 22 December 2019 в 00:25

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

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