[Bug 1751230] Re: libc_bin package broken
Ubuntu Foundations Team Bug Bot
1751230 at bugs.launchpad.net
Fri Feb 23 12:27:08 UTC 2018
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
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1751230
Title:
libc_bin package broken
Status in glibc package in Ubuntu:
New
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1751230/+subscriptions
More information about the foundations-bugs
mailing list