LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2003, 08:55 PM   #1
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Rep: Reputation: 15
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
 
Old 07-18-2003, 09:29 PM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
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
 
Old 07-18-2003, 11:34 PM   #3
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
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
 
Old 07-18-2003, 11:38 PM   #4
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
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
 
Old 09-10-2003, 09:47 PM   #5
rebelcan
Member
 
Registered: Jun 2003
Location: British Columbia, Canada
Distribution: Debian unstable
Posts: 83

Rep: Reputation: 15
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?
 
Old 09-10-2003, 10:36 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
thats a bug ...read that thread...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
freeze during install Lambert693 Ubuntu 2 06-26-2005 10:00 PM
S.U.S.E 9 Install Freeze gdogg2k Linux - Newbie 2 01-15-2004 06:23 AM
rpm -qa freeze!!?? init-5 Linux - Software 1 09-21-2003 11:27 PM
RPM freeze and Redhat 9.0 mr-banzai Linux - Distributions 2 04-18-2003 02:32 PM
rpm freeze..? newtons2k Linux - Newbie 4 11-22-2002 07:05 AM


All times are GMT -5. The time now is 01:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration