我正在尝试从 20.04 升级到当前最新版本 23.04。但是当我运行命令时。
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo do-release-upgrade
我明白了
Please install all available updates for your release before upgrading.
我注意到升级步骤有一个“未升级”的包。
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
检查哪个包未升级,我看到一个 lutris 包弹出。
$ sudo apt list --upgradable -a
Listing... Done
lutris/focal,focal 0.5.12~ubuntu20.04.1 all [upgradable from: 0.5.11~ubuntu20.04.1]
lutris/now 0.5.11~ubuntu20.04.1 all [installed,upgradable to: 0.5.12~ubuntu20.04.1]
现在我不需要也不想要 lutris 包,我之前尝试安装它,但结果显示它不受支持。但包坏了,所以我无法更新它。
sudo apt-get upgrade lutris
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
lutris : Depends: gir1.2-webkit2-4.1 but it is not installable
E: Broken packages
如果可能的话,我只想删除它,但我不知道怎么做。我已经从主目录中删除了 lutris 文件夹,但它仍然显示出来。
答案1
看起来您有一个 lutris 的 PPA 或外部 repo。
线索是lutris/now
哪里now
没有标准的 Ubuntu 存储库部分。您可以使用 确认这一点,然后apt-cache policy lutris
将结果粘贴到问题中。
我会删除 lutris 并在升级后重新安装。
sudo apt remove lutris