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

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) ...
)0[?25l[?1c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Package configuration┌─────────────────────────────────────────────────────────────────────────┤ Automatic conversion to merged /usr ├──────────────────────────────────────────────────────────────────────────┐│                                                                                                                                                                                          │ │ 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/.  │ │                                                                                                                                                                                          │ │ There is no automatic method to restore the precedent configuration, so there is no going back once the conversion has been started.                                                     │ │                                                                                                                                                                                          │ │ Do you want to convert this system to the merged /usr directories scheme?                                                                                                                │ │                                                                                                                                                                                          │ │                                                         <Yes>                                                            <No>                                                            │ │                                                                                                                                                                                          │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘                                                                                                                                                                                             [?25h[?0c


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.

dpkg: 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.
dpkg: 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: