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

Bug#741031: libc6: cannot upgrade from 2.17-97 to 2.18-4



Package: libc6
Severity: important

Today, while upgrading my testing system, aptitude failed while
upgrading libc6:amd64.  All my attempts to find a soolution failed.  

Upgrading fails because postrm dumps core, but apparently the culprit is
not the postrm script.  I modified /var/lib/dpkg/info/libc6:amd64.postrm
like this (first two lines):

#! /bin/bash
touch /tmp/inst

however, no /tmp/inst file is created, which means that the script is
never in fact executed.  This is the dpkg output:

# dpkg -D3 -i /var/cache/apt/archives/libc6_2.18-4_amd64.deb 
(Reading database ... 608705 files and directories currently installed.)
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Checking for services that may need to be restarted...
Checking init scripts...
Unpacking libc6:amd64 (2.18-4) over (2.17-97) ...
dpkg: warning: subprocess old post-removal script was killed by signal (Segmentation fault), core dumped
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.18-4_amd64.deb (--install):
 subprocess new post-removal script was killed by signal (Segmentation fault), core dumped
dpkg: error while cleaning up:
 subprocess installed pre-installation script was killed by signal (Segmentation fault), core dumped
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.18-4_amd64.deb

Note that I am able to use dpkg to install other .deb files when using
--force-depends, so apparently the problem is only with
libc6_2.18-4_amd64.deb.

I tried to follow the instructions given on bug 736097:

>- make sure ldconfig won't be run anymore: 
>    ln -sf /bin/true /lib/ldconfig
>- point the symlink to the correct libc version:
>    ln -sf /lib/x86_64-linux-gnu/libdl-2.17.so
>    /lib64/ld-linux-x86-64.so.2
>  note that the version 2.17 might have to be adjusted depending on the
>  libc currently installed on your system

but as soon as the second command is given, the system becomes unusable
as no new process can be launched from the command line.  Fortunately I
was under Emacs and I had looked at the previous situation so I could
restore it using Emacs commands.

Anyway, I also tried to skip the second step and proceed:

>- remove libc6-amd64:
>    apt-get remove libc6-amd64
>- reinstall and/or upgrade at least libc6 and libc-bin:
>    apt-get --reinstall libc6 libc-bin

But I got this:

# apt-get remove libc6-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 lib64asan0:i386 : Depends: libc6-amd64:i386 (>= 2.2.5) but it is not going to be installed
 lib64atomic1:i386 : Depends: libc6-amd64:i386 (>= 2.14) but it is not going to be installed
 lib64gcc1:i386 : Depends: libc6-amd64:i386 (>= 2.14) but it is not going to be installed
 lib64gomp1:i386 : Depends: libc6-amd64:i386 (>= 2.17) but it is not going to be installed
 lib64itm1:i386 : Depends: libc6-amd64:i386 (>= 2.14) but it is not going to be installed
 lib64quadmath0:i386 : Depends: libc6-amd64:i386 (>= 2.14) but it is not going to be installed
 lib64stdc++6:i386 : Depends: libc6-amd64:i386 (>= 2.17) but it is not going to be installed
 libc6-i686:i386 : PreDepends: libc6:i386 (= 2.17-97) but 2.18-4 is to be installed
 libmate-menu2 : Breaks: libmatemenu
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Then I tried directly with dpkg:

# dpkg -r libc6-amd64
dpkg: dependency problems prevent removal of libc6-amd64:
 lib64gcc1 depends on libc6-amd64 (>= 2.14).
 lib64gomp1 depends on libc6-amd64 (>= 2.17).
 lib64itm1 depends on libc6-amd64 (>= 2.14).
 lib64atomic1 depends on libc6-amd64 (>= 2.14).
 lib64quadmath0 depends on libc6-amd64 (>= 2.14).
 lib64asan0 depends on libc6-amd64 (>= 2.2.5).
 lib64stdc++6 depends on libc6-amd64 (>= 2.17).

dpkg: error processing package libc6-amd64 (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 libc6-amd64


I did not try any of dpkg --force options for fear of making my system
unusable, so I am stuck at this.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (101, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: