Your message dated Wed, 2 Oct 2024 23:42:23 +0200
with message-id <zv2-pyml3fii_...@aurel32.net>
and subject line Re: Bug#1083164: libc6: [suggestion] Should depend on recent 
libcrypt1
has caused the Debian Bug report #1083164,
regarding libc6: [suggestion] Should depend on recent libcrypt1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1083164: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083164
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libc6
Version: 2.36-9+deb12u8
Severity: wishlist

It is a known "effect" of upgrading buster to bookworm (skipping bullseye) that 
upgrade 
seriously breaks the system:

...
Unpacking libc6:amd64 (2.36-9+deb12u8) over (2.28-10+deb10u4) ...               
                                                                                
                                                               
Selecting previously unselected package libgcc-s1:amd64.                        
                                                                                
                                                               
Preparing to unpack .../libgcc-s1_12.2.0-14_amd64.deb ...                       
                                                                                
                                                               
Unpacking libgcc-s1:amd64 (12.2.0-14) ...                                       
                                                                                
                                                               
Replacing files in old package libgcc1:amd64 (1:8.3.0-6) ...                    
                                                                                
                                                               
Setting up libgcc-s1:amd64 (12.2.0-14) ...                                      
                                                                                
                                                               
Setting up libc6:amd64 (2.36-9+deb12u8) ...                                     
                                                                                
                                                               
/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open 
shared object file: No such file or directory                                   
                                                               
dpkg: error processing package libc6:amd64 (--configure):                       
                                                                                
                                                               
 installed libc6:amd64 package post-installation script subprocess returned 
error exit status 127                                                           
                                                                   
Errors were encountered while processing:                                       
                                                                                
                                                               
 libc6:amd64                                                                    
                                                                                
                                                               
E: Sub-process /usr/bin/dpkg returned an error code (1)                         
                                                                                
                                                               

I guess the problem is that libc pre-depends on something like 
libcrypt1_1:4.4.33 and
if it's missing it breaks a lot of components. I mean it depends on it in the 
reality,
not according to package dependencies.

Since I have been observed this plenty of times I already know how to
fix (just including for the people possibly google for this):

cd /var/cache/apt/archives
dpkg -i libcrypt1_1%3a4.4.33-2_amd64.deb libpam0g_1.5.2-6+deb12u1_amd64.deb  
libc6_2.36-9+deb12u8_amd64.deb
(or the actual downloaded versions)

Yes, I am aware that people are advised to gradually upgrade, and I'm sure you 
are
also aware that they don't. It would be helpful and positive if package 
management
could prevent this breaking (since it's probably very hard to fix for an 
inexperienced user, who easily can hit this block).

(I hope that I have guessed right that this belongs to libc6, if not, I'd 
appreciate if
you'd reassign it peoperly, and I thank you for your help.)

I am not sure whether it's feasible, but it would be nice if you could check 
whether
it is, and if it's doable then you'd include it in the pre-depends.

If not, well, I already know what to look out for. 

Thank you very much!

--- End Message ---
--- Begin Message ---
Hi,

On 2024-10-02 16:38, Peter Gervai wrote:
> Package: libc6
> Version: 2.36-9+deb12u8
> Severity: wishlist
> 
> It is a known "effect" of upgrading buster to bookworm (skipping bullseye) 
> that upgrade 
> seriously breaks the system:
> 
> ...
> Unpacking libc6:amd64 (2.36-9+deb12u8) over (2.28-10+deb10u4) ...             
>                                                                               
>                                                                    
> Selecting previously unselected package libgcc-s1:amd64.                      
>                                                                               
>                                                                    
> Preparing to unpack .../libgcc-s1_12.2.0-14_amd64.deb ...                     
>                                                                               
>                                                                    
> Unpacking libgcc-s1:amd64 (12.2.0-14) ...                                     
>                                                                               
>                                                                    
> Replacing files in old package libgcc1:amd64 (1:8.3.0-6) ...                  
>                                                                               
>                                                                    
> Setting up libgcc-s1:amd64 (12.2.0-14) ...                                    
>                                                                               
>                                                                    
> Setting up libc6:amd64 (2.36-9+deb12u8) ...                                   
>                                                                               
>                                                                    
> /usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot 
> open shared object file: No such file or directory                            
>                                                                       
> dpkg: error processing package libc6:amd64 (--configure):                     
>                                                                               
>                                                                    
>  installed libc6:amd64 package post-installation script subprocess returned 
> error exit status 127                                                         
>                                                                      
> Errors were encountered while processing:                                     
>                                                                               
>                                                                    
>  libc6:amd64                                                                  
>                                                                               
>                                                                    
> E: Sub-process /usr/bin/dpkg returned an error code (1)                       
>                                                                               
>                                                                    
> 
> I guess the problem is that libc pre-depends on something like 
> libcrypt1_1:4.4.33 and
> if it's missing it breaks a lot of components. I mean it depends on it in the 
> reality,
> not according to package dependencies.

No the problem is that perl-base from buster is missing the dependency
on libcrypt1. perl-base from bullseye or bookworm have the depends, but
apt has planned to upgrade them later.

> Since I have been observed this plenty of times I already know how to
> fix (just including for the people possibly google for this):
> 
> cd /var/cache/apt/archives
> dpkg -i libcrypt1_1%3a4.4.33-2_amd64.deb libpam0g_1.5.2-6+deb12u1_amd64.deb  
> libc6_2.36-9+deb12u8_amd64.deb
> (or the actual downloaded versions)
> 
> Yes, I am aware that people are advised to gradually upgrade, and I'm sure 
> you are
> also aware that they don't. It would be helpful and positive if package 
> management

They are not *advised* to gradually upgrade. Skipping one version is
simply *not supported* as explained in the release notes:

https://www.debian.org/releases/bookworm/amd64/release-notes/ch-upgrading.en.html#upgrade-to-debian-oldrelease

> could prevent this breaking (since it's probably very hard to fix for an 
> inexperienced user, who easily can hit this block).
> 
> (I hope that I have guessed right that this belongs to libc6, if not, I'd 
> appreciate if
> you'd reassign it peoperly, and I thank you for your help.)

Yes this is correct.

> I am not sure whether it's feasible, but it would be nice if you could check 
> whether
> it is, and if it's doable then you'd include it in the pre-depends.

A depends is not enough, a pre-depends is necessary. And it's what libc6
in Bullseye has. But we do not want to add that circular
(pre-)dependency in Bookworm as it has many side effects, and will just
bring back bugs #975052 or #975077.

I am therefore closing the bug.

Regards
Aurelien

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

--- End Message ---

Reply via email to