Bug#984533: libc6: upgrade from 2.28-10 to 2.31-9 breaks system

2021-03-07 Thread Aurelien Jarno
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: thah...@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.

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net



Bug#984533: libc6: upgrade from 2.28-10 to 2.31-9 breaks system

2021-03-07 Thread Sven Joachim
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: thah...@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).

Cheers,
   Sven



Bug#984533: libc6: upgrade from 2.28-10 to 2.31-9 breaks system

2021-03-07 Thread Aurelien Jarno
On 2021-03-07 18:26, Thomas Hahn wrote:
> On Fri, 5 Mar 2021 14:41:23 +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: thah...@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.*
> > 
> 
> Attached the section starting with the ill-fated dist-upgrade.

Thanks, that confirms the fact that libslang2 is unpacked before. We
have to find a solution for this.

> > > 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 /
> > 
> > Then you should be able to run apt again to fix you system.
> 
> It looked like that did the trick. But then update-initramfs failed.
> /lib/modules was EMPTY!

Hmm, I fail to see how that's linked to manually unpacking the libc6
package. Do you have a log of the failure?

> The same story for 2 machines.
> So, for me it looks like the scripts in the control file do some magic
> which make it bad right now.
> 
> Thought I would get an automatic reply on all messages, but maybe I 
> need to subscribe.

Your email address was in the To:, but your mail server refused my
email. I tried from two non-dialup IPs multiple time, but all my
tentative fails:

  thah...@t-online.de
host mx02.t-online.de [194.25.134.9]
SMTP error from remote mail server after initial connection:
554 IP=193.70.89.123 - A problem occurred. (Ask your postmaster for help or 
to contact t...@rx.t-online.de to clarify.)

Aurelien

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net



Bug#984533: libc6: upgrade from 2.28-10 to 2.31-9 breaks system

2021-03-07 Thread Aurelien Jarno
On 2021-03-07 22:14, Paul Gevers wrote:
> Hi,
> 
> On Fri, 5 Mar 2021 14:41:23 +0100 Aurelien Jarno 
> wrote:
> > > 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)
> 
> Could this be the same problem as in bug #974552?
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974552

Nope, that's a different issue. libcrypt appears there as a consequence
of a the first failure.

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net


signature.asc
Description: PGP signature


Bug#984533: libc6: upgrade from 2.28-10 to 2.31-9 breaks system

2021-03-07 Thread Paul Gevers
Hi,

On Fri, 5 Mar 2021 14:41:23 +0100 Aurelien Jarno 
wrote:
> > 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)

Could this be the same problem as in bug #974552?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974552

Paul



OpenPGP_signature
Description: OpenPGP digital signature


Re: Bug#974552: upgrade-reports: libc6/libcrypt split breaks perl during buster->bullseye upgrade

2021-03-07 Thread Paul Gevers
Hi,

On Fri, 20 Nov 2020 13:44:50 +0100 Alois Wohlschlager
 wrote:
> > > > Another option might be to have the new libc6 Conflict with old
> > > > versions
> > > > of Essential:yes packages that need libcrypt1, forcing those
> > > > Essential:yes
> > > > packages to get upgraded first. A quick check based on libcrypt1
> > > > reverse
> > > > dependencies in sid shows perl-base, login and util-linux. I'm
> > > > not sure
> > > > if this list is exhaustive, though.
> 
> Having libc6 Conflict with one of those packages should be enough,
> right?

Shouldn't this bug be reassigned to libc6?

Paul



OpenPGP_signature
Description: OpenPGP digital signature


Bug#984533: libc6: upgrade from 2.28-10 to 2.31-9 breaks system

2021-03-07 Thread Thomas Hahn
On Fri, 5 Mar 2021 14:41:23 +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: thah...@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.*
> 

Attached the section starting with the ill-fated dist-upgrade.

> > 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 /
> 
> Then you should be able to run apt again to fix you system.

It looked like that did the trick. But then update-initramfs failed.
/lib/modules was EMPTY!
The same story for 2 machines.
So, for me it looks like the scripts in the control file do some magic
which make it bad right now.

Thought I would get an automatic reply on all messages, but maybe I 
need to subscribe.

> 
> Aurelien
> 
> -- 
> Aurelien Jarno  GPG: 4096R/1DDD8C9B
> aurel...@aurel32.net http://www.aurel32.net
> 

Thomas
Log started: 2021-03-04  15:57:34
Selecting previously unselected package libmfx1:amd64.
(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 ... 318464 files and directories currently installed.)
Preparing to unpack .../00-libmfx1_21.1.0-1_amd64.deb ...
Unpacking libmfx1:amd64 (21.1.0-1) ...
Selecting previously unselected package libmysofa1:amd64.
Preparing to unpack .../01-libmysofa1_1.2~dfsg0-1_amd64.deb ...
Unpacking libmysofa1:amd64 (1.2~dfsg0-1) ...
Preparing to unpack .../02-libgfortran5_10.2.1-6_amd64.deb ...
Unpacking libgfortran5:amd64 (10.2.1-6) over (8.3.0-6) ...
Preparing to unpack .../03-liblapack3_3.9.0-3_amd64.deb ...
Unpacking liblapack3:amd64 (3.9.0-3) over (3.8.0-2) ...
Preparing to unpack .../04-libgdk-pixbuf2.0-0_2.40.2-2_amd64.deb ...
Unpacking libgdk-pixbuf2.0-0:amd64 (2.40.2-2) over (2.38.1+dfsg-1) ...
Selecting previously unselected package libgdk-pixbuf-xlib-2.0-0:amd64.
Preparing to unpack .../05-libgdk-pixbuf-xlib-2.0-0_2.40.2-2_amd64.deb ...
Unpacking libgdk-pixbuf-xlib-2.0-0:amd64 (2.40.2-2) ...
Preparing to unpack .../06-libgdk-pixbuf2.0-common_2.42.2+dfsg-1_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.42.2+dfsg-1) over (2.38.1+dfsg-1) ...
Preparing to unpack .../07-libpng16-16_1.6.37-3_amd64.deb ...
Unpacking libpng16-16:amd64 (1.6.37-3) over (1.6.36-6) ...
Selecting previously unselected package libdeflate0:amd64.
Preparing to unpack .../08-libdeflate0_1.7-1_amd64.deb ...
Unpacking libdeflate0:amd64 (1.7-1) ...
Preparing to unpack .../09-libtiff5_4.2.0-1_amd64.deb ...
Unpacking libtiff5:amd64 (4.2.0-1) over (4.1.0+git191117-2~deb10u1) ...
Selecting previously unselected package libgdk-pixbuf-2.0-0:amd64.
Preparing to unpack