在我的戴尔灵越 15 游戏 7577机器(第七代英特尔,如果相关),运行 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 的评论^^^
答案1
最近的变化之一shim-signed
是这种依赖性:
grub-efi-amd64-signed (>= 1.191~) | grub-efi-arm64-signed (>= 1.191~) | base-files (<< 12.3)
析取的最后一部分是导致问题的部分:由于 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)。