# apt clean
# apt update
Hit:1 http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:2 http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:3 http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
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:
grub-efi-arm64-signed : Depends: grub-efi-arm64 (= 2.06-2ubuntu7) but 2.06-2ubuntu10 is to be installed
E: Broken packages
# apt show -a grub-efi-arm64 2>/dev/null | grep -P "Version:|APT-Sources:"
Version: 2.06-2ubuntu10
APT-Sources: http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages
Version: 2.06-2ubuntu7
APT-Sources: http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages
# curl -s "http://ports.ubuntu.com/ubuntu-ports/dists/jammy/main/binary-arm64/Packages.gz" | zgrep -B 13 "Depends: grub-efi-arm64" | grep -P "Package:|Depends:"
Package: grub-efi-arm64-dbg
Depends: grub-efi-arm64-bin (= 2.06-2ubuntu7)
Package: grub-efi-arm64-signed
Depends: grub-efi-arm64 (= 2.06-2ubuntu7)
# curl -s "http://ports.ubuntu.com/ubuntu-ports/dists/jammy-updates/main/binary-arm64/Packages.gz" | zgrep -B 13 "Depends: grub-efi-arm64" | grep -P "Package:|Depends:"
Package: grub-efi-arm64-dbg
Depends: grub-efi-arm64-bin (= 2.06-2ubuntu10)
Package: grub-efi-arm64-signed
Depends: grub-efi-arm64 (= 2.06-2ubuntu10)
这是 Ubuntu 的一个错误,对吧?
答案1
sudo apt install apt --upgrade
这解决了我在使用 ubuntu 22.04 的 Oracle Cloud Arm 服务器上遇到的问题
答案2
事实证明这是一个影响 arm64 服务器的严重错误;
https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1990684
答案3
grub-efi-arm64-signed : Depends: grub-efi-arm64 (= 2.06-2ubuntu7) but 2.06-2ubuntu10 is to be installed
E: Broken packages
如果出现上述错误,请运行命令
sudo apt install apt