Bug#1070490: libc6: Unpacking libc6:amd64 2.28-10+deb10u3 over 2.28-10+deb10u2 breaks system

2024-05-13 Thread Jan Krčmář
There was one more problem.

On machines having this symlink

lrwxrwxrwx 1 root root 9 Apr 27 2021 /lib64 -> usr/lib64

Installing package libc6 2.28-10+deb10u3 removed /lib64/ld-linux-x86-64.so.2
before end of the installation (during some package installation scripts).
So the installation won't end correctly. Ending with the same broken system as
mentioned earlier.

This could be fixed with nasty hack (no warranty guaranteed)

perl -e 'mkdir "lib64.new";
symlink "/lib/x86_64-linux-gnu/ld-2.28.so", "lib64.new/ld-linux-x86-64.so.2";
symlink "/lib/x86_64-linux-gnu/libgcc_s.so.1", "lib64.new/libgcc_s.so.1";
unlink "/lib64";
rename "lib64.new", "/lib64"'

(You can't use bash or it will gets broken after unlink /lib64)

Hope this won't break anything else.

Regards,
Jan

On Thu, 9 May 2024 10:30:36 +0200
Jan Krčmář  wrote:

> Thanks for your investigation. There is a buster running as a base system.
> I didn't notice that the libcrypt1 does not come from buster earlier.
> 
> This situation is probably caused by newer openafs-client/bullseye package,
> which depends on libcrypt1/bullseye, which definitely breaks libc6/buster.
> There were several bugs in the openafs some time ago, so the decision was
> made to switch to the bullseye version, ending with weird distribution state.
> 
> Removing the libcrypt1 package resolves the the problem.
> 
> Cheers,
> Jan
> 
> On Mon, 6 May 2024 20:00:10 +0300
> Adrian Bunk  wrote:
> 
> > On Mon, May 06, 2024 at 05:37:37PM +0100, Adam D. Barratt wrote:  
> > > On Mon, 2024-05-06 at 13:02 +0200, Jan Krčmář wrote:
> > > > Package: libc6
> > > > Version: 2.28-10+deb10u3
> > > > 
> > > > Upgrading the system (Debian 10/Buster) causes corrupted system,
> > > > ending with kernel panic and unbootable system.
> > > > 
> > > [...]
> > > > The following packages will be upgraded:
> > > > apt apt-transport-https apt-utils base-files ca-certificates 
> > > 
> > > The fact that APT is being upgraded here seems strange - APT hasn't
> > > changed in buster for 3 years. What's your base system?
> > 
> > There's also  
> > > > Unpacking base-files (10.3+deb10u13) over (10.3+deb10u5) ...
> > 
> > That's outdated since September 2020.
> >   
> > > > Unpacking libc6:amd64 (2.28-10+deb10u3) over (2.28-10+deb10u2) ...
> > > > Replaced by files in installed package libcrypt1:amd64 (1:4.4.18-4)
> > > > ...
> > > 
> > > This, on the other hand, looks like you've done something odd to your
> > > system. libcrypt1 doesn't exist until bullseye, so at some point you
> > > have partially upgraded your base system. In conjunction with your pre-
> > > upgrade system apparently having an APT version that's /older/ than the
> > > one in buster, this feels odd.
> > 
> > There is related nastiness with partial upgrades from buster to 
> > bullseye, see the last two items at [1].
> > 
> > I am not sure whether it is the root cause here, but it's at least 
> > plausible that not being able to have the Breaks in libcrypt1 causes 
> > problems for such partially upgraded systems.
> >   
> > > Regards,
> > > 
> > > Adam
> > 
> > cu
> > Adrian
> > 
> > [1]
> > https://tracker.debian.org/news/1239066/accepted-libxcrypt-14418-3-source-into-unstable/
> >  


smime.p7s
Description: S/MIME cryptographic signature


Bug#1070490: libc6: Unpacking libc6:amd64 2.28-10+deb10u3 over 2.28-10+deb10u2 breaks system

2024-05-09 Thread Jan Krčmář
Thanks for your investigation. There is a buster running as a base system.
I didn't notice that the libcrypt1 does not come from buster earlier.

This situation is probably caused by newer openafs-client/bullseye package,
which depends on libcrypt1/bullseye, which definitely breaks libc6/buster. There
were several bugs in the openafs some time ago, so the decision was made to
switch to the bullseye version, ending with weird distribution state.

Removing the libcrypt1 package resolves the the problem.

Cheers,
Jan

On Mon, 6 May 2024 20:00:10 +0300
Adrian Bunk  wrote:

> On Mon, May 06, 2024 at 05:37:37PM +0100, Adam D. Barratt wrote:
> > On Mon, 2024-05-06 at 13:02 +0200, Jan Krčmář wrote:  
> > > Package: libc6
> > > Version: 2.28-10+deb10u3
> > > 
> > > Upgrading the system (Debian 10/Buster) causes corrupted system,
> > > ending with kernel panic and unbootable system.
> > >   
> > [...]  
> > > The following packages will be upgraded:
> > > apt apt-transport-https apt-utils base-files ca-certificates   
> > 
> > The fact that APT is being upgraded here seems strange - APT hasn't
> > changed in buster for 3 years. What's your base system?  
> 
> There's also
> > > Unpacking base-files (10.3+deb10u13) over (10.3+deb10u5) ...  
> 
> That's outdated since September 2020.
> 
> > > Unpacking libc6:amd64 (2.28-10+deb10u3) over (2.28-10+deb10u2) ...
> > > Replaced by files in installed package libcrypt1:amd64 (1:4.4.18-4)
> > > ...  
> > 
> > This, on the other hand, looks like you've done something odd to your
> > system. libcrypt1 doesn't exist until bullseye, so at some point you
> > have partially upgraded your base system. In conjunction with your pre-
> > upgrade system apparently having an APT version that's /older/ than the
> > one in buster, this feels odd.  
> 
> There is related nastiness with partial upgrades from buster to 
> bullseye, see the last two items at [1].
> 
> I am not sure whether it is the root cause here, but it's at least 
> plausible that not being able to have the Breaks in libcrypt1 causes 
> problems for such partially upgraded systems.
> 
> > Regards,
> > 
> > Adam  
> 
> cu
> Adrian
> 
> [1]
> https://tracker.debian.org/news/1239066/accepted-libxcrypt-14418-3-source-into-unstable/


smime.p7s
Description: S/MIME cryptographic signature


Bug#1070490: libc6: Unpacking libc6:amd64 2.28-10+deb10u3 over 2.28-10+deb10u2 breaks system

2024-05-06 Thread Adrian Bunk
On Mon, May 06, 2024 at 05:37:37PM +0100, Adam D. Barratt wrote:
> On Mon, 2024-05-06 at 13:02 +0200, Jan Krčmář wrote:
> > Package: libc6
> > Version: 2.28-10+deb10u3
> > 
> > Upgrading the system (Debian 10/Buster) causes corrupted system,
> > ending with kernel panic and unbootable system.
> > 
> [...]
> > The following packages will be upgraded:
> > apt apt-transport-https apt-utils base-files ca-certificates 
> 
> The fact that APT is being upgraded here seems strange - APT hasn't
> changed in buster for 3 years. What's your base system?

There's also
> > Unpacking base-files (10.3+deb10u13) over (10.3+deb10u5) ...

That's outdated since September 2020.

> > Unpacking libc6:amd64 (2.28-10+deb10u3) over (2.28-10+deb10u2) ...
> > Replaced by files in installed package libcrypt1:amd64 (1:4.4.18-4)
> > ...
> 
> This, on the other hand, looks like you've done something odd to your
> system. libcrypt1 doesn't exist until bullseye, so at some point you
> have partially upgraded your base system. In conjunction with your pre-
> upgrade system apparently having an APT version that's /older/ than the
> one in buster, this feels odd.

There is related nastiness with partial upgrades from buster to 
bullseye, see the last two items at [1].

I am not sure whether it is the root cause here, but it's at least 
plausible that not being able to have the Breaks in libcrypt1 causes 
problems for such partially upgraded systems.

> Regards,
> 
> Adam

cu
Adrian

[1] 
https://tracker.debian.org/news/1239066/accepted-libxcrypt-14418-3-source-into-unstable/



Bug#1070490: libc6: Unpacking libc6:amd64 2.28-10+deb10u3 over 2.28-10+deb10u2 breaks system

2024-05-06 Thread Adam D. Barratt
On Mon, 2024-05-06 at 13:02 +0200, Jan Krčmář wrote:
> Package: libc6
> Version: 2.28-10+deb10u3
> 
> Upgrading the system (Debian 10/Buster) causes corrupted system,
> ending with kernel panic and unbootable system.
> 
[...]
> The following packages will be upgraded:
> apt apt-transport-https apt-utils base-files ca-certificates 

The fact that APT is being upgraded here seems strange - APT hasn't
changed in buster for 3 years. What's your base system?

> 
[...]
> Unpacking libc6:amd64 (2.28-10+deb10u3) over (2.28-10+deb10u2) ...
> Replaced by files in installed package libcrypt1:amd64 (1:4.4.18-4)
> ...

This, on the other hand, looks like you've done something odd to your
system. libcrypt1 doesn't exist until bullseye, so at some point you
have partially upgraded your base system. In conjunction with your pre-
upgrade system apparently having an APT version that's /older/ than the
one in buster, this feels odd.

Regards,

Adam



Bug#1070490: libc6: Unpacking libc6:amd64 2.28-10+deb10u3 over 2.28-10+deb10u2 breaks system

2024-05-06 Thread Jan Krčmář
Package: libc6
Version: 2.28-10+deb10u3

Upgrading the system (Debian 10/Buster) causes corrupted system, ending with 
kernel panic and unbootable system.

Here is a transcript:

# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
linux-image-4.19.0-10-cloud-amd64
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
apt apt-transport-https apt-utils base-files ca-certificates cfengine-community 
file iproute2 iputils-ping klibc-utils
libapt-inst2.0 libapt-pkg5.0 libbsd0 libc-bin libc-dev-bin libc-l10n libc6 
libc6-dev libefiboot1 libefivar1 libfreetype6
libgcrypt20 libgmp10 libicu63 libklibc libmagic-mgc libmagic1 locales 
locales-all
29 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.1 MB of archives.
After this operation, 788 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:2 http://deb.debian.org/debian buster/main amd64 base-files amd64 
10.3+deb10u13 [69.9 kB]
Get:3 http://deb.debian.org/debian-security buster/updates/main amd64 libc6-dev 
amd64 2.28-10+deb10u3 [2,693 kB]
Get:4 http://deb.debian.org/debian-security buster/updates/main amd64 
libc-dev-bin amd64 2.28-10+deb10u3 [276 kB]
Get:5 http://deb.debian.org/debian-security buster/updates/main amd64 libc6 
amd64 2.28-10+deb10u3 [2,871 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 libapt-pkg5.0 amd64 
1.8.2.3 [967 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 libapt-inst2.0 amd64 
1.8.2.3 [204 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 apt amd64 1.8.2.3 [1,418 
kB]
Get:9 http://deb.debian.org/debian buster/main amd64 apt-utils amd64 1.8.2.3 
[421 kB]
Get:10 http://deb.debian.org/debian-security buster/updates/main amd64 libc-bin 
amd64 2.28-10+deb10u3 [790 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libgcrypt20 amd64 
1.8.4-5+deb10u1 [556 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 libgmp10 amd64 
2:6.1.2+dfsg-4+deb10u1 [251 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 iproute2 amd64 
4.20.0-2+deb10u1 [826 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 iputils-ping amd64 
3:20180629-2+deb10u2 [43.4 kB]
Get:15 http://deb.debian.org/debian buster/main amd64 file amd64 
1:5.35-4+deb10u2 [66.4 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 libmagic1 amd64 
1:5.35-4+deb10u2 [118 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 libmagic-mgc amd64 
1:5.35-4+deb10u2 [242 kB]
Get:18 http://deb.debian.org/debian-security buster/updates/main amd64 
libc-l10n all 2.28-10+deb10u3 [847 kB]
Get:19 http://deb.debian.org/debian-security buster/updates/main amd64 
locales-all amd64 2.28-10+deb10u3 [10.8 MB]
Get:1 https://download.zcu.cz/public/software/linux/debian stable/main amd64 
cfengine-community amd64 3.21.3-1.debian11 [5,290 kB]
Get:20 http://deb.debian.org/debian-security buster/updates/main amd64 locales 
all 2.28-10+deb10u3 [4,060 kB]
Get:21 http://deb.debian.org/debian buster/main amd64 apt-transport-https all 
1.8.2.3 [149 kB]
Get:22 http://deb.debian.org/debian buster/main amd64 ca-certificates all 
20200601~deb10u2 [166 kB]
Get:23 http://deb.debian.org/debian buster/main amd64 klibc-utils amd64 
2.0.6-1+deb10u1 [95.1 kB]
Get:24 http://deb.debian.org/debian buster/main amd64 libklibc amd64 
2.0.6-1+deb10u1 [54.4 kB]
Get:25 http://deb.debian.org/debian buster/main amd64 libbsd0 amd64 
0.9.1-2+deb10u1 [99.5 kB]
Get:26 http://deb.debian.org/debian buster/main amd64 libefivar1 amd64 
37-2+deb10u1 [46.6 kB]
Get:27 http://deb.debian.org/debian buster/main amd64 libefiboot1 amd64 
37-2+deb10u1 [44.2 kB]
Get:28 http://deb.debian.org/debian buster/main amd64 libfreetype6 amd64 
2.9.1-3+deb10u3 [380 kB]
Get:29 http://deb.debian.org/debian buster/main amd64 libicu63 amd64 
63.1-6+deb10u3 [8,293 kB]
Fetched 42.1 MB in 0s (98.8 MB/s)
Preconfiguring packages ...
(Reading database ... 71235 files and directories currently installed.)
Preparing to unpack .../base-files_10.3+deb10u13_amd64.deb ...
Unpacking base-files (10.3+deb10u13) over (10.3+deb10u5) ...
Setting up base-files (10.3+deb10u13) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 71235 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.28-10+deb10u3_amd64.deb ...
Unpacking libc6-dev:amd64 (2.28-10+deb10u3) over (2.28-10+deb10u2) ...
Preparing to unpack .../libc-dev-bin_2.28-10+deb10u3_amd64.deb ...
Unpacking libc-dev-bin (2.28-10+deb10u3) over (2.28-10+deb10u2) ...
Preparing to unpack .../libc6_2.28-10+deb10u3_amd64.deb ...
Unpacking libc6:amd64 (2.28-10+deb10u3) over (2.28-10+deb10u2) ...
Replaced by files in installed package libcrypt1:amd64 (1:4.4.18-4) ...
dpkg: error processing archive 
/var/cache/apt/archives/libc6_2.28-10+deb10u3_amd64.deb (--unpack):
unable to install new version of