[Bug 316957] Re: package mysql-server-5.1 5.1.30-2ubuntu1 failed to install/upgrade: 子进程 post-installation script 返回了错误号 1

Adomas Bosanova adomas.bosanova at gmail.com
Sun Jan 25 22:30:37 GMT 2009


*** This bug is a duplicate of bug 316849 ***
    https://bugs.launchpad.net/bugs/316849

A little more info on the problem:

root at PIRATE:~# mysqld           
mysqld: Can't create/write to file '/tmp/ib6qNR4k' (Errcode: 13)
090126  0:27:34  InnoDB: Error: unable to create temporary file; errno: 13
090126  0:27:34 [ERROR] Can't start server : Bind on unix socket: No such file or directory                                                                     
090126  0:27:34 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?                                              
090126  0:27:34 [ERROR] Aborting                                                

090126  0:27:34 [Note] mysqld: Shutdown complete

root at PIRATE:~# aptitude install mysql-server
Reading package lists... Done               
Building dependency tree                    
Reading state information... Done           
Reading extended state information          
Initializing package states... Done         
The following NEW packages will be installed:
  libdbd-mysql-perl{a} libdbi-perl{a} libnet-daemon-perl{a} 
  libplrpc-perl{a} mysql-client-5.0{a} mysql-server mysql-server-5.0{a} 
The following packages will be REMOVED:                                 
  amarok-common{u} libloudmouth1-0{u} libmtp8{u} libmysqlclient16{u}    
0 packages upgraded, 7 newly installed, 4 to remove and 0 not upgraded. 
Need to get 32.4MB/33.4MB of archives. After unpacking 90.2MB will be used.
Do you want to continue? [Y/n/?] Y                                         
Writing extended state information... Done                                 
Get:1 http://ubuntu.mirror.cambrium.nl jaunty/main mysql-client-5.0 5.1.30really5.0.75-0ubuntu3 [8291kB]                                                        
Get:2 http://ubuntu.mirror.cambrium.nl jaunty/main mysql-server-5.0 5.1.30really5.0.75-0ubuntu3 [24.0MB]                                                        
Get:3 http://ubuntu.mirror.cambrium.nl jaunty/main mysql-server 5.1.30really5.0.75-0ubuntu3 [56.4kB]                                                            
Fetched 32.4MB in 45s (706kB/s)                                                 
Preconfiguring packages ...                                                     
(Reading database ... 205451 files and directories currently installed.)        
Removing amarok-common ...                                                      
Removing libloudmouth1-0 ...                                                    
Removing libmtp8 ...                                                            
Removing libmysqlclient16 ...                                                   
Processing triggers for libc6 ...                                               
ldconfig deferred processing now taking place                                   
Processing triggers for hal ...                                                 
Regenerating hal fdi cache ...                                                  
 * Restarting Hardware abstraction layer hald                            [ OK ] 
Selecting previously deselected package libnet-daemon-perl.                     
(Reading database ... 205027 files and directories currently installed.)        
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ...   
Selecting previously deselected package libplrpc-perl.                          
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-1_all.deb) ...           
Selecting previously deselected package libdbi-perl.                            
Unpacking libdbi-perl (from .../libdbi-perl_1.607-1_amd64.deb) ...              
Selecting previously deselected package libdbd-mysql-perl.                      
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.008-1_amd64.deb) ...  
Selecting previously deselected package mysql-client-5.0.                       
Unpacking mysql-client-5.0 (from .../mysql-client-5.0_5.1.30really5.0.75-0ubuntu3_amd64.deb) ...                                                                
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu3_amd64.deb) ...                                                                
Selecting previously deselected package mysql-server.                           
Unpacking mysql-server (from .../mysql-server_5.1.30really5.0.75-0ubuntu3_all.deb) ...                                                                          
Processing triggers for man-db ...                                              
Setting up libnet-daemon-perl (0.43-1) ...                                      
Setting up libplrpc-perl (0.2020-1) ...                                         
Setting up libdbi-perl (1.607-1) ...                                            
Setting up libdbd-mysql-perl (4.008-1) ...                                      
Setting up mysql-client-5.0 (5.1.30really5.0.75-0ubuntu3) ...                   
Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu3) ...                   
 * Stopping MySQL database server mysqld                                 [ OK ] 
Reloading AppArmor profiles : done.                                             
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Checking for corrupt, not cleanly closed and upgrade needing tables.         

Setting up mysql-server (5.1.30really5.0.75-0ubuntu3) ...
Reading package lists... Done                            
Building dependency tree                                 
Reading state information... Done                        
Reading extended state information                       
Initializing package states... Done                      
Writing extended state information... Done               

root at PIRATE:~# aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done                                      
Building dependency tree                                           
Reading state information... Done                                  
Reading extended state information                                 
Initializing package states... Done                                
No packages will be installed, upgraded, or removed.               
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.           
Reading package lists... Done                                          
Building dependency tree                                               
Reading state information... Done                                      
Reading extended state information                                     
Initializing package states... Done                                    

root at PIRATE:~# aptitude install amarok
Reading package lists... Done         
Building dependency tree              
Reading state information... Done     
Reading extended state information      
Initializing package states... Done     
The following packages are BROKEN:      
  mysql-server                          
The following NEW packages will be installed:
  amarok amarok-common{a} bsd-mailx{a} libloudmouth1-0{a} libmtp8{a} 
  libmysqlclient16{a} mailx{a} mysql-client-5.1{a} mysql-server-5.1{a} 
  postfix{a}                                                           
