无法升级到 22.04,因为升级后“ubuntu-desktop”损坏

无法升级到 22.04,因为升级后“ubuntu-desktop”损坏

我尝试使用软件更新程序将 20.04 更新到 22.04。尝试创建“新软件频道”时失败。错误/var/log/dist-upgrade/main.log

2022-10-23 16:55:26,408 WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Unable to correct problems, you have held broken packages.)
2022-10-23 16:55:34,181 ERROR Dist-upgrade failed: 'Broken packages after upgrade: ubuntu-desktop'

由于某种原因ubuntu-desktop没有更新。/var/log/dist-upgrade/apt.log显示此内容ubuntu-desktop

Investigating (6) ubuntu-desktop:amd64 < 1.450.2 -> 1.481 @ii pumU NPb Ib >
Broken ubuntu-desktop:amd64 Depends on gdm3:amd64 < 3.36.3-0ubuntu0.20.04.4 | 42.0-1ubuntu7 @ii umR >
  Considering gdm3:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gdm3:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gdm3:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
Broken ubuntu-desktop:amd64 Depends on gnome-control-center:amd64 < 1:3.36.5-0ubuntu4 | 1:41.7-0ubuntu0.22.04.5 @ii umR >
  Considering gnome-control-center:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-control-center:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-control-center:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-control-center:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
Broken ubuntu-desktop:amd64 Depends on gnome-shell:amd64 < 3.36.9-0ubuntu0.20.04.2 | 42.4-0ubuntu0.22.04.1 @ii umR >
  Considering gnome-shell:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-shell:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-shell:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
Broken ubuntu-desktop:amd64 Depends on gnome-shell-extension-appindicator:amd64 < 33.1-0ubuntu0.20.04.2 | 42-2~fakesync1 @ii umR >
  Considering gnome-shell-extension-appindicator:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-shell-extension-appindicator:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
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 gnome-shell-extension-ubuntu-dock:amd64 < 68ubuntu1~20.04.1 | 72~ubuntu5.22.04.1 @ii umR >
  Considering gnome-shell-extension-ubuntu-dock:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-shell-extension-ubuntu-dock:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
  Considering gnome-shell-extension-ubuntu-dock:amd64 10000 as a solution to ubuntu-desktop:amd64 10000
Broken ubuntu-desktop:amd64 Depends on ubuntu-desktop-minimal:amd64 < 1.450.2 | 1.481 @ii umR NPb >
  Considering ubuntu-desktop-minimal:amd64 10000 as a solution to ubuntu-desktop:amd64 10000

我读过之前的回答,它与我安装的外部 ppa 有关。但从日志中我无法找出要删除的内容。这是我的/etc/apt/sources.list.d

freedownloadmanager.list
freedownloadmanager.list.distUpgrade
freedownloadmanager.list.save
kgilmer-ubuntu-regolith-stable-focal.list
kgilmer-ubuntu-regolith-stable-focal.list.save
linrunner-ubuntu-tlp-focal.list
linrunner-ubuntu-tlp-focal.list.distUpgrade
linrunner-ubuntu-tlp-focal.list.save
lutris-team-ubuntu-lutris-focal.list
lutris-team-ubuntu-lutris-focal.list.save
megasync.list
megasync.list.distUpgrade
megasync.list.save
pipewire-debian-ubuntu-pipewire-upstream-focal.list
pipewire-debian-ubuntu-pipewire-upstream-focal.list.distUpgrade
pipewire-debian-ubuntu-pipewire-upstream-focal.list.save
regolith-linux-ubuntu-release-focal.list
regolith-linux-ubuntu-release-focal.list.distUpgrade
regolith-linux-ubuntu-release-focal.list.save
regolith.list
regolith.list.distUpgrade
regolith.list.save

关于如何解决此问题的任何建议都将非常有帮助。

答案1

您拥有令人印象深刻的第三方 PPA 列表。这给您的系统带来了不标准的问题,因此可能无法升级。

也许清除每个 PPA,即删除 PPA 及其附带的软件,可能会将您恢复到可以再次更新的标准系统(前提是您使用 将其完全更新sudo apt full-upgrade)。然后可以在升级后添加这些。请注意,您有责任检查它是否适合新的 Ubuntu 版本。一些 PPA 继续工作,在其他情况下,新版本有专用的 PPA,在某些情况下,可能没有合适的 PPA。

不过,重新安装并重新配置系统可能同样容易。这样做的好处是,您将拥有一个干净的系统,旧的过时配置已经消失。

答案2

sudo apt-get autoremove

将删除不必要的软件包。然后使用 do-release-upgrade 命令更新到最新版本。

相关内容