Bug#954915: [libc6] upgrade fail: A copy of the C library was found in an unexpected directory
On Wed, 25 Mar 2020 10:54:22 +0100 =?utf-8?B?SsO2cmc=?= Sommer wrote: > > A quick and dirty workaround is: > > ``` > # egrep '/(ld|lib(d|c|m|pthread|rt|dl))-2.*.so' $I/libc6:amd64.list |sed > 's,^,/usr,' |tee -a $I/libc6:amd64.list > /usr/lib/x86_64-linux-gnu/ld-2.30.so > /usr/lib/x86_64-linux-gnu/libc-2.30.so > /usr/lib/x86_64-linux-gnu/libdl-2.30.so > /usr/lib/x86_64-linux-gnu/libm-2.30.so > /usr/lib/x86_64-linux-gnu/libpthread-2.30.so > /usr/lib/x86_64-linux-gnu/librt-2.30.so > # dpkg --unpack $A/libc6_2.30-3_amd64.deb > (Lese Datenbank ... 452795 Dateien und Verzeichnisse sind derzeit > installiert.) > Vorbereitung zum Entpacken von .../libc6_2.30-3_amd64.deb ... > libc6:i386 (2.30-2) wird de-konfiguriert ... > Entpacken von libc6:amd64 (2.30-3) über (2.30-2) ... Hmm... strange, why does this not work for me? Although libc6:amd64.list is expanded with these lines, dkpg --unpack still fails with the same error message from the bug report...
Bug#954915: [libc6] upgrade fail: A copy of the C library was found in an unexpected directory
On 2020-03-25 10:21, Jörg Sommer wrote: > jnq...@gmail.com hat am Mi 25. Mär, 09:03 (+) geschrieben: > > Package: libc6 > > Version: 2.30-3 > > > > sudo aptitude upgrade just now: > > > > ``` > > Preparing to unpack .../libc6-dev_2.30-3_amd64.deb ... > > Unpacking libc6-dev:amd64 (2.30-3) over (2.30-2) ... > > Preparing to unpack .../libc-dev-bin_2.30-3_amd64.deb ... > > Unpacking libc-dev-bin (2.30-3) over (2.30-2) ... > > Preparing to unpack .../libc6-dbg_2.30-3_amd64.deb ... > > Unpacking libc6-dbg:amd64 (2.30-3) over (2.30-2) ... > > Preparing to unpack .../libc6_2.30-3_amd64.deb ... > > > > A copy of the C library was found in an unexpected directory: > > '/usr/lib/x86_64-linux-gnu/ld-2.30.so' > > It is not safe to upgrade the C library in this situation; > > please remove that copy of the C library or get it out of > > '/usr/lib/x86_64-linux-gnu' and try again. > > I'm having the same problem. It's caused by the package *usrmerge*, that > installed the symlinks: > > ``` > % ls -l /*(@) > lrwxrwxrwx 1 root root 7 Mär 7 2019 /bin -> usr/bin > lrwxrwxrwx 1 root root 7 Mär 7 2019 /lib -> usr/lib > lrwxrwxrwx 1 root root 9 Mär 7 2019 /lib32 -> usr/lib32 > lrwxrwxrwx 1 root root 9 Mär 7 2019 /lib64 -> usr/lib64 > lrwxrwxrwx 1 root root 10 Mär 7 2019 /libx32 -> usr/libx32 > lrwxrwxrwx 1 root root 8 Mär 7 2019 /sbin -> usr/sbin > ``` It happens that the checks in the libc6.preinst were broken, and that the fix for #954374 just fixed them. It also means that usrmerge broke those checks but we didn't notice it until now... I wonder if the best is to just remove all those checks in libc6.preinst. After all they haven't been useful all those years, although we also got a few bugs report about broken systems for which we don't know the cause and that might have been prevented by working checks. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://www.aurel32.net signature.asc Description: PGP signature
Bug#954915: [libc6] upgrade fail: A copy of the C library was found in an unexpected directory
jnq...@gmail.com hat am Mi 25. Mär, 09:03 (+) geschrieben: > Package: libc6 > Version: 2.30-3 > > sudo aptitude upgrade just now: > > ``` > Preparing to unpack .../libc6-dev_2.30-3_amd64.deb ... > Unpacking libc6-dev:amd64 (2.30-3) over (2.30-2) ... > Preparing to unpack .../libc-dev-bin_2.30-3_amd64.deb ... > Unpacking libc-dev-bin (2.30-3) over (2.30-2) ... > Preparing to unpack .../libc6-dbg_2.30-3_amd64.deb ... > Unpacking libc6-dbg:amd64 (2.30-3) over (2.30-2) ... > Preparing to unpack .../libc6_2.30-3_amd64.deb ... > > A copy of the C library was found in an unexpected directory: > '/usr/lib/x86_64-linux-gnu/ld-2.30.so' > It is not safe to upgrade the C library in this situation; > please remove that copy of the C library or get it out of > '/usr/lib/x86_64-linux-gnu' and try again. A quick and dirty workaround is: ``` # egrep '/(ld|lib(d|c|m|pthread|rt|dl))-2.*.so' $I/libc6:amd64.list |sed 's,^,/usr,' |tee -a $I/libc6:amd64.list /usr/lib/x86_64-linux-gnu/ld-2.30.so /usr/lib/x86_64-linux-gnu/libc-2.30.so /usr/lib/x86_64-linux-gnu/libdl-2.30.so /usr/lib/x86_64-linux-gnu/libm-2.30.so /usr/lib/x86_64-linux-gnu/libpthread-2.30.so /usr/lib/x86_64-linux-gnu/librt-2.30.so # dpkg --unpack $A/libc6_2.30-3_amd64.deb (Lese Datenbank ... 452795 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../libc6_2.30-3_amd64.deb ... libc6:i386 (2.30-2) wird de-konfiguriert ... Entpacken von libc6:amd64 (2.30-3) über (2.30-2) ... # egrep '/(ld|lib(d|c|m|pthread|rt|dl))-2.*.so' $I/libc6:i386.list |sed 's,^,/usr,; p; s,/i386-linux-gnu,32,' |tee -a $I/libc6:i386.list /usr/lib/i386-linux-gnu/ld-2.30.so /usr/lib32/ld-2.30.so /usr/lib/i386-linux-gnu/libc-2.30.so /usr/lib32/libc-2.30.so /usr/lib/i386-linux-gnu/libdl-2.30.so /usr/lib32/libdl-2.30.so /usr/lib/i386-linux-gnu/libm-2.30.so /usr/lib32/libm-2.30.so /usr/lib/i386-linux-gnu/libpthread-2.30.so /usr/lib32/libpthread-2.30.so /usr/lib/i386-linux-gnu/librt-2.30.so /usr/lib32/librt-2.30.so # dpkg --unpack $A/libc6_2.30-3_i386.deb (Lese Datenbank ... 452801 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../archives/libc6_2.30-3_i386.deb ... Entpacken von libc6:i386 (2.30-3) über (2.30-2) ... ``` Pay attention: The command for sed for i386 is different from amd64! -- The UNIX Guru's View of Sex: # unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep signature.asc Description: PGP signature
Bug#954915: [libc6] upgrade fail: A copy of the C library was found in an unexpected directory
jnq...@gmail.com hat am Mi 25. Mär, 09:03 (+) geschrieben: > Package: libc6 > Version: 2.30-3 > > sudo aptitude upgrade just now: > > ``` > Preparing to unpack .../libc6-dev_2.30-3_amd64.deb ... > Unpacking libc6-dev:amd64 (2.30-3) over (2.30-2) ... > Preparing to unpack .../libc-dev-bin_2.30-3_amd64.deb ... > Unpacking libc-dev-bin (2.30-3) over (2.30-2) ... > Preparing to unpack .../libc6-dbg_2.30-3_amd64.deb ... > Unpacking libc6-dbg:amd64 (2.30-3) over (2.30-2) ... > Preparing to unpack .../libc6_2.30-3_amd64.deb ... > > A copy of the C library was found in an unexpected directory: > '/usr/lib/x86_64-linux-gnu/ld-2.30.so' > It is not safe to upgrade the C library in this situation; > please remove that copy of the C library or get it out of > '/usr/lib/x86_64-linux-gnu' and try again. I'm having the same problem. It's caused by the package *usrmerge*, that installed the symlinks: ``` % ls -l /*(@) lrwxrwxrwx 1 root root 7 Mär 7 2019 /bin -> usr/bin lrwxrwxrwx 1 root root 7 Mär 7 2019 /lib -> usr/lib lrwxrwxrwx 1 root root 9 Mär 7 2019 /lib32 -> usr/lib32 lrwxrwxrwx 1 root root 9 Mär 7 2019 /lib64 -> usr/lib64 lrwxrwxrwx 1 root root 10 Mär 7 2019 /libx32 -> usr/libx32 lrwxrwxrwx 1 root root 8 Mär 7 2019 /sbin -> usr/sbin ``` Regards Jörg -- Habe Mut, dich deines eigenen Verstandes zu bedienen! – Immanuel Kant signature.asc Description: PGP signature