1820222 Members
3778 Online
109620 Solutions
New Discussion юеВ

rpm problem

 
SOLVED
Go to solution
peterchu
Super Advisor

rpm problem

I use RH 8 and have problem to use rpm function.

I have just install the mysql4 rpm and uninstall it and then install mysq3.xx then uninstall it , now when I use the rpm like "rpm -qa" or "rpm -ivh *.rpm" etc , then the process will be hang , but I found that it is no problem if I use general user to run "rpm -qa" , could suggest what is the problem ? is it the rpm table problem ? thx.
6 REPLIES 6
peterchu
Super Advisor

Re: rpm problem

I tried to remove the exist rpm , it denied .

#rpm -e MySQL-3.23.58-1
error reading information on service mysql: No such file or directory
error: %preun(MySQL-3.23.58-1) scriptlet failed, exit status 1

# rpm -ivh MySQL-3.23.58-1.i386.rpm
warning: MySQL-3.23.58-1.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
package MySQL-3.23.58-1 is already installed
# rpm -e MySQL-3.23.58-1.i386.rpm
error: package MySQL-3.23.58-1.i386.rpm is not installed

when install it , it report it is installed , but when uninstall it , it denied, what is wrong ? thx.
peterchu
Super Advisor

Re: rpm problem

and I found the rpm .

# rpm -qa |grep My
MySQL-3.23.58-1
Steven E. Protter
Exalted Contributor

Re: rpm problem

Make sure teh mysql database is shut down prior to trying to remove it.

If processes have locks on certain files the removeal will fail.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
peterchu
Super Advisor

Re: rpm problem

if the rpm has problem , is it ok to rebuild the rpm , "rpm rebuilddb" ? thx.
Stuart Browne
Honored Contributor
Solution

Re: rpm problem

This is a known issue with RPM on RH8.

To get past the issue, remove '/var/lib/rpm/__db*', and try your RPM command again.

I'm not aware of any updates that fix this issue conclusivly, but there are a few available from redhat.

This issue doesn't happen every time, just occasionally.
One long-haired git at your service...
peterchu
Super Advisor

Re: rpm problem

it works , thank you very much.