GUI 和命令行都不允许我进行此升级。我尝试从命令行
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
在此之前,我已经完成sudo apt update
并安装了可用的更新。如何才能找出系统不喜欢的更新?
基于 GUI 的升级程序也存在奇怪的行为。我启动软件更新程序并得到以下信息:
如果我随后单击“升级...”,软件更新程序窗口将消失,并且没有任何可见的反应。
或者,还有其他方法可以完成此操作吗?
已更新请求的输出:
$ sudo apt update
[sudo] password for scohen:
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Hit:6 https://ppa.launchpadcontent.net/atareao/atareao/ubuntu jammy InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:8 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:10 https://ppa.launchpadcontent.net/bitseater/ppa/ubuntu jammy InRelease
Hit:11 https://ppa.launchpadcontent.net/mutlaqja/ppa/ubuntu jammy InRelease
Fetched 218 kB in 2s (93.9 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
fuseiso gconf-service gconf-service-backend gconf2 gconf2-common libgconf-2-4
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
gnome-remote-desktop libgphoto2-6 libgphoto2-port12
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
更新 #2。在上面的输出中看到这个并尝试了一下。没什么区别。
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
fuseiso gconf-service gconf-service-backend gconf2 gconf2-common libgconf-2-4
0 upgraded, 0 newly installed, 6 to remove and 3 not upgraded.
After this operation, 8,779 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 411977 files and directories currently installed.)
Removing fuseiso (20070708-3.2build1) ...
Removing gconf2 (3.2.6-7ubuntu2) ...
Removing gconf-service-backend (3.2.6-7ubuntu2) ...
Removing gconf-service (3.2.6-7ubuntu2) ...
Removing libgconf-2-4:amd64 (3.2.6-7ubuntu2) ...
Removing gconf2-common (3.2.6-7ubuntu2) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for sgml-base (1.30) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
答案1
在版本升级尝试期间遇到的错误让您知道您需要先更新系统才能升级到下一个版本。
但是,当您尝试更新时,您的包管理器会给出有关被阻止的包的错误。
您的系统上还有多个 PPA,有时 PPA 不兼容,从而阻碍软件包管理器。如果您删除 PPA,可能会解决阻碍软件包的问题。
无论如何,发布升级脚本都会禁用您的 PPA,因此如果删除 PPA 可以解决问题,那么这可能是最好的解决方法。
如果被阻止的软件包与 PPA 没有任何关系,您可以手动安装被阻止的软件包。请注意,这会将这些软件包标记为手动安装,这可能不是理想的做法。