LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum not working (https://www.linuxquestions.org/questions/linux-newbie-8/yum-not-working-355077/)

saipraveen 08-20-2005 12:22 AM

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

Simon Bridge 08-20-2005 07:21 AM

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


saipraveen 08-22-2005 04:01 AM

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

linmix 08-22-2005 04:09 AM

try downloading http://www.fedorafaq.org/yum and then install it from the directory you saved it in.

Simon Bridge 08-22-2005 11:34 PM

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.


All times are GMT -5. The time now is 08:52 AM.