LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-20-2005, 12:22 AM   #1
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Rep: Reputation: 15
yum not working


Hello,
I'm using FC4. When i try to install or update using 'yum' i get an error. For example,
[root@localhost html]# yum install xine
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 15, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 51, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 139, in getOptionsConfig
self.doConfigSetup(fn = conffile, root = root)
File "__init__.py", line 77, in doConfigSetup
File "config.py", line 258, in __init__
File "config.py", line 365, in _getsysver
TypeError: rpmdb open failed

Please help me
 
Old 08-20-2005, 07:21 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
You need to reconfigure your yum.conf - use the one supplied by Max Kanat-Alexander at www.fedorafaq.org.

Code:
cd /etc
# rm -f yum.conf
# wget http://www.fedorafaq.org/samples/yum.conf
# rpm -Uvh http://www.fedorafaq.org/yum
 
Old 08-22-2005, 04:01 AM   #3
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Original Poster
Rep: Reputation: 15
Hi,
I tried the commands which u mentioned.. The first two commands worked perfectly. But when i typed the 3rd one i got the following error..

[root@localhost ~]# rpm -Uvh http://www.fedorafaq.org/yum
Retrieving http://www.fedorafaq.org/yum
Segmentation fault
 
Old 08-22-2005, 04:09 AM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
try downloading http://www.fedorafaq.org/yum and then install it from the directory you saved it in.
 
Old 08-22-2005, 11:34 PM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
saipraveen: that likely means the file got corrupted in the transfer. You could try again or do as linmix correctly suggests: point your browser at the site and download the package first. The just rpm -Uvh yum from whatever directory you downloaded it to.
 
  


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
YUM not working namit Linux - Software 2 11-17-2005 06:50 AM
Getting and working with YUM redhat beginer Linux - Software 3 04-24-2005 12:20 PM
yum no longer working tr3y Fedora 1 01-30-2005 09:04 AM
Yum not working acidblue Fedora 3 10-24-2004 08:47 PM
Yum Not working ntesla Linux - Software 2 08-06-2004 09:51 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration