Source: libc6 Version: 2.13-38 Severity: important Hello,
i have today tried to install wine-bin:i386 on my amd64 system, as recommended by the amd64 wine package which shows an dialog stating that the user should "dpkg --add-architecture i386; apt-get update; apt-get install wine-bin:i386". Upon doing this, aptitude wanted to install a few :i386 libs (libc6 among them) as well as upgrade libc6:amd64 (by one minor version). In the installation process, dpkg bailed out and quit with an error similar to this below. Nothing on my system worked anymore, always not finding some different core library. Upon rebooting, the system wouldn't boot anymore by not finding lib6.so. I then booted a rescue system (grml) and tried to chroot onto my system, which didn't work (libtinfo.so.5 not found). After a bit of looking around, i've seen that /etc/ld.so.cache was missing. I copied the ld.so.cache from my grml over to my system, and chroot worked, then i regenerated ld.so.cache with "ldconfig -v". I then had a usable system again. But when trying to apt-get -f install to finish the installation procedure that aborted before, i get this: ============ snip =============== root@grml ~ # bash root@grml:~# chroot /mnt/ /bin/bash dircolors: /etc/DIR_COLORS: No such file or directory --[ root@grml ]---[ / ]--------------------------------------------------------------------------------------------------- / # ldconfig --[ root@grml ]---[ / ]--------------------------------------------------------------------------------------------------- / # apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: cpp-4.7 g++-4.7 gcc-4.7 gcc-4.7-base gcc-4.7-base:i386 lib32gcc1 lib32itm1 lib32stdc++6 libc6 libc6:i386 libc6-amd64:i386 libc6-i686:i386 libgcc1 libgcc1:i386 libgfortran3 libobjc4 libquadmath0 libstdc++6 libstdc++6-4.7-dev Suggested packages: gcc-4.7-locales g++-4.7-multilib gcc-4.7-doc libstdc++6-4.7-dbg gcc-4.7-multilib libmudflap0-4.7-dev libgcc1-dbg libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 binutils-gold glibc-doc glibc-doc:i386 locales:i386 libstdc++6-4.7-doc The following NEW packages will be installed: gcc-4.7-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i386 The following packages will be upgraded: cpp-4.7 g++-4.7 gcc-4.7 gcc-4.7-base lib32gcc1 lib32itm1 lib32stdc++6 libc6 libc6-amd64:i386 libgcc1 libgfortran3 libobjc4 libquadmath0 libstdc++6 libstdc++6-4.7-dev 15 upgraded, 4 newly installed, 0 to remove and 567 not upgraded. 9 not fully installed or removed. Need to get 0 B/39.2 MB of archives. After this operation, 11.8 MB of additional disk space will be used. Do you want to continue [Y/n]? Preconfiguring packages ... Can not write log, openpty() failed (/dev/pts not mounted?) (Reading database ... 397411 files and directories currently installed.) Preparing to replace libc6:amd64 2.13-37 (using .../libc6_2.13-38_amd64.deb) ... Unpacking replacement libc6:amd64 ... dpkg-deb: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_amd64.deb (--unpack): subprocess dpkg-deb --fsys-tarfile returned error exit status 127 /bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 127 rm: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory dpkg: error while cleaning up: subprocess rm cleanup returned error exit status 127 dpkg-split: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_i386.deb (--unpack): subprocess dpkg-split returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.13-38_amd64.deb /var/cache/apt/archives/libc6_2.13-38_i386.deb sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 1 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null' E: Sub-process returned an error code E: Sub-process /usr/bin/dpkg returned an error code (1) --[ root@grml ]---[ / ]--------------------------------------------------------------------------------------------------- / # ls -la /etc/ld.so.cache ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory --[ root@grml ]---[ / ]--------------------------------------------------------------------------------------------------- / # exit root@grml:~# ls -la /mnt/etc/ld.so.cache ls: cannot access /mnt/etc/ld.so.cache: No such file or directory ============ snap =============== As you can see, it seems that installing libc6 deletes ld.so.cache in its preinst and then fails to install. I copied both of the libc6 debs in question (amd64, i386) over to my rescue system, unpacked them and removed the "rm /etc/ld.so.cache" line from the preinst script, then reassembled them and manually installed them with dpkg -i. After that, apt-get -f completed successfully and i was with a working system once again. My question would be is how this can happen, starting off from a working single-arch testing system, and what we can/could do to prevent this from happening for future users? Thank you for your time, and please continue your great work on Debian GNU/Linux ;P Best Regards - Dario Ernst -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (500, 'testing'), (50, 'experimental'), (50, 'unstable'), (50, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org