[Bug 2124213] Re: package qemu-block-extra 1:9.2.1+ds-1ubuntu5.2 failed to install/upgrade: le paquet est dans un état vraiment incohérent ; vous devriez le réinstaller avant de tenter de le configurer

Christian Ehrhardt 2124213 at bugs.launchpad.net
Wed Sep 17 05:52:39 UTC 2025


Hi Nicolas,
apt indeed does inhibit reboots while upgrades go on to avoid an inconsistent state.
If a lot of updates need to be applied that can take a while, but should not hang forver.

Sadly but understandably this report is from after the reboot (logs are
rather short just after boot and seem not to show the initial issue), so
it does not have most of the logs that one would need to make
assumptions what happened.

AFAICS from these post reboot bug report qemu-block-extra is only in
this bug report as it likely was the one that was updated when it was
hard restarted. Due to that it is half upgraded as now shown in the now
present log as.

Setting up qemu-system-x86 (1:9.2.1+ds-1ubuntu5.2) ...
[1mdpkg: [0m error processing package qemu-block-extra (--configure):
 the package is in a really inconsistent state; you should
 reinstall it before attempting to configure it

To overcome this follow up symptom please consider to re-install it as suggested, like
 $ apt install --reinstall qemu-block-extra
If that fails please provide the output and what happened here.
Maybe for the sake of having it upfront, before you try that re-install run
 $ dpkg --verify qemu-block-extra
Which would let us know where files are in an unexpected state.

If this fails again, that is a log that would be interesting as it might
hint at what was going on the first time.

---

But for the initial hang of unattended-upgrades / apt - that is kind of
as it is designed, unless if it was hanging infinitely long.

In the log we see that unattended upgrade seems to have been around qemu
as expected:

Start-Date: 2025-09-13  06:51:07
Commandline: /usr/bin/unattended-upgrade
Upgrade: qemu-system-x86:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2), qemu-system-modules-opengl:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2), qemu-system-modules-spice:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2), qemu-utils:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2), qemu-system-common:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2), qemu-block-extra:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2), qemu-system-data:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2), qemu-system-gui:amd64 (1:9.2.1+ds-1ubuntu5, 1:9.2.1+ds-1ubuntu5.2)

In a perfect world all you'd have needed was wait, and if curious see in e.g. `ps` or the dpkd log which package is currently handled.
Now the question really is was that really stuck and if so why?

Your try to restart unattended-upgrades and re-upgrade has stopped the
service, but not the ongoing upgrade - hence my assumption you've hit
the "de l'interface dpkg was locked by /usr/bin/python3.13 process with
pid 1340175" - it was still going on.

If we want to go down that route it is a apt/unattended-upgrade bug and we'd need to see the logs of what  happened before boot.
I can't see a qemu package issue yet, I'm adding apt/unattended-upgrade for awareness there.

** Also affects: apt (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: unattended-upgrades (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu)
       Status: New => Incomplete

** Changed in: unattended-upgrades (Ubuntu)
       Status: New => Incomplete

** Changed in: apt (Ubuntu)
       Status: New => Incomplete

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

Title:
  package qemu-block-extra 1:9.2.1+ds-1ubuntu5.2 failed to
  install/upgrade: le paquet est dans un état vraiment incohérent ; vous
  devriez  le réinstaller avant de tenter de le configurer

Status in apt package in Ubuntu:
  Incomplete
Status in qemu package in Ubuntu:
  Incomplete
Status in unattended-upgrades package in Ubuntu:
  Incomplete

Bug description:
  try to poweroff my cumputer but impossible because of """Operation
  inhibited by "APT" (PID 1341690 "unattended-upgr", user root), reason
  is "APT is installing or removing packages". User morlot is logged in
  on tty2. Please retry operation after closing inhibitors and logging
  out other users. 'systemd-inhibit' can be used to list active
  inhibitors. Alternatively, ignore inhibitors and users with 'systemctl
  poweroff -i'."""

  then try """sudo systemctl restart unattended-upgrades sudo dpkg
  --configure -a sudo apt install --fix-broken -y sudo apt update &&
  sudo apt full-upgrade -y dpkg: erreur: verrouillage de l'interface
  dpkg was locked by /usr/bin/python3.13 process with pid 1340175 Note :
  supprimer le fichier de verrouillage est toujours une mauvaise option,
  cela peut endommager la zone verrouillée et l'ensemble du système.
  Voir <https://wiki.debian.org/Teams/Dpkg/FAQ#db-lock>."""

  then:'''sudo systemctl kill --signal=TERM unattended-upgrades
  sudo kill -TERM 1340175'''

  but not working so I did 'sudo systemctl poweroff -i'

  ProblemType: Package
  DistroRelease: Ubuntu 25.04
  Package: qemu-block-extra 1:9.2.1+ds-1ubuntu5.2
  ProcVersionSignature: Ubuntu 6.14.0-29.29-generic 6.14.8
  Uname: Linux 6.14.0-29-generic x86_64
  ApportVersion: 2.32.0-0ubuntu5.3
  AptOrdering:
   qemu-system-x86:amd64: Install
   qemu-system-common:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Tue Sep 16 22:39:35 2025
  ErrorMessage: le paquet est dans un état vraiment incohérent ; vous devriez  le réinstaller avant de tenter de le configurer
  InstallationDate: Installed on 2024-07-15 (428 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  KvmCmdLine: COMMAND         STAT  EUID  RUID     PID    PPID %CPU COMMAND
  MachineType: ASUS System Product Name
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-29-generic root=UUID=9440f795-7a86-4fcc-a192-ce5117ccd372 ro quiet splash intel_iommu=on iommu=pt crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M vt.handoff=7
  Python3Details: /usr/bin/python3.13, Python 3.13.3, python3-minimal, 3.13.3-1
  PythonDetails: /usr/bin/python3.13, Python 3.13.3, python-is-python3, 3.13.3-1
  SourcePackage: qemu
  Title: package qemu-block-extra 1:9.2.1+ds-1ubuntu5.2 failed to install/upgrade: le paquet est dans un état vraiment incohérent ; vous devriez  le réinstaller avant de tenter de le configurer
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 08/08/2024
  dmi.bios.release: 16.63
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 1663
  dmi.board.asset.tag: Default string
  dmi.board.name: PRIME B760-PLUS
  dmi.board.vendor: ASUSTeK COMPUTER INC.
  dmi.board.version: Rev 1.xx
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: Default string
  dmi.chassis.version: Default string
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1663:bd08/08/2024:br16.63:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnPRIMEB760-PLUS:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU:
  dmi.product.family: To be filled by O.E.M.
  dmi.product.name: System Product Name
  dmi.product.sku: SKU
  dmi.product.version: System Version
  dmi.sys.vendor: ASUS

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




More information about the foundations-bugs mailing list