Post-installation script error reinstalling mysql

Bug #262244 reported by João Pinto
4
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.0 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: mysql-server-5.0

How to reproduce the problem:
Remove mysql-server with:
sudo apt-get remove --purge mysql-server-5
sudo rm -rf /etc/mysql
sudo apt-get install mysql-server-5.0
After this operation, 86.1MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package mysql-server-5.0.
(Reading database ... 165059 files and directories currently installed.)
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.0.51a-3ubuntu5.1_i386.deb) ...
Setting up mysql-server-5.0 (5.0.51a-3ubuntu5.1) ...
 * Stopping MySQL database server mysqld [ OK ]
/var/lib/dpkg/info/mysql-server-5.0.postinst: line 143: /etc/mysql/conf.d/old_passwords.cnf: No such file or directory
dpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Chuck Short (zulcss) wrote :

What happens when you uninstall mysql-common and mysql-server?

Regards
chuck

Changed in mysql-dfsg-5.0:
status: New → Incomplete
Revision history for this message
João Pinto (joaopinto) wrote :

There is no problem during the removal of those packages. However if I don't remove mysql-common when installing mysql-server. I get the previously posted error.

Changed in mysql-dfsg-5.0:
status: Incomplete → New
Revision history for this message
Chuck Short (zulcss) wrote :

Thats because the configuration files are located in mysql-common.

Changed in mysql-dfsg-5.0:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.