grub-efi-arm64-signed : Depends: grub-efi-arm64 (= 2.06-2ubuntu7) but 2.06-2ubuntu10 is to be installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Critical
|
Julian Andres Klode | ||
Jammy |
Fix Released
|
Undecided
|
Julian Andres Klode | ||
grub2-signed (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Phased updates with interdependencies can become uninstallable, breaking the upgrade command (and presumably dist-upgrade), so it cannot upgrade
anything anymore, for example, see the original bug report below.
[Test plan]
We cannot reproduce the exact failure here, but we have included a minimal test case that triggers the same error in the integration test test-phased-
The test suite is exhaustive and covers more than a human reasonably can, especially since we also cannot publish broken updates again to get people to test the fix.
[Where problems could occur]
This is a one word fix in the solver. When deciding whether a depends could be kept back, we accidentally looked at the package declaring the dependency instead of the package we depend upon.
Of course this might unearth other fancy solver bugs. There is one
limitation in that this only applies to "Protected" packages (not in the Protected field sense, but if you "Protect" the change in the solver), which is *mostly* triggered only if you have held packages or phased updates, so workarounds should always be easy.
[Original bug report]
# apt clean
# apt update
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
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-
E: Broken packages
# apt show -a grub-efi-arm64 2>/dev/null | grep -P "Version:
Version: 2.06-2ubuntu10
APT-Sources: http://
Version: 2.06-2ubuntu7
APT-Sources: http://
# curl -s "http://
Package: grub-efi-arm64-dbg
Depends: grub-efi-arm64-bin (= 2.06-2ubuntu7)
Package: grub-efi-
Depends: grub-efi-arm64 (= 2.06-2ubuntu7)
# curl -s "http://
Package: grub-efi-arm64-dbg
Depends: grub-efi-arm64-bin (= 2.06-2ubuntu10)
Package: grub-efi-
Depends: grub-efi-arm64 (= 2.06-2ubuntu10)
[[Workaround]]
echo "APT::Get:
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: grub-efi-
ProcVersionSign
Uname: Linux 5.15.0-1020-aws aarch64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: arm64
CasperMD5CheckR
Date: Fri Sep 23 13:12:07 2022
Ec2AMI: ami-092d3089041
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: t4g.medium
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
SHELL=/bin/bash
LANG=C.UTF-8
TERM=xterm-
XDG_RUNTIME_
PATH=(custom, no user)
SourcePackage: grub2-signed
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in apt (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Julian Andres Klode (juliank) |
description: | updated |
tags: | added: foundations-todo |
Changed in apt (Ubuntu Jammy): | |
status: | New → Triaged |
no longer affects: | grub2-signed (Ubuntu Jammy) |
Changed in apt (Ubuntu Jammy): | |
assignee: | nobody → Julian Andres Klode (juliank) |
description: | updated |
description: | updated |
tags: | removed: foundations-todo |
Please include output of
apt policy grub-efi-arm64 grub-efi- arm64-signed
And make sure you do not have any preferences file blocking the upgrade.
This might be caused by the same phasing issue as for python3.10:
[Bug 1990586] [NEW] 22.04: python3* mismatched phasing breaks dist-upgrades
But it also might be a configuration issue.