The following packages will be REMOVED:                                
  mysql-client-5.0{a} mysql-server-5.0{a}                              
0 packages upgraded, 10 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B/37.0MB of archives. After unpacking 3908kB will be freed.
The following packages have unmet dependencies:                         
  mysql-server: Depends: mysql-server-5.0 but it is not installable     
The following actions will resolve these dependencies:                  

Remove the following packages:
mysql-server                  

Score is 119

Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
  amarok amarok-common{a} bsd-mailx{a} libloudmouth1-0{a} libmtp8{a} 
  libmysqlclient16{a} mailx{a} mysql-client-5.1{a} mysql-server-5.1{a} 
  postfix{a}                                                           
The following packages will be REMOVED:                                
  mysql-client-5.0{a} mysql-server{a} mysql-server-5.0{a}              
0 packages upgraded, 10 newly installed, 3 to remove and 0 not upgraded.
Need to get 0B/37.0MB of archives. After unpacking 4006kB will be freed.
Do you want to continue? [Y/n/?] Y                                      
Writing extended state information... Done                              
Preconfiguring packages ...                                             
(Reading database ... 207592 files and directories currently installed.)
Removing mysql-server ...                                               
Removing mysql-server-5.0 ...                                           
 * Stopping MySQL database server mysqld                                 [ OK ] 
Removing mysql-client-5.0 ...                                                   
Processing triggers for man-db ...                                              
Selecting previously deselected package libmysqlclient16.                       
(Reading database ... 205235 files and directories currently installed.)        
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.30-2ubuntu3_amd64.deb) ...                                                                            
Selecting previously deselected package mysql-client-5.1.                       
Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.30-2ubuntu3_amd64.deb) ...                                                                            
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.30-2ubuntu3_amd64.deb) ...                                                                            
 * Stopping MySQL database server mysqld                                 [ OK ] 
dpkg: error processing /var/cache/apt/archives/mysql-server-5.1_5.1.30-2ubuntu3_amd64.deb (--unpack):                                                           
 trying to overwrite `/usr/sbin/mysqld', which is also in package mysql-server-core-5.0                                                                         
dpkg-deb: subprocess paste killed by signal (Broken pipe)                       
Selecting previously deselected package amarok-common.                          
Unpacking amarok-common (from .../amarok-common_2%3a2.0.1.1-0ubuntu4_all.deb) ...                                                                               
Selecting previously deselected package libloudmouth1-0.                        
Unpacking libloudmouth1-0 (from .../libloudmouth1-0_1.4.2-2_amd64.deb) ...      
Selecting previously deselected package libmtp8.                                
Unpacking libmtp8 (from .../libmtp8_0.3.0-1ubuntu3_amd64.deb) ...               
Selecting previously deselected package amarok.                                 
Unpacking amarok (from .../amarok_2%3a2.0.1.1-0ubuntu4_amd64.deb) ...           
Selecting previously deselected package postfix.                                
Unpacking postfix (from .../postfix_2.5.5-1.1_amd64.deb) ...                    
Selecting previously deselected package bsd-mailx.                              
Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20081101cvs-2ubuntu1_amd64.deb) ...                                                                             
Selecting previously deselected package mailx.                                  
Unpacking mailx (from .../mailx_1%3a20081101-2ubuntu1_all.deb) ...              
Processing triggers for man-db ...                                              
Processing triggers for menu ...                                                
Processing triggers for hal ...                                                 
Regenerating hal fdi cache ...                                                  
 * Restarting Hardware abstraction layer hald                            [ OK ] 
Processing triggers for ufw ...                                                 
Errors were encountered while processing:                                       
 /var/cache/apt/archives/mysql-server-5.1_5.1.30-2ubuntu3_amd64.deb             
E: Sub-process /usr/bin/dpkg returned an error code (1)                         
A package failed to install.  Trying to recover:                                
Setting up libloudmouth1-0 (1.4.2-2) ...                                        

Setting up libmtp8 (0.3.0-1ubuntu3) ...

Setting up postfix (2.5.5-1.1) ...

Postfix configuration was not changed.  If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
 * Stopping Postfix Mail Transport Agent postfix                         [ OK ]
 * Starting Postfix Mail Transport Agent postfix                         [ OK ]

Setting up libmysqlclient16 (5.1.30-2ubuntu3) ...

Setting up bsd-mailx (8.1.2-0.20081101cvs-2ubuntu1) ...

dpkg: dependency problems prevent configuration of amarok:
 amarok depends on mysql-server-5.1 (>= 5.1.30-2ubuntu3); however:
  Package mysql-server-5.1 is not installed.
dpkg: error processing amarok (--configure):
 dependency problems - leaving unconfigured
Setting up amarok-common (2:2.0.1.1-0ubuntu4) ...
Setting up mysql-client-5.1 (5.1.30-2ubuntu3) ...

Setting up mailx (1:20081101-2ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
Errors were encountered while processing:
 amarok
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

Current status: 1 broken [+1].
root at PIRATE:~#

-- 
package mysql-server-5.1 5.1.30-2ubuntu1 failed to install/upgrade: 子进程 post-installation script 返回了错误号 1
https://bugs.launchpad.net/bugs/316957
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu.



More information about the Ubuntu-server-bugs mailing list