![尝试升级到 LTS 22.04 时出现“无法将‘ubuntu-desktop’标记为升级”](https://linux22.com/image/1072471/%E5%B0%9D%E8%AF%95%E5%8D%87%E7%BA%A7%E5%88%B0%20LTS%2022.04%20%E6%97%B6%E5%87%BA%E7%8E%B0%E2%80%9C%E6%97%A0%E6%B3%95%E5%B0%86%E2%80%98ubuntu-desktop%E2%80%99%E6%A0%87%E8%AE%B0%E4%B8%BA%E5%8D%87%E7%BA%A7%E2%80%9D.png)
当我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 update
和sudo apt upgrade
。除了 之外没有其他任何损坏的软件包报告do-release-upgrade
。我不认为当前版本中存在损坏的软件包,似乎升级会导致一些损坏的链接。