FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Code:
[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.
Code:
[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:
Code:
[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?
Then when you get the information you should see something like:
mysql-server-3.23.58-4 if it is installed plus any other packages with mysql included in the name.
Then to remove it you will have to use:
rpm -e mysql-server-3.23.58-4
You have to include the entire file name as was displayed when you queryed the rpm database or it will not uninstall the package.
For eg:
rpm -qa | grep mysql
display shows -->
mysql-server-3.23.58-4
mysql-3.23.58-4
Then enter ---> rpm -e mysql-3.23.58-4
display shows -->
mysql-server depends mysql-3.23.58-4
Then enter --> rpm -e mysql-server-3.23.58-4
display shows --> just prompt
Then enter --> rpm -e mysql-3.23.58-4
Notice in the example that I used the full name of the packages that were displayed when I queryed the rpm database and that the first package I chose depended on another package so then I had to remove the other rpm first.
I gave it a try in the format you said, but I still am having a couple issues: here's what I got when executing the commands:
Code:
[root@krelg blaroe]# rpm -qa | grep mysql
mysql-server-3.23.58-4
mysql-3.23.58-4
[root@krelg blaroe]# rpm -e mysql-server-3.23.58-4
error reading information on service mysqld: No such file or directory
error: %preun(mysql-server-3.23.58-4) scriptlet failed, exit status 1
[root@krelg blaroe]# rpm -e mysql-3.23.58-4
error: Failed dependencies:
mysql = 3.23.58 is needed by (installed) mysql-server-3.23.58-4
[root@krelg blaroe]# rpm -e mysql-server-3.23.58-4
error reading information on service mysqld: No such file or directory
error: %preun(mysql-server-3.23.58-4) scriptlet failed, exit status 1
Still a little stumped, but getting a better idea of rpm. If you have any further insight - let me know.
Okay, I would download the rpm for mysql-server from here and then once you have downloaded the file cd to the directory where you downloaded the file to and as root or su issue the command:
rpm -Uhv mysql-server-3.23.58-4.i386.rpm
Then once it is installed once again try removing it, looks like your mysql daemon is missing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.