过去几个小时,我一直在尝试从 20.04 升级到 22.04,但没有成功。以下是我的main.log
文件中显示的错误消息:
2023-07-18 12:56:00,963 DEBUG Marking 'ubuntu-desktop' for upgrade
2023-07-18 12:56:01,261 WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.)
2023-07-18 12:56:01,497 ERROR Dist-upgrade failed: 'Broken packages after upgrade: libgirepository-1.0-1, ubuntu-desktop'
2023-07-18 12:56:01,513 DEBUG abort called
我已经运行了所有程序ppa-purge
,现在唯一的ubuntu-desktop
问题似乎仍然存在。我尝试删除 ubuntu-desktop,然后重新安装 ubuntu-desktop,然后删除colord
和mesa-utils
,但这些都不起作用。我仍然收到相同的错误。所以我不知道还能尝试什么。我还尝试在这些更改之后重新启动,但仍然没有成功。
我也查看了,apt.log
并且看到了这些消息。但我真的不知道如何解释这些错误。当我读到这个时,似乎系统陷入了某个循环,无法找到正确的依赖项来解决问题。但不确定如何解决这个问题。这是日志信息。
Investigating (9) ubuntu-desktop:amd64 < 1.450.2 -> 1.481.1 @ii pumU Ib >
Broken ubuntu-desktop:amd64 Depends on gnome-shell-extension-desktop-icons-ng:amd64 < none | 43-2ubuntu1 @un umH >
Considering gnome-shell-extension-desktop-icons-ng:amd64 2 as a solution to ubuntu-desktop:amd64 10000
Considering gnome-shell-extension-desktop-icons-ng:amd64 2 as a solution to ubuntu-desktop:amd64 10000
Broken ubuntu-desktop:amd64 Depends on ubuntu-desktop-minimal:amd64 < 1.450.2 | 1.481.1 @ii umR >
Considering ubuntu-desktop-minimal:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
Considering ubuntu-desktop-minimal:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
Considering ubuntu-desktop-minimal:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
Investigating (9) libgirepository-1.0-1:amd64 < 1.64.1-1~ubuntu20.04.1 -> 1.72.0-1 @ii umU Ib >
Broken libgirepository-1.0-1:amd64 Breaks on libgjs0g:amd64 < 1.64.5-0ubuntu0.20.04.01 | 1.72.4-0ubuntu0.22.04.1 @ii umH > (< 1.68.4-1+b1)
Considering libgjs0g:amd64 17 as a solution to libgirepository-1.0-1:amd64 279
Upgrading libgjs0g:amd64 due to Breaks field in libgirepository-1.0-1:amd64
Investigating (9) libgjs0g:amd64 < 1.64.5-0ubuntu0.20.04.01 -> 1.72.4-0ubuntu0.22.04.1 @ii umU Ib >
Broken libgjs0g:amd64 Depends on libmozjs-91-0:amd64 < none | 91.10.0-0ubuntu1 @un umH > (>= 91.10.0)
Considering libmozjs-91-0:amd64 2 as a solution to libgjs0g:amd64 17
MarkKeep libgjs0g:amd64 < 1.64.5-0ubuntu0.20.04.01 -> 1.72.4-0ubuntu0.22.04.1 @ii umU Ib > FU=0
Holding Back libgjs0g:amd64 rather than change libmozjs-91-0:amd64
Done
请注意,我查看了以下帖子:
尝试升级到 LTS 22.04 时出现“无法将‘ubuntu-desktop’标记为升级”
Ubuntu 20.04.1 升级失败 / 错误 Dist-upgrade 失败:“升级后软件包损坏:colord”
https://ubuntuforums.org/showthread.php?t=2481783&page=2
由于“升级后软件包损坏:ubuntu-desktop”导致从 18.04 升级到 20.04 失败
由于软件包被扣留,似乎无法从 18.04 升级到 20.04:libsensors4、libsensors-config、colord
答案1
有类似的问题,https://bugs.launchpad.net/bugs/2009754帮助我修复它;即维塔利·科马罗夫步骤如下:
apt remove colord mesa-utils
,然后do-release-upgrade
开始工作。- 升级完成后,我再次安装了已删除的软件包,一切似乎正常:
apt install gnome-control-center ubuntu-desktop