При выполнении update-manager
для обновления 19.04 до 19,10, я получаю это в консоли:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Попытка do-release-upgrade
:
$ do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Так попытка upgrade
:
$ sudo apt-get upgrade
The following packages have been kept back:
libsnmp30
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
На самом деле кажется, что я ничего не могу установить:
$ sudo apt-get install emacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libsnmp30 : Depends: libsensors5 (>= 1:3.5.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Попытка --fix-broken
:
$ sudo apt --fix-broken install
Correcting dependencies... failed.
The following packages have unmet dependencies:
libsnmp30 : Depends: libsensors5 (>= 1:3.5.0) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Так или иначе libsnmp30, кажется, преступник. Попытка установить libsnmp30
, Я получаю это:
$ sudo apt-get install libsnmp30
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:
libsnmp30 : Depends: libsensors5 (>= 1:3.5.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Затем попытка libsensors5
:
$ sudo apt-get install libsensors5
The following packages have unmet dependencies:
libsensors5 : Depends: libsensors-config but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Затем попытка libsensors-config
, это - результат, который выглядит достаточно страшным:
$ sudo apt-get install libsensors-config
The following additional packages will be installed:
policykit-1-gnome
Suggested packages:
lm-sensors
The following packages will be REMOVED:
apturl cheese chrome-gnome-shell colord default-jre deja-dup evolution-data-server gdm3 gir1.2-gst-plugins-base-1.0 gir1.2-mutter-2
gir1.2-mutter-4 gir1.2-rb-3.0 gir1.2-totem-1.0 gnome-initial-setup gnome-online-accounts gnome-session-bin gnome-shell gnome-shell-extension-appindicator
[ ... lots and lots of packages ... ]
The following NEW packages will be installed:
libsensors-config policykit-1-gnome
0 upgraded, 2 newly installed, 120 to remove and 0 not upgraded.
Jikes!
Подробнее:
$ apt-cache policy libsnmp30
libsnmp30:
Installed: 5.7.3+dfsg-1.8ubuntu3.1
Candidate: 5.7.3+dfsg-5ubuntu1.2
Version table:
5.7.3+dfsg-5ubuntu1.2 500
500 http://se.archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages
5.7.3+dfsg-5ubuntu1 500
500 http://se.archive.ubuntu.com/ubuntu disco/main amd64 Packages
*** 5.7.3+dfsg-1.8ubuntu3.1 100
100 /var/lib/dpkg/status
Информация о Libsensors:
$ apt-cache policy libsensors5 libsensors-config
libsensors5:
Installed: (none)
Candidate: 1:3.5.0-3ubuntu1
Version table:
1:3.5.0-3ubuntu1 500
500 http://se.archive.ubuntu.com/ubuntu disco/main amd64 Packages
libsensors-config:
Installed: (none)
Candidate: 1:3.5.0-3ubuntu1
Version table:
1:3.5.0-3ubuntu1 500
500 http://se.archive.ubuntu.com/ubuntu disco/main amd64 Packages
500 http://se.archive.ubuntu.com/ubuntu disco/main i386 Packages
Удаление libsensors4
:
$ sudo apt remove libsensors4
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libgl1-mesa-dri : Depends: libsensors4 (>= 1:3.0.0) but it is not going to be installed
libsensors-config : Conflicts: libsensors4:i386 but 1:3.4.0-4 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Информация о libgl1-mesa-dri
:
$ apt-cache policy libgl1-mesa-dri
libgl1-mesa-dri:
Installed: 19.3~git1908270730.e6eb44~oibaf~b
Candidate: 19.3~git1908270730.e6eb44~oibaf~b
Version table:
*** 19.3~git1908270730.e6eb44~oibaf~b 100
100 /var/lib/dpkg/status
19.0.8-0ubuntu0~19.04.1 500
500 http://se.archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages
19.0.2-1ubuntu1 500
500 http://se.archive.ubuntu.com/ubuntu disco/main amd64 Packages
У Вас был a ppa
установленный, который был удален в какой-то момент (возможно, на более раннем обновлении Ubuntu), но пакеты, установленные от этого ppa
находятся все еще в Вашей системе, приводящей к проблемам зависимости.
От Вашего apt
выводы, это, кажется, ppa:oibaf/graphics-drivers.
Попытайтесь добавить тот же самый ppa
снова, это, кажется, доступно для космического:
sudo add-apt-repository ppa:oibaf/graphics-drivers
Затем выполненный
sudo apt --fix-broken install
Если это работало, можно удалить это ppa
и все его пакеты, если Вам нравится использовать ppa-purge
sudo apt install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers
В конце я вышел бы для очистки не имеющих ссылки пакетов:
sudo apt autoremove