Public bug reported:

The following description and diagnosis is LLM-written (Claude Opus
5.5):

On Ubuntu 24.04 (noble, amd64), apt upgrade fails while qemu
1:8.2.2+ds-0ubuntu1.20 and libvirt 10.0.0-2ubuntu8.20 are being phased
(qemu at 20%, and this machine is not in the phase). Expected: all
qemu/libvirt packages are kept back. Actual:

The following packages have unmet dependencies:
 qemu-system-gui : Depends: qemu-system-any (= 1:8.2.2+ds-0ubuntu1.20)
 qemu-system-modules-opengl : Depends: qemu-system-any (= 
1:8.2.2+ds-0ubuntu1.20)
 qemu-system-modules-spice : Depends: qemu-system-any (= 1:8.2.2+ds-0ubuntu1.20)
E: Unable to correct problems, you have held broken packages.

Installed is .18 for all qemu packages and 10.0.0-2ubuntu8.19 for
libvirt. The mirror is consistent: apt policy shows .20 (phased 20%)
from noble-updates for qemu-system-x86, -common, -data and -gui alike.

From the debug output (apt upgrade -s -o Debug::pkgProblemResolver=1 -o
Debug::pkgDepCache::Marker=1, attached below):

qemu-system-common is marked for .20, which pulls in libvirt-daemon-driver-qemu 
.20.
All libvirt .20 packages are then MarkKept (phasing).
ResolveByKeep keeps qemu-system-common and qemu-system-x86 at .18 ("Policy 
breaks with upgrade of qemu-system-x86").
qemu-system-gui, qemu-system-modules-opengl and qemu-system-modules-spice are 
never kept back. They stay marked for .20 while the only qemu-system-any 
provider is held at .18, so the resolver fails.

The keep-back is incomplete: reverting a phased package doesn't cascade
to packages with exact-version dependencies on it.

Workaround: apt upgrade -o APT::Get::Never-Include-Phased-Updates=true
works fine.

Possibly related: LP #2098140 (phased keep-back via MarkKeep misses
packages linked by Breaks). Same symptom as LP #1990684, which is marked
Fix Released.

Debug log attached (apt-debug.log).

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: apt 2.8.4ubuntu0.1
ProcVersionSignature: Ubuntu 6.8.0-151.151-generic 6.8.12
Uname: Linux 6.8.0-151-generic x86_64
ApportVersion: 2.28.3-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: XFCE
Date: Fri Dec  4 13:03:28 2026
InstallationDate: Installed on 2019-06-28 (2716 days ago)
InstallationMedia: Xubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 
(20190210)
SourcePackage: apt
UpgradeStatus: Upgraded to noble on 2025-09-01 (459 days ago)

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

** Attachment added: "apt upgrade -s -o Debug::pkgProblemResolver=1 -o 
Debug::pkgDepCache::Marker=1 > misc/apt-debug.log 2>&1"
   
https://bugs.launchpad.net/bugs/2190824/+attachment/6025109/+files/apt-debug.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2190824

Title:
  apt upgrade fails with unmet dependencies when phased qemu/libvirt
  update is only partially kept back

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2190824/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to