从 disco 升级到 eaon - 4 个包可以升级,但无法更新

从 disco 升级到 eaon - 4 个包可以升级,但无法更新

我正在尝试从 EOL 版本 19.04 升级到 19.10。

# apt update
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt list --upgradable
libgl1-mesa-dri/bionic-security 19.2.8-0ubuntu0~18.04.2 amd64 [upgradable from: 19.0.8-0ubuntu0~19.04.1]
libgl1-mesa-dri/bionic-security 19.2.8-0ubuntu0~18.04.2 i386 [upgradable from: 19.0.8-0ubuntu0~19.04.1]
libjavascriptcoregtk-4.0-18/bionic-security 2.26.4-0ubuntu0.18.04.1 amd64 [upgradable from: 2.26.2-0ubuntu0.19.04.1]
libwebkit2gtk-4.0-37/bionic-security 2.26.4-0ubuntu0.18.04.1 amd64 [upgradable from: 2.26.2-0ubuntu0.19.04.1]    
apt -f upgrade
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt dist-upgrade
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt install libgl1-mesa-dri
The following packages have unmet dependencies:
 libgl1-mesa-dri : Depends: libsensors4 (>= 1:3.0.0) but it is not installable
                   Breaks: libgl1-mesa-dri:i386 (!= 19.2.8-0ubuntu0~18.04.2) but 19.0.8-0ubuntu0~19.04.1 is to be installed
 libgl1-mesa-dri:i386 : Breaks: libgl1-mesa-dri (!= 19.0.8-0ubuntu0~19.04.1) but 19.2.8-0ubuntu0~18.04.2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. 

那么我该怎么做呢,sudo do-release-upgrade因为这是抱怨我需要安装更新

答案1

尽管您尝试eoan从 19.04 ( ) 升级到 19.10 ( disco),但您的源包含一些 18.04 ( bionic) 条目。使用以下命令查找它们:

grep -r bionic /etc/apt/sources.list*

然后使用您最喜欢的文本编辑器编辑找到的文件并bionic手动删除或升级条目。

也可以看看:如何恢复默认存储库?

相关内容