grub-efi-arm64-signed :取决于:grub-efi-arm64 (= 2.06-2ubuntu7) 但要安装 2.06-2ubuntu10

use*_*275 1 package-management

# 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)

Run Code Online (Sandbox Code Playgroud)

这是 Ubuntu 的一个错误吧?

小智 6

sudo apt install apt --upgrade
Run Code Online (Sandbox Code Playgroud)

这解决了我在使用 ubuntu 22.04 的 Oracle 云 Arm 服务器上的问题