Bug#984533: libc6: upgrade from 2.28-10 to 2.31-9 breaks system
On Sun, 7 Mar 2021 23:38:40 +0100 Aurelien Jarno <aurelien@aurel32.net> wrote:
> On 2021-03-07 22:56, Sven Joachim wrote:
> > On 2021-03-05 14:41 +0100, Aurelien Jarno wrote:
> >
> > > control: notfound -1 libc6/2.28-10
> > > control: found -1 libc6/2.31-9
> > > control: severity -1 grave
> > >
> > > On 2021-03-04 19:26, Thomas Hahn wrote:
> > >> Package: libc6
> > >> Version: 2.28-10
> > >> Severity: normal
> > >> X-Debbugs-Cc: thahn01@t-online.de
> > >>
> > >> Dear Maintainer,
> > >>
> > >> installed buster, then apt upgrade was also fine,
> > >> but the following dist-upgrade put the system in a broken state.
> > >>
> > >> Preparing to unpack .../62-locales_2.31-9_all.deb ...
> > >> Unpacking locales (2.31-9) over (2.28-10) ...
> > >> Preparing to unpack .../63-openssh-server_1%3a8.4p1-4_amd64.deb ...
> > >> Unpacking openssh-server (1:8.4p1-4) over (1:7.9p1-10+deb10u2) ...
> > >> Preparing to unpack .../64-libc6_2.31-9_amd64.deb ...
> > >> whiptail: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not
> > >> found (required by /lib/x86_64-linux-gnu/libslang.so.2)
> > >
> > > This seems to show that libslang2 has been wrongly unpacked before
> > > libc6. Do you happen to have the beginning of the log? You can find it
> > > in /var/log/apt/term.log.*
> > >
> > >> debconf: whiptail output the above errors, giving up!
> > >> Checking for services that may need to be restarted...dpkg: error
> > >> processing archive
> > >> /tmp/apt-dpkg-install-I51xYx/64-libc6_2.31-9_amd64.deb (--unpack):
> > >> new libc6:amd64 package pre-installation script subprocess returned error exit status 255
> > >> Selecting previously unselected package libcrypt1:amd64.
> > >> dpkg: considering deconfiguration of libc6:amd64, which would be broken by installation of libcrypt1:amd64 ...
> > >> dpkg: yes, will deconfigure libc6:amd64 (broken by libcrypt1:amd64)
> > >> Preparing to unpack .../65-libcrypt1_1%3a4.4.17-1_amd64.deb ...
> > >> De-configuring libc6:amd64 (2.28-10) ...
> > >> Unpacking libcrypt1:amd64 (1:4.4.17-1) ...
> > >> Errors were encountered while processing:
> > >> /tmp/apt-dpkg-install-I51xYx/64-libc6_2.31-9_amd64.deb
> > >> Error: Timeout was reached
> > >> E: Sub-process /usr/bin/dpkg returned an error code (1)
> > >
> > > To unbreak your system the best would be to unpack libc6 manually using
> > > the following command:
> > > dpkg -x /var/cache/apt/libc6_2.31-9_amd64.deb /
> >
> > No, never do that! This command actually runs "dpkg-deb -x" which,
> > unlike "dpkg -i", will silently overwrite symlinks to directories on the
> > filesystem with directories contained in the package. This is very bad
> > if /lib is a symlink to /usr/lib (the "usrmerge" layout).
>
> Oh I wasn't aware of that, I have fixed broken systems that way, I
> wasn't aware that it doesn't work for usrmerge systems. Yet another
> design issue of usrmerge...
>
> I guess running the usrmerge script again should fix the system.
Negativ.
Attached the usbmerge try.
Maybe it's time for a disk wipe and new install.
On another box I did an upgrade and then installed vim.
To my surprise the new libc got pulled in and everything was fine.
The apt upgrade and the directly following apt dist-upgrade were fatal.
Log started: 2021-03-08 13:24:01
Selecting previously unselected package libnumber-compare-perl.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 297436 files and directories currently installed.)
Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ...
Unpacking libnumber-compare-perl (0.03-1.1) ...
Selecting previously unselected package libtext-glob-perl.
Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ...
Unpacking libtext-glob-perl (0.11-1) ...
Selecting previously unselected package libfile-find-rule-perl.
Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ...
Unpacking libfile-find-rule-perl (0.34-1) ...
Setting up initramfs-tools (0.139) ...
update-initramfs: deferring update (trigger activated)
Setting up libtext-glob-perl (0.11-1) ...
Setting up libnumber-compare-perl (0.03-1.1) ...
Setting up libfile-find-rule-perl (0.34-1) ...
Setting up usrmerge (24) ...
[1;66r[4l)0[?25l[?1c[m[37m[40m[1;66r[H[J[1;1H[1m[37m[44m [2;1H [3;1H [4;1H [5;1H [6;1H [7;1H [8;1H [9;1H [10;1H [11;1H [12;1H [13;1H [14;1H [15;1H [16;1H [17;1H [18;1H [19;1H [20;1H [21;1H [22;1H [23;1H [24;1H [25;1H [26;1H [27;1H [28;1H [29;1H [30;1H [31;1H [32;1H [33;1H [34;1H [35;1H [36;1H [37;1H [38;1H [39;1H [40;1H [41;1H [42;1H [43;1H [44;1H [45;1H [46;1H [47;1H [48;1H [49;1H [50;1H [51;1H [52;1H [53;1H [54;1H [55;1H [56;1H [57;1H [58;1H [59;1H [60;1H [61;1H [62;1H [63;1H [64;1H [65;1H [66;1H [66;239H [4h [4l[1;1H[m[37m[44mPackage configuration[28;27H[30m[47m┌─────────────────────────────────────────────────────────────────────────┤ [31mAutomatic conversion to merged /usr[30m ├──────────────────────────────────────────────────────────────────────────┐[29;27H│ │[1m[37m[40m [30;27H[m[30m[47m│ The usrmerge package will automatically convert the system to the merged /usr directory scheme, in which the /{bin,sbin,lib}/ directories are symlinked to their counterparts in /usr/. │[1m[37m[40m [31;27H[m[30m[47m│ │[1m[37m[40m [32;27H[m[30m[47m│ There is no automatic method to restore the precedent configuration, so there is no going back once the conversion has been started. │[1m[37m[40m [33;27H[m[30m[47m│ │[1m[37m[40m [34;27H[m[30m[47m│ Do you want to convert this system to the merged /usr directories scheme? │[1m[37m[40m [35;27H[m[30m[47m│ │[1m[37m[40m [36;27H[m[30m[47m│ [37m[41m<Yes>[30m[47m <No> │[1m[37m[40m [37;27H[m[30m[47m│ │[1m[37m[40m [38;27H[m[30m[47m└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘[1m[37m[40m [39;28H [36;86H[?25h[?0c[66;1H[m[37m[40m[m[39;49m
[K
FATAL ERROR:
Both /lib/lsb/init-functions.d/99-plymouth and /usr/lib/lsb/init-functions.d/99-plymouth exist.
You can try correcting the errors reported and running again
/usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
Do not install or update other Debian packages until the program
has been run successfully.
[1mdpkg:[0m error processing package usrmerge (--configure):
installed usrmerge package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for initramfs-tools (0.139) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-4-amd64
W: missing /lib/modules/5.10.0-4-amd64
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/5.10.0-4-amd64: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/mkinitramfs_NcLuXr/lib/modules/5.10.0-4-amd64/modules.builtin: No such file or directory
find: ‘/var/tmp/mkinitramfs_NcLuXr/lib/modules/5.10.0-4-amd64/kernel’: No such file or directory
W: Can't find modules.builtin.modinfo (for locating built-in drivers' firmware, supported in Linux >=5.2)
/usr/share/initramfs-tools/hooks/cryptroot: 18: .: cannot open /lib/cryptsetup/functions: No such file
E: /usr/share/initramfs-tools/hooks/cryptroot failed with return 2.
update-initramfs: failed for /boot/initrd.img-5.10.0-4-amd64 with 2.
[1mdpkg:[0m error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
usrmerge
initramfs-tools
Log ended: 2021-03-08 13:24:07
Reply to: