libc_bin package broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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:
Segmentation fault
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
apt autoremove
apt autoclean
apt clean
One solution suggested to remove the broken package, but that would have meant breaking Ubuntu.
I created the following a workaround:
Download the deb file (libc-bin_
mkdir -p /tmp/fix/DEBIAN
cd /tmp/fix
ar x ../libc-
tar -xf data.tar.gz
cd /tmp/fix/DEBIAN
tar -xf ../control.tar.gz
cd /tmp
rm control.tar.gz
rm data.tar.gx
In the end, you need to have etc, sbin, usr and DEBIAN folders in /tmp/fix.
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.
cd /tmp
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/
Now install this file:
dpkg -i tmp/fix/
(it should not cause any problems)
Now run the script that was supposed to be run by the installer:
bash /tmp/postinst
Ok, so now you can continue working until the problem has been sorted out.
I attached the repackaged deb - please verify your architecture and version before using it.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libc-bin 2.23-0ubuntu10
ProcVersionSign
Uname: Linux 4.4.0-116-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Fri Feb 23 10:54:34 2018
Dependencies:
gcc-6-base 6.0.1-0ubuntu1
libc6 2.23-0ubuntu10
libgcc1 1:6.0.1-0ubuntu1
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)
The attachment "dep package rebuilt without postinst" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]