在我的Dell Inspiron 15 Gaming 7577机器(第 7 代 Intel,如果相关)上,运行 Linux Mint 21.1 Cinnamon.. 大约一个月后,我在更新脚本输出中看到了这个:
Command: apt-get -o APT::Get::Always-Include-Phased-Updates=true dist-upgrade
--------------------------------------
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
shim-signed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
考虑到我强制更新分阶段包,以下应该没有帮助/问题:
$ apt-cache policy shim-signed
shim-signed:
Installed: 1.51+15.4-0ubuntu9
Candidate: 1.51.3+15.7-0ubuntu1
Version table:
1.51.3+15.7-0ubuntu1 500 (phased 71%)
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
*** 1.51+15.4-0ubuntu9 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
是否apt
开始忽略该APT::Get::Always-Include-Phased-Updates=true
选项?我不知道。
任何见解都将受到重视,谢谢。
# apt-get --simulate install shim-signed
Reading package lists... Done
Building dependency tree... Done
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:
base-files : Conflicts: base-files:i386
base-files:i386 : Conflicts: base-files
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
以上我只是跑来模拟更新,希望对大家有所帮助。
$ apt-cache policy base-files{,:i386}
base-files:
Installed: 21.1.0
Candidate: 21.1.0
Version table:
*** 21.1.0 700
700 http://packages.linuxmint.com vera/upstream amd64 Packages
100 /var/lib/dpkg/status
12ubuntu4.3 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
12ubuntu4 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
base-files:i386:
Installed: (none)
Candidate: 12ubuntu4.3
Version table:
12ubuntu4.3 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
12ubuntu4 500
500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages
@Stephen 的评论^^^
最近的变化之一
shim-signed
是这种依赖性:分离的最后一部分是导致问题的部分:由于 Linux Mint 发布了
base-files
21.1.0 版,因此无法满足要求。apt
认为这base-files:i386
可能满足约束条件:由于 Mint 不提供i386
该软件包的版本,因此候选者是 Ubuntu 版本;但是系统的其他部分需要base-files:amd64
并且无法解决由此产生的冲突,这就是导致涉及的有点令人惊讶的错误的原因i386
。如果你真的想升级
shim-signed
,你可以尝试安装grub-efi-amd64-signed
,但我不知道这对你启动系统的能力有什么影响。就个人而言,我会忽略升级(我知道,这对我来说很容易说,我没有运行 Mint)。