Package: dpkg
Version: 1.22.1
Severity: important
File: /usr/bin/dpkg-deb

Dear Maintainer,

3 times in the last month or so I have had apt dist-upgrade stall.

The culprit appears to be dpkg-deb which goes defunct. Once I kill it, the transaction seems to continue although I have to run "apt-get -f install" or "dpkg reconfigure -a" to finish it.

It appears to be at the unpack stage where we see the problem.

Another Sid user on social media also has a quite powerful machine (we both have 32 cores, nvme and 64gb+ ecc ram) and has the same problem, so maybe its a threading thing? Obviously not a memory/disk issue.

Logs from today's occurrence:

# ps auxw|grep dpkg
root     1324970 91.0  0.2 151484 145108 pts/2   Rs+  13:04   6:12
/usr/bin/dpkg --status-fd 25 --no-triggers --unpack --auto-deconfigure
--recursive /tmp/apt-dpkg-install-ilDw1k
root 1328162 0.0 0.0 7364 2048 pts/2 S+ 13:08 0:00 dpkg-deb --fsys-tarfile /tmp/apt-dpkg-install-ilDw1k/081-libgtk-4-doc_4.12.3+ds-2_all.deb root 1328163 0.0 0.0 0 0 pts/2 Z+ 13:08 0:00 [dpkg-deb]
<defunct>
root 1328164 0.3 0.1 153632 115056 pts/2 Sl+ 13:08 0:00 dpkg-deb --fsys-tarfile /tmp/apt-dpkg-install-ilDw1k/081-libgtk-4-doc_4.12.3+ds-2_all.deb
simon    1329047  0.0  0.0   6348  2048 pts/3    S+   13:11   0:00 grep
--color=auto dpkg

"pkill dpkg-deb" resulted in:

dpkg: error processing archive /tmp/apt-dpkg-install-
ilDw1k/081-libgtk-4-doc_4.12.3+ds-2_all.deb (--unpack):
 dpkg-deb --fsys-tarfile subprocess was killed by signal (Terminated)

For the rest of the dist-upgrade i keep seeing defunct dpkg-debs:

# ps auxw|grep defunct
root 1331212 0.0 0.0 0 0 pts/2 Z+ 13:14 0:00 [dpkg-deb]
<defunct>
root 1331276 0.0 0.0 6348 2048 pts/3 S+ 13:14 0:00 grep defunct

killing them off seems to just spawn a new instance:

# kill -9 1331212
-bash: kill: (1331212) - No such process

# ps auxw|grep defunct
root 1331368 0.0 0.0 0 0 pts/2 Z+ 13:14 0:00 [dpkg-deb]
<defunct>
root 1331426 0.0 0.0 6348 2048 pts/3 S+ 13:14 0:00 grep defunct

At the end of the operation i get:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-ilDw1k/081-libgtk-4-doc_4.12.3+ds-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

"apt-get -f install" allows the transaction to complete.

I had same problem before with: /tmp/apt-dpkg-install-PdxOu1/1-texlive-fonts- extra_2023.20231007-1_all.deb and another package I can't quite remember before
that.



-- Package-specific info:
This system uses merged-usr-via-aliased-dirs, going behind dpkg's
back, breaking its core assumptions. This can cause silent file
overwrites and disappearances, and its general tools misbehavior.
See <https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge>.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-3-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.8-5+b1
ii  libc6        2.37-12
ii  liblzma5     5.4.4-0.1
ii  libmd0       1.1.0-1
ii  libselinux1  3.5-1
ii  libzstd1     1.5.5+dfsg2-2
ii  tar          1.34+dfsg-1.2
ii  zlib1g       1:1.2.13.dfsg-3

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt            2.7.6
pn  debsig-verify  <none>

-- no debconf information

--
Simon John

Reply via email to