libc_bin package broken

Bug #1751230 reported by John Bester
8
This bug affects 1 person
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_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
cd /tmp/fix
ar x ../libc-bin_2.23-0ubuntu10_amd64.deb
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/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:

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
ProcVersionSignature: Ubuntu 4.4.0-116.140-generic 4.4.98
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)

Revision history for this message
John Bester (john-bester) wrote :
Revision history for this message
John Bester (john-bester) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.