Dnia poniedziaƂek 20 lipiec 2009 o 08:34:18 Raphael Hertzog napisaƂ(a):
> On Sun, 19 Jul 2009, Szymon Janc wrote:
> > I've seen this bug report and at the begining I thought the same, but
> > there is no directory in my /var/lib/dpkg/alternatives..
>
> Can you run "sh -e -x dpkg.preinst upgrade 1.15.2" with the attached script
> and send me the output? Also send me the content of the last alternatives
> file read by the script (will be visible in the log).

Output and files attached.

> I expect one of the files to be broken and have an inconsistent number
> of lines... which could lead to a read call failing. I'll fix that
> shortly.
>
> > -rw-r--r-- 1 root root    31 2008-02-26  java-rmi.cgi
> > -rw-r--r-- 1 root root    26 2008-07-21  java_vm
> > -rw-r--r-- 1 root root    27 2008-07-21  jcontrol

Problem was with builtins.7.gz and write (both attached if that helps). After 
removing them upgrade went smoothly . It seems that these files were corrupted 
after filesystem failure I've encountered some time ago... Sorry for trouble:)

-- 
Szymon K. Janc
szy...@janc.net.pl // GG: 1383435
thlon:/home/janc# sh -e -x dpkg.preinst upgrade 1.15.2                          
+ case "$1" in                                                                  
 
+ dpkg --compare-versions 1.15.2 lt 1.15.3                                      
 
+ kill_bad_alternatives                                                         
 
+ local IFS=                                                                    
 
+ ALTDIR=/var/lib/dpkg/alternatives                                             
 
+ for alt in '$ALTDIR/*'                                                        
 
+ '[' '!' -f /var/lib/dpkg/alternatives/acroread ']'                            
 
+ read mode                                                                     
 
+ read mainlink                                                                 
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' '' = '' ']'                                                               
 
+ break                                                                         
 
+ for alt in '$ALTDIR/*'                                                        
 
+ '[' '!' -f /var/lib/dpkg/alternatives/avidemux ']'                            
 
+ read mode                                                                     
 
+ read mainlink                                                                 
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' '' = '' ']'                                                               
 
+ break                                                                         
 
+ for alt in '$ALTDIR/*'                                                        
 
+ '[' '!' -f /var/lib/dpkg/alternatives/awk ']'                                 
 
+ read mode                                                                     
 
+ read mainlink                                                                 
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' awk.1.gz = '' ']'                                                         
 
+ '[' -e /var/lib/dpkg/alternatives/awk.1.gz ']'                                
 
+ read slavelink                                                                
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' nawk = '' ']'                                                             
 
+ '[' -e /var/lib/dpkg/alternatives/nawk ']'                                    
 
+ read slavelink                                                                
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' nawk.1.gz = '' ']'                                                        
 
+ '[' -e /var/lib/dpkg/alternatives/nawk.1.gz ']'                               
 
+ read slavelink                                                                
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' '' = '' ']'                                                               
 
+ break                                                                         
 
+ for alt in '$ALTDIR/*'                                                        
 
+ '[' '!' -f /var/lib/dpkg/alternatives/bogofilter ']'                          
 
+ read mode                                                                     
 
+ read mainlink                                                                 
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' bf_tar = '' ']'                                                           
 
+ '[' -e /var/lib/dpkg/alternatives/bf_tar ']'                                  
 
+ read slavelink                                                                
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' bf_copy = '' ']'                                                          
 
+ '[' -e /var/lib/dpkg/alternatives/bf_copy ']'                                 
 
+ read slavelink                                                                
 
+ true                                                                          
 
+ read slave                                                                    
 
+ '[' bogotune = '' ']'                                                         
 
+ '[' -e /var/lib/dpkg/alternatives/bogotune ']'                                
 
+ read slavelink                                                                
 
+ true                                                                          
 
+ read slave
+ '[' bf_compact = '' ']'
+ '[' -e /var/lib/dpkg/alternatives/bf_compact ']'
+ read slavelink
+ true
+ read slave
+ '[' bogoutil = '' ']'
+ '[' -e /var/lib/dpkg/alternatives/bogoutil ']'
+ read slavelink
+ true
+ read slave
+ '[' bogolexer = '' ']'
+ '[' -e /var/lib/dpkg/alternatives/bogolexer ']'
+ read slavelink
+ true
+ read slave
+ '[' bogoupgrade = '' ']'
+ '[' -e /var/lib/dpkg/alternatives/bogoupgrade ']'
+ read slavelink
+ true
+ read slave
+ '[' '' = '' ']'
+ break
+ for alt in '$ALTDIR/*'
+ '[' '!' -f /var/lib/dpkg/alternatives/builtins.7.gz ']'
+ read mode
+ read mainlink
athlon:/home/janc#

Attachment: builtins.7.gz
Description: GNU Zip compressed data

Attachment: write
Description: GNU Zip compressed data

Reply via email to