LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rpm install freeze (https://www.linuxquestions.org/questions/linux-software-2/rpm-install-freeze-73965/)

digsby0007 07-18-2003 07:55 PM

rpm install freeze
 
as root, when I try to install any rpm, when i type rpm -i file.rpm it just sits there doing nothing. I have been able to install rpms, but I cannot now. The rpm i am trying to install is apt-get. I am running redhat 8, and I had installed the rpm for apt-get earlier today, as well as the rpm for the gui version of apt-get synaptic. After updating allmost all 1018 packages that it said could be updated, I have found that synaptic, and apt-get will not work. If i try to run synaptic it opens the gui, and freezes as it trys to load the list of packages. apt-get also freezes when i type any command in the prompt. so I did a search for everything with apt-get, and synaptic, and deleted them. Now that I am trying to re-install the rpms it just freezes. the same thing happens when i type rpm -U filename.rpm. So then I tried to run the rpm from nautilus. It prompts me for the root password, I enter the root password, then no rpm program comes up. just does nothing. I am totally stumped.


Any thoughts?
digsby

cnjohnson 07-18-2003 08:29 PM

As root try going to /var/lib/rpm/ and delete the three files that begin with a double underscore: __db.001, __db.002 __db.003

Now, as root, at the command line do:

#rpm --rebuilddb

Depending on how many rpm's you have on your machine (and your machine's speed) this can take anywhere from a few minutes to an hour.

This will often correct a corrupted rpm database.

apt for rpm is good, but for heaven's sake, there's no reason to do a wholesale upgrade of every package. Just move to 9 for that!

Cheers--
Charles

digsby0007 07-18-2003 10:34 PM

well i have removed the database files, and rebuilt the database, and installing rpms do not freeze now, but I have deleted apt-get, and when i try to rpm -i aptget.rpm it says its allready installed, but if i type apt-get, it says command not found. How do i totally remove an rpm? and how can i re-install this rpm?

thanks for the help
digsby

cnjohnson 07-18-2003 10:38 PM

To get rpm to "reinstall" an already present package, read about the --force option. Do a man rpm. Once you have apt "reinstalled" this way, just be judicious in its use. It is good, but as you have discovered, it can bite you.

Cheers--
Charles

rebelcan 09-10-2003 08:47 PM

i tried that because i was having the same problem, but i got the error:
error: db4 error(16) from dbenv->remove: Device or resource busy

i'll try it again, just in case that was some freak accident.... but if not, what can i do to prevent that from happening again?

DrOzz 09-10-2003 09:36 PM

thats a bug ...read that thread...


All times are GMT -5. The time now is 03:47 AM.