我正试图通过以下方式将Ubuntu 18.04.5升级到20.04.1:
$ sudo do-release-upgrade这样做失败的原因如下:
..。无法计算升级,在计算升级时出现无法解决的问题。这很可能是因为: Ubuntu没有提供的非官方软件包请使用PPA -清除软件包中的‘PPA-清除’工具从Launchpad PPA中删除软件,然后再试一次升级。如果所有这些都不适用,那么请使用终端中的命令ubuntu ubuntu发布升级核心来报告这个错误。如果您想自己调查这个问题,‘/var/ log /dist-升级’中的日志文件将包含有关升级的详细信息。具体来说,请看“main.log”和“apt.log”。
/var/log/dist-upgrade/main.log的尾部包含以下错误:
...
2020-10-11 18:36:30,320 WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.)
2020-10-11 18:36:31,747 ERROR Dist-upgrade failed: 'Broken packages after upgrade: colord'
2020-10-11 18:36:31,747 DEBUG abort called
2020-10-11 18:36:31,755 DEBUG openCache()
2020-10-11 18:36:37,070 DEBUG Comparing 4.15.0-117 with
2020-10-11 18:36:37,071 DEBUG Comparing 4.15.0-118 with 4.15.0-117
2020-10-11 18:36:37,824 DEBUG /openCache(), new cache size 99980下面是colord的反向包依赖关系:
$ apt-cache rdepends colord
colord
Reverse Depends:
colord-sensor-argyll
gnome-control-center
colord:i386
cups-filters
colord:i386
cups-daemon
colord:i386
cups
colord:i386
xiccd
colord:i386
krita
colord:i386
gnome-color-manager
colord:i386
foomatic-filters
colord:i386
dispcalgui
colord:i386
diffoscope
colord:i386
colord-sensor-argyll
colord:i386
colord-sensor-argyll
colord-data
colord-sensor-argyll
colord:i386
argyll
colord:i386
libcolord2
colord:i386
libcolord-gtk1
colord:i386
gnome-control-center
colord:i386
cups-filters
colord:i386
cups-daemon
colord:i386
cups
colord:i386
colord-data我最近有了一个分段故障问题mesa,并从ppa:kisak/kisak-mesa安装了一个版本。这可能会导致升级问题。
如果删除colord包,将发生以下情况:
$ sudo apt-get remove colord
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apg colord-data gnome-control-center-faces gnome-online-accounts libcolorhug2 libnss-myhostname linux-headers-4.15.0-117 linux-headers-4.15.0-117-generic
linux-image-4.15.0-117-generic linux-modules-4.15.0-117-generic linux-modules-extra-4.15.0-117-generic python3-macaroonbakery python3-nacl
python3-protobuf python3-pymacaroons python3-rfc3339 ubuntu-system-service
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
colord gnome-control-center ubuntu-desktop
0 upgraded, 0 newly installed, 3 to remove and 8 not upgraded.
After this operation, 5,782 kB disk space will be freed.
Do you want to continue? [Y/n]这听起来不是个好主意,因为上次我删除了ubuntu-desktop,UI就不再启动了。见链接员额。
如何解决升级问题而不冒分段错误转世的风险?
发布于 2020-10-18 12:25:59
毕竟有帮助的提示、问题和评论,我对自己不耐烦,决定再试一次升级。以下是我所做的:
sudo apt-get remove colordsudo apt-get remove mesa-utils --这也消除了ubuntu-desktop这解除了do-release-upgrade命令的阻塞。这一步不能重新启动。
sudo do-release-upgrade下载2小时后,升级进程请求重新启动。我确认了。升级进行得很顺利--系统启动了。在检查了新的操作系统之后,我注意到我既不能打开设置,也不能更改背景图像,也不能安装ubuntu-desktop或gnome-control-center。也没有文件显示在桌面上,尽管我可以在文件夹中ls它们。过了一段时间,我发现这些包仍然被源自ppa:kisak/kisak-mesa的一些D19包阻塞。
mesa包。sudo apt-get install gnome-control-center包的mesasudo apt-get install ubuntu-desktop在重新启动桌面上的所有文件后,我能够启动设置并更改背景图像。-谢谢大家!
发布于 2020-10-13 19:50:57
对于那些需要它的人:sudo apt-get update --fix-missing; sudo dpkg --configure -a; sudo apt-get install -f; sudo fuser -vki /var/lib/dpkg/lock; sudo dpkg --configure -a;
https://askubuntu.com/questions/1281969
复制相似问题