[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#722217: 1 fixed 1 still broken





On Thu, 2013-10-31 at 21:26 -0400, Wendy J. Elmer wrote:


On Tue, 2013-10-08 at 21:41 -0400, Wendy J. Elmer wrote:
I tried to install and older version of libc6 from the snapshot repository but that didn't work.  I kept getting the segfault.  Here is what I did that finally worked:

as root
# /var/lib/dpkg/info/libc6-i686:i386.postinst configure
# dpkg --configure libc6
# apt-get -f install
# dpkg --configure -a

I don't know if all of those steps were required but it took care of the problem.

On my other machine that is broken, it is segfaulting in the pre-install.  That machine is a 64bit amd computer.  I haven't figured out a way to fix it yet.

Brent

Any help on fixing my other machine would be appreciated.  apt-get -f install gives a segfault and I can't tell what preinst or postinst is having a problem.  Is there a way to get more details of apt-get -f install to show line by line what it is doing?  I see several libc6* .preinst and .postinst scripts in /var/lib/dpkg/info.
When I run apt-get -f install, it tells me there are two packages to be upgraded libc6 and libc6-i686:i386.
It also says 8 not fully installed or removed.  When I select y I see:

Reading changelogs... Done
Segmentation fault
(Reading database ... 229401 files and directories currently installed.)
Preparing to replace libc6:amd64 2.17-92+b1 (using .../libc6_2.17-93_amd64.deb (--unpack):
subprocess new pre-installation script was killed by signal (Segmentation fault)
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.17-93_amd64.deb
E: Sub-process /usr/bin/dmpk returned an error code (1)

I put a set -x in /var/lib/dpkg/info/libc6:amd64.preinst but I don't know how to run the script manually to see what it is doing because it takes 2 arguments which I don't know what to use.  The 2 arguments are type and preversion

Brent

I have fixed the computer.  Since I could tell the problem was in libc3:amd64.preinst and I could tell that nothing needed to be done in the preinst given the version I was upgrading from, I unpacked the package and put an exit 0 near the top of the .preinst script then put the package back together and installed.

I used dpkg-deb --extract to extract the package
dpkg-deb -e to extract the DEBIAN directory
edited the .preinst script
dpkg -b to put the package back together
dpkg -i to install the package
I did a apt-get -f install to make sure everything was fully installed

Once I did that the computer worked again. 

Brent
Reply to: