PDA

View Full Version : I broke the yum!



BigO
9th July 2008, 06:17 PM
OK I installed fedora 9 yesterday, this is my first experience with linux, and I was reading this old linux for dummies, 07 I think it was and trying some of the things it said to do, little of which I understood, but now Yum gives me an error about the config. I really don't have a firm grasp on linux yet, obviously, could some one please help.

I couldn't copy/paste the text in the error window so I hope this screen shot will suffice.

leigh123linux
9th July 2008, 06:24 PM
OK I installed fedora 9 yesterday, this is my first experience with linux, and I was reading this old linux for dummies, 07 I think it was and trying some of the things it said to do, little of which I understood, but now Yum gives me an error about the config. I really don't have a firm grasp on linux yet, obviously, could some one please help.

I couldn't copy/paste the text in the error window so I hope this screen shot will suffice.


Post some proper output ! , open a terminal and type



yum update


and post the error !

BigO
9th July 2008, 06:28 PM
Here is the error, and thank you for your help. I really appreciate it.



CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf

leigh123linux
9th July 2008, 06:33 PM
Here is the error, and thank you for your help. I really appreciate it.



CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf


Ok post



cat /etc/yum.conf

BigO
9th July 2008, 06:37 PM
So you want me to type

cat /etc/yum.conf
into the terminal?
I get

cat: /etc/yum.conf: No such file or directory

leigh123linux
9th July 2008, 06:45 PM
Try this ( it will rewrite yum.conf )



su
wget http://leigh123.homelinux.com/yum.conf -O /etc/yum.conf


Then post


su
yum update

BigO
9th July 2008, 06:49 PM
All I get is

bash: wget: command not found

BigO
9th July 2008, 07:03 PM
I know I can download it from the gnu.org ftp site, but can I force install it or do all installs have to go through yum?
Also there are a number of different versions do I just get the latest one or is there a place to look up which one I need? Sorry to be a pain.

SlowJet
9th July 2008, 07:08 PM
Does adding a dash to
su -
make a diff?

SJ

BigO
9th July 2008, 07:10 PM
no but I'm sure I'm on as the root now anyway,
root@localhost

Firewing1
9th July 2008, 07:17 PM
Run this to regenerate your yum.conf

echo '[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d' > /etc/yum.conf
Firewing1

BigO
9th July 2008, 07:31 PM
OK yum is now downloading file lists which is further than it has gone before. Thank you!