[Bug 2144516] Re: crashed when installing package
Marcos Alano
2144516 at bugs.launchpad.net
Mon Mar 16 08:59:59 UTC 2026
This is what I found. I added -x to the shebang to get the logs. It seems the second time that OLDVER is called, it's after already being set as readonly.
It makes sense, actually, since the function configure_debuginfod_ubuntu() is called inside the function configure_debuginfod(), so it still local.
The idea would be to change the var name or change the code so the function configure_debuginfod_ubuntu() won't be executed inside configure_debuginfod(), but at same level.
It also works if changing the shebang from /bin/sh to /bin/bash.
➜ sudo dpkg --configure -a
Setting up libdebuginfod-common (0.194-2)…
+ set -e
+ . /usr/share/debconf/confmodule
+ _DEBCONF_IMPL=
+ [ ]
+ [ -x /usr/share/debconf/frontend ]
+ [ ! -h /usr/share/debconf/frontend ]
+ _DEBCONF_IMPL=debconf
+ [ ! ]
+ [ debconf = cdebconf ]
+ export PERL_DL_NONLAZY=1
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/libdebuginfod-common.postinst configure
+ set -e
+ . /usr/share/debconf/confmodule
+ _DEBCONF_IMPL=
+ [ ]
+ [ -x /usr/share/debconf/frontend ]
+ [ ! -h /usr/share/debconf/frontend ]
+ _DEBCONF_IMPL=debconf
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ debconf = cdebconf ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ DEBCONF_OLD_FD_BASE=4
+ export DEBCONF_OLD_FD_BASE
+ readonly CONFTEMPLATEPATH=/usr/share/libdebuginfod-common
+ configure_debuginfod
+ local OLDVER=
+ readonly OLDVER
+ grep -qFx ID=debian /etc/os-release
+ grep -qFx ID=ubuntu /etc/os-release
+ configure_debuginfod_ubuntu
+ local OLDVER=
/var/lib/dpkg/info/libdebuginfod-common.postinst: 32: local: OLDVER: is read only
dpkg: error processing package libdebuginfod-common (--configure):
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to elfutils in Ubuntu.
https://bugs.launchpad.net/bugs/2144516
Title:
crashed when installing package
Status in elfutils package in Ubuntu:
Confirmed
Bug description:
Unpacking pandoc-data (3.7.0.2-1build1) over (3.7.0.2-1)…
Setting up libdebuginfod-common (0.194-2)…
/var/lib/dpkg/info/libdebuginfod-common.postinst: 32: local: OLDVER: is read only
dpkg: error processing package libdebuginfod-common (--configure):
old libdebuginfod-common package postinst maintainer script subprocess failed with exit status 2
Setting up libelf1t64:amd64 (0.194-2)…
Setting up libdw1t64:amd64 (0.194-2)…
Setting up libasm1t64:amd64 (0.194-2)…
Setting up pandoc-data (3.7.0.2-1build1)…
dpkg: dependency problems prevent configuration of libdebuginfod1t64:amd64:
libdebuginfod1t64:amd64 depends on libdebuginfod-common (>= 0.194-2); however:
Package libdebuginfod-common is not configured yet.
dpkg: error processing package libdebuginfod1t64:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up bpftrace (0.25.0-1ubuntu1)…
No apport report written because the error message indicates its a followup error from a previous failure.
d
pkg: dependency problems prevent configuration of elfutils:
elfutils depends on libdebuginfod1t64 (>= 0.180); however:
Package libdebuginfod1t64:amd64 is not configured yet.
dpkg: error processing package elfutils (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
P
rocessing triggers for man-db (2.13.1-1build1)…
Processing triggers for libc-bin (2.43-2ubuntu1)…
Errors were encountered while processing:
libdebuginfod-common
libdebuginfod1t64:amd64
elfutils
Error: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: libdebuginfod1t64 0.194-2
ProcVersionSignature: Ubuntu 7.0.0-7.7-generic 7.0.0-rc3
Uname: Linux 7.0.0-7-generic x86_64
NonfreeKernelModules: zfs nvidia_modeset nvidia
ApportVersion: 2.33.1-0ubuntu4
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Mar 16 10:32:09 2026
InstallationDate: Installed on 2025-06-04 (284 days ago)
InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Daily amd64 (20250528)
SourcePackage: elfutils
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/2144516/+subscriptions
More information about the foundations-bugs
mailing list