LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-18-2004, 04:35 AM   #1
blaroe
Member
 
Registered: Jun 2003
Location: Surrey, England
Distribution: Ubuntu Edgy
Posts: 67

Rep: Reputation: 15
Advice for recovering from a Synaptic crash


Hi all,

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?

bl
 
Old 01-18-2004, 08:05 AM   #2
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Did you try the command:

rpm -qa | grep mysql

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.

HTH and sheds some light on the rpm system
 
Old 01-18-2004, 12:37 PM   #3
blaroe
Member
 
Registered: Jun 2003
Location: Surrey, England
Distribution: Ubuntu Edgy
Posts: 67

Original Poster
Rep: Reputation: 15
Thanks JayCnrs -

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.

Cheers,
bl
 
Old 01-18-2004, 02:15 PM   #4
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
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.

HTH

Last edited by JayCnrs; 01-18-2004 at 02:17 PM.
 
Old 01-19-2004, 06:21 AM   #5
blaroe
Member
 
Registered: Jun 2003
Location: Surrey, England
Distribution: Ubuntu Edgy
Posts: 67

Original Poster
Rep: Reputation: 15
Thanks -

With one small change the fix worked -

rpm -Uhv --force mysql-server-3.23.58-4.i386.rpm

did the trick - I really appreciate the help

Cheers,
bl
 
Old 01-19-2004, 01:35 PM   #6
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Glad you got it working
 
Old 02-09-2004, 07:20 AM   #7
benjaminrtz
Member
 
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
Somewhat simiilar prob

I am getting somewhat similar prob with Vmware, now it works..
Thanks the thread thus helps..


root@vmwareqa6 root]# man rpm
[root@vmwareqa6 root]# rpm -e --noscript VMwareWorkstation-4.0.5-6030
error: %preun(VMwareWorkstation-4.0.5-6030) scriptlet failed, exit status 127
[root@vmwareqa6 root]# kedit err
[root@vmwareqa6 root]# man rpm
[root@vmwareqa6 root]# rpm --rebuilddb
error: db4 error(16) from dbenv->remove: Device or resource busy
[root@vmwareqa6 root]# rpm -e VMwareWorkstation-4.0.5-6030
error: %preun(VMwareWorkstation-4.0.5-6030) scriptlet failed, exit status 127
[root@vmwareqa6 root]# cd
[root@vmwareqa6 benjamin]# ls
linux VMware-gsx-2.5.1-4968.i386.rpm win98
[root@vmwareqa6 benjamin]# rpm -Uvh --force VMware-gsx-2.5.1-4968.i386.rpm
Preparing... ########################################### [100%]
1:VMware-gsx ########################################### [100%]
[root@vmwareqa6 benjamin]# rpm -e VMwareWorkstation-4.0.5-6030
[root@vmwareqa6 benjamin]# rpm -e VMwareWorkstation-4.0.5-6030
error: package VMwareWorkstation-4.0.5-6030 is not installed
[root@vmwareqa6 benjamin]#
 
Old 03-30-2007, 11:22 AM   #8
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
I am having much the same problem, but none of the solutions in this thread are working for me.

I (believe) that I need to uninstall spamass-milter as it appears to be borked. I then need to reinstall it so it (hopefully) works.

The problem is that I cannot start or stop the service.

Code:
mail:/etc/init.d/init.d # service spamass-milter start
service: no such service spamass-milter
Code:
mail:/etc/init.d/init.d # rpm -qa spamass-milter
spamass-milter-0.3.1-1.rh9.rf
Code:
mail:/etc/init.d/init.d # rpm -e spamass-milter-0.3.1-1.rh9.rf
spamass-milter: unknown service
error: %preun(spamass-milter-0.3.1-1.rh9.rf.i386) scriptlet failed, exit status 1
Code:
mail:/etc/init.d/init.d # rpm -Uhv --force /root/spamass-milter-0.3.1-1.rh9.rf.i386.rpm 
warning: /root/spamass-milter-0.3.1-1.rh9.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:spamass-milter         ########################################### [100%]
spamass-milter: unknown service
error: %post(spamass-milter-0.3.1-1.rh9.rf.i386) scriptlet failed, exit status 1
I'm kind of out of ideas now. I probably caused this problem because this is actually a SUSE 10.1 box and not a RH9 box.

Any ideas how to force this thing to uninstall? I'm a Debian kid and kind of lost with this whole RPM thing.

Thanks!
 
Old 11-30-2007, 03:41 AM   #9
weldan
LQ Newbie
 
Registered: Nov 2007
Posts: 1
Blog Entries: 1

Rep: Reputation: 0
rpm -e packagename --noscripts
 
  


Reply

Tags
rpm, spamassassin, suse, vmware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Crash, Crash, Crash, Crash and You Guessed it Crash! little_penguin SUSE / openSUSE 8 07-04-2005 09:34 AM
Recovering RAID-5 array after OS crash IMNOboist Linux - Hardware 0 12-14-2004 12:04 AM
xmms crash xine crash mplayer crash paledread Linux - Software 9 03-09-2004 07:09 AM
recovering from Window crash in dual boot vinod_0005 Linux - Newbie 3 10-08-2003 02:38 AM
Recovering Raid5 After Crash rspurlock Linux - Hardware 1 08-19-2003 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration