我犯了一个可怕的错误,并通过执行以下操作在没有在其他分区中进行备份的情况下升级到了18.04:
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt-get autoremove
sudo apt install update-manager-core
sudo do-release-upgrade -d
然后我在重启后做了更新和升级命令。现在,存在许多sudo apt-get -f install
无法满足的依赖关系和损坏的软件包这些命令无法修复的问题。UPDATE sudo apt install -f错误日志的输出的第一部分是:
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... failed.
The following packages have unmet dependencies:
gnome-calendar : Depends: gsettings-desktop-schemas (>= 3.21.2) but 3.18.1-1ubuntu1 is installed
gnome-session : Depends: gnome-shell (>= 3.25.91-0ubuntu4~) but it is not installed
Depends: gnome-session-bin (>= 3.28.1-0ubuntu2) but 3.18.1.2-1ubuntu1.16.04.2 is installed
Depends: gnome-session-common (= 3.28.1-0ubuntu2) but 3.18.1.2-1ubuntu1.16.04.2 is installed
Depends: xwayland but it is not installed
Recommends: fonts-cantarell but it is not installed
Recommends: adwaita-icon-theme-full
Recommends: gnome-themes-extra but it is not installed
gnome-settings-daemon : Depends: libgnome-desktop-3-17 (>= 3.17.92) but it is not installed
Depends: gsettings-desktop-schemas (>= 3.20) but 3.18.1-1ubuntu1 is installed
hplip : Depends: python3 (< 3.6) but 3.6.5-3 is installed
libc-dev-bin : Depends: libc6 (< 2.24) but 2.27-3ubuntu1 is installed
libc6-dbg : Depends: libc6 (= 2.23-0ubuntu10) but 2.27-3ubuntu1 is installed
libc6-dev : Depends: libc6 (= 2.23-0ubuntu10) but 2.27-3ubuntu1 is installed
libgmime-3.0-0 : Depends: libgpgme11 (>= 1.7.0) but 1.6.0-1 is installed
libreoffice-avmedia-backend-gstreamer : Depends: libreoffice-core (= 1:5.1.6~rc2-0ubuntu1~xenial3) but 1:6.0.3-0ubuntu1 is installed
libreoffice-base-core : Depends: libreoffice-core (= 1:5.1.6~rc2-0ubuntu1~xenial3) but 1:6.0.3-0ubuntu1 is installed
libreoffice-calc : Depends: libreoffice-base-core (= 1:6.0.3-0ubuntu1) but 1:5.1.6~rc2-0ubuntu1~xenial3 is installed
Depends: liborcus-0.13-0 (>= 0.13.3) but it is not installed
libreoffice-core : Depends: libgpgmepp6 (>= 1.10.0) but it is not installed
Depends: liborcus-0.13-0 (>= 0.13.3) but it is not installed
Depends: libpoppler73 (>= 0.62.0) but it is not installed
Depends: libxmlsec1 (>= 1.2.25) but it is not installed
Depends: libxmlsec1-nss (>= 1.2.25) but it is not installed
libreoffice-gnome : Depends: libreoffice-gtk3 but it is not installed
libreoffice-gtk : Depends: libreoffice-gtk2 but it is not installed
libreoffice-math : Depends: libreoffice-core (= 1:5.1.6~rc2-0ubuntu1~xenial3) but 1:6.0.3-0ubuntu1 is installed
libreoffice-writer : Depends: libreoffice-base-core (= 1:6.0.3-0ubuntu1) but 1:5.1.6~rc2-0ubuntu1~xenial3 is installed
Depends: libabw-0.1-1 but it is not installed
Depends: libepubgen-0.1-1 (>= 0.1.0) but it is not installed
libtotem0 : Depends: libgnome-desktop-3-17 (>= 3.17.92) but it is not installed
libwayland-egl1-mesa : Depends: libegl1 but it is not installed
libwebkitgtk-1.0-0 : Depends: libjavascriptcoregtk-1.0-0 (= 2.4.11-0ubuntu0.1) but 2.4.11-3ubuntu3 is installed
Depends: libwebkitgtk-1.0-common (>= 2.4.11) but it is not installable
nautilus : Depends: libgnome-desktop-3-17 (>= 3.18.1) but it is not installed
python3-brlapi : Depends: python3 (< 3.6) but 3.6.5-3 is installed
python3-cffi-backend : Depends: python3 (< 3.6) but 3.6.5-3 is installed
python3-crypto : Depends: python3 (< 3.6) but 3.6.5-3 is installed
和
E: Error, pkgProblemResolver::Resolve generated breaks,
this may be caused by held packages.
尝试在Synaptic中修复损坏的程序包会产生以下错误消息:
E: Error, pkgProblemResolver::Resolve generated breaks,
this may be caused by held packages.
看起来sources.list文件没有任何问题,并且在我尝试安装时似乎已更新。我几乎不知道自己在做什么,并且很乐意提供有关错误消息的更多详细信息。如果有一种方法可以在xterm中向上滚动,这就是我现在正在使用的方法,因为无法打开Gnome终端。
我想删除所有47个损坏的软件包和保留的软件包,如果可以的话(例如,对于LibreOffice之类的东西,这不是当前的需要),请正确地重新安装它们或暂时不安装它们,并能够使用侏儒终端。
我正在寻找有关如何解决所有这些问题的初学者步骤。有入门指南吗?我在寻找答案时错过了一个明显的帖子?我认为这篇文章朝着正确的方向前进,但我的想法有点过头了。任何帮助深表感谢。我想知道从全新的16.04安装开始是否真的更容易。
install -f
已经运行了。
sudo apt-get install -f
和dpkg --configure -a
。