While removing MySQL server from my system, Synaptic crashed and seems to have left my RPM database is a bad state. In Synpatic the mysql-server install is marked as "Broken" but I am unable to remove it.
Here's the printout from running apt-get and rpm:
[root@krelg blaroe]# apt-get remove mysql
Reading Package Lists... Done
Building Dependency Tree... Done
Package mysql is not installed, so not removed
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server: Depends: mysql (= 3.23.58) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
After folling the instuctions, which reinstalls the package mysql, I tried again to remove the mysql-server package.
[root@krelg blaroe]# rpm -e mysql-server
error reading information on service mysqld: No such file or directory
error: %preun(mysql-server-3.23.58-4) scriptlet failed, exit status 1
However mysql-server shows up in the listing of installed apps. I have rebuilt the database and it had no effect. I also tried to do a freshen of mysql-server but am getting this error message:
[root@krelg blaroe]# rpm -Fvh mysql-server
error: open of mysql-server failed: No such file or directory
What I would like to do is get to a state where I do not have mysql or mysql-server loaded and the rpm database is in a correct state. Any advice?