Public bug reported:
After an upgrade, I got this problem:
dpkg: error processing package libc-bin (--configure):
subprocess installed post-installation script returned error exit status 139
During several retries and trying several possible solutions I found on the
internet, I have seen this as well:
This bug was reported in earlier versions of Ubuntu (as far back as 2011). None
of the suggestions worked - they included:
apt -f install
dpkg --configure -a
One solution suggested to remove the broken package, but that would have meant
I created the following a workaround:
Download the deb file (libc-bin_2.23-0ubuntu10_amd64.deb) from ubuntu
package web site (https://packages.ubuntu.com) and save it in /tmp.
Trying to install this deb will not work. Extract the contents into an
empty folder (e.g. /tmp/fix). With mc (midnight commander) this is
pretty easy, but here are some commands that might help.
mkdir -p /tmp/fix/DEBIAN
ar x ../libc-bin_2.23-0ubuntu10_amd64.deb
tar -xf data.tar.gz
tar -xf ../control.tar.gz
In the end, you need to have etc, sbin, usr and DEBIAN folders in
If you used mc, you might have INFO and INSTALL - you can delete them.
Move DEBIAN/postinst to some other place (e.g. /tmp)
Now rebuild the package without the postinst script.
dpkg --build /tmp/fix
You should now have package called build.deb in /tmp. You need to rename
it, so use this command:
mv /tmp/build.deb /tmp/fix/libc-bin_2.23-0ubuntu10_amd64.deb
Now install this file:
dpkg -i tmp/fix/libc-bin_2.23-0ubuntu10_amd64.deb
(it should not cause any problems)
Now run the script that was supposed to be run by the installer:
Ok, so now you can continue working until the problem has been sorted
I attached the repackaged deb - please verify your architecture and
version before using it.
DistroRelease: Ubuntu 16.04
Package: libc-bin 2.23-0ubuntu10
ProcVersionSignature: Ubuntu 4.4.0-116.140-generic 4.4.98
Uname: Linux 4.4.0-116-generic x86_64
Date: Fri Feb 23 10:54:34 2018
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: glibc (Ubuntu)
** Tags: amd64 apport-bug xenial
** Patch added: "dep package rebuilt without postinst"
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
libc_bin package broken
To manage notifications about this bug go to:
ubuntu-bugs mailing list