尝试升级到 LTS 22.04 时出现“无法将‘ubuntu-desktop’标记为升级”

尝试升级到 LTS 22.04 时出现“无法将‘ubuntu-desktop’标记为升级”

当我sudo do-release-upgrade更新到下一个 LTS 时,我得到了

Could not calculate the upgrade 

An unresolvable problem occurred while calculating the upgrade. 

原因似乎是这样的(来自/var/log/dist-upgrade/main.log):

WARNING Can't mark 'ubuntu-desktop' for upgrade (E:Unable to correct problems, you have held broken packages.)
ERROR Dist-upgrade failed: 'Broken packages after upgrade: ubuntu-desktop'

我该如何解决这个问题?/var/log/dist-upgrade/apt.log显示太多损坏的包,我不知道该怎么做。我知道我不应该删除ubuntu-desktop,我该怎么办?

注意,我做了sudo apt updatesudo apt upgrade。除了 之外没有其他任何损坏的软件包报告do-release-upgrade。我不认为当前版本中存在损坏的软件包,似乎升级会导致一些损坏的链接。

相关内容