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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144516

Title:
  crashed when installing package

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


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

Reply via email to