更新:通过转到更新管理器上的设置并取消选择所有源复选框并将源更改为主服务器来解决。
不久前,我在将系统从 19.04 升级到 20.04 时遇到了相当大的困难,在系统自行更新到 19.10 Eoan 后,多个错误的残留影响似乎阻止了它更新,因此显然升级并没有完成它应该做的一切。例如,有几个未更新的软件包,我尝试了很多不同的方法,以至于我忘记了它们是什么,所以如果这看起来脱节,我很抱歉,但我很乐意更新它并提供有关该做什么或尝试什么的建议。
有人指出,关于持有的包裹也存在类似的问题,事实上这也是这里的问题,但主要问题是 Eoan 参考以及如何修复在多个层面上失败的整体更新,其中只有一部分是持有的包裹。
虽然我目前无法找到它们,但其中一些错误与我在标题中提到的 19.10 Eoan 有关,也许这很正常,但我不认为应该有这样的参考。
apt list --upgradable
Listing... Done
mysql-client/focal-updates,focal-updates,focal-security,focal-security 8.0.23-0ubuntu0.20.04.1 amd64 [upgradable from: 8.0.19-1ubuntu19.10]
mysql-server/focal-updates,focal-updates,focal-security,focal-security 8.0.23-0ubuntu0.20.04.1 amd64 [upgradable from: 8.0.19-1ubuntu19.10]
一些问题表现为无法更新 MySQL。检查安装了哪个版本的 mysql ......
mysql -V
mysql Ver 8.0.19 for Linux on x86_64 (MySQL Community Server - GPL)
当我尝试升级它时,它给出了错误:
sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
mysql-client mysql-server
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
还有一些未满足的依赖项似乎不想更新:
sudo apt install mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... 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:
mysql-client : Depends: mysql-client-8.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
与 WINE 停止工作相关的其他问题(WINE 应用程序在选择时不执行任何操作)并且它似乎需要无法安装的 Win32。
sudo apt-get install wine32
Reading package lists... Done
Building dependency tree
Reading state information... 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:
wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
当然,我尝试单独安装依赖项,但这也会导致其他错误,因为似乎每个依赖项都依赖于其他东西。
我还安装并运行了 aptitude,它纠正了很多问题,但没有纠正保留的软件包。
更新:尽管出现 mysql 和 WINE 错误,但这些包似乎仍可运行。
有想法吗?