LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-01-2005, 09:15 AM   #1
conellylg
LQ Newbie
 
Registered: Apr 2005
Location: Mexico
Distribution: Mandrake 9.2 / 10 - Fedora Core 4
Posts: 3

Rep: Reputation: 0
Having [Config Error] while using YUM


Hi all,

I am trying to use yum to update my brand new FC4. However, when I tried to perform a clean or update, I get the following message:

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

== All the steps below were performed using [root] as user ==

I am behind a proxy, so I did the following before attempt to use yum:

$ export HTTP_PROXY=<valid_proxy_here>
$ export FTP_PROXY=<valid_proxy_here>

Then, I tried to do a yum update

$ yum -t --except=open-office* update

I got the error above. Then I tried to perform a cleanup and start over with:

$ yum clean all

To no avail at all.

I have used the following configurations for my [/etc/yum.conf] file

**************************************
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
retries=1
timeout=10
obsoletes=1
# gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
**************************************

AND

**************************************
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
# gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
**************************************

All directories / files are owned by [root], so I can't see the error.

The version of YUM I was using is :

[root@localhost etc]# yum --version
2.3.2
[package yum-fedorafaq-4-2005.07.25a]

Then, I removed it an stick to the standard YUM from FC4.

I also have tried the solution offered in fedorafaq.org but to no avail.

At this point I am kind of confused, since I have used yum before and I haven't seen this error. I have googled a bit and the suggestions around have not been very helpful.

Appreciate any pointers / help.


Regards,

Conellylg
 
Old 11-01-2005, 05:34 PM   #2
eudmian
LQ Newbie
 
Registered: Nov 2004
Posts: 6

Rep: Reputation: 0
conellylg,

Given the error message it appears that yum cannot find your yum.conf file. To test I renamed my configuration file (on a known working FC4 system) and received the exact same error message.

Try running yum and explicitly defining the location of the yum.conf file with the -c switch like this:
Code:
$yum -c /etc/yum.conf -t --except=open-office* update
If it helps any I am using a yum.conf file that is exactly the same as your second one (the one with distroverpkg=redhat-release).

Cheers!
EUDMIAN
 
Old 11-01-2005, 05:46 PM   #3
conellylg
LQ Newbie
 
Registered: Apr 2005
Location: Mexico
Distribution: Mandrake 9.2 / 10 - Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
edumian,

Thanks for your comments. However, my yum doesn't want to work with nothing at all. Even using the [-c] switch, it still throws the same error.

Code:
[root@localhost ~]# yum -c /etc/yum.con.bak -t --exclude=open-office* update
Config Error: Error accessing file for config file:///etc/yum.con.bak
I am quite a bit surprised. I am not sure if I will have to download the RPM for yum and update it again or what to do.

Anyway, thanks for the pointer.


conellylg
 
Old 11-01-2005, 06:32 PM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Add the following line to the end of /etc/yum.conf

proxy=http://<proxy>:<port>

That should relieve you of the need to export the environment variables relating to your proxy.

Next, what happens when you execute something simple, say,

yum list firefox
 
Old 11-01-2005, 06:57 PM   #5
eudmian
LQ Newbie
 
Registered: Nov 2004
Posts: 6

Rep: Reputation: 0


A shot in the dark, but possibly an upgrade to the package might be in order (I must have spent too much time on Windoze...when all else fails, reinstall).

If your system has Internet access try this:

Code:
$ //Get updated RPM from redhat
$ wget download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/yum-2.4.0-0.fc.noarch.rpm

$ //Install update
$rpm -U ./yum-2.4.0-0.fc.noarch.rpm
I am assuming you have verified that the config file is owned by root and that you are running yum as root...

When all else fails beat it with a bigger stick


Cheers,
EUDMIAN
 
Old 11-02-2005, 12:17 PM   #6
conellylg
LQ Newbie
 
Registered: Apr 2005
Location: Mexico
Distribution: Mandrake 9.2 / 10 - Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks all. Unfortunately, after following your suggestions, I am still having the same issue, even after reinstalling the yum utility [yum-2.4.0-0.fc4.noarch.rpm] from [http://download.fedora.redhat.com/pu...pdates/4/i386/]. No avail at all.

However, when I tried to install the RPM, I got the following error:

Code:
[root@localhost ~]# rpm -U --force /home/conellylg/installers/linux/yum-2.4.0-0.fc4.noarch.rpm
warning: /home/conellylg/installers/linux/yum-2.4.0-0.fc4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Now, when I try to see execute yum (even a yum --version or just yum) I get the error:

Code:
[root@localhost ~]# yum
Config Error: Error accessing file for config file:///etc/yum.conf
Any pointers will be very welcome

Luis
 
Old 09-13-2010, 07:04 PM   #7
prasanthraavi
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
getting error while running Yum

hi all,

i am getting below error while updating yum can u solve this?

[root@Prasanth ~]# yum update
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
[root@Prasanth ~]#
 
Old 09-17-2010, 09:37 AM   #8
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Your rpmdb is corrupted. You will need to rebuild it.

Try "rpmdb --rebuilddb". I have never done it, so you should better google a little before you run the command.
 
  


Reply



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 Error Servius Linux - Newbie 2 04-28-2005 08:25 PM
Yum Config for RedHat 9 tgreiner Red Hat 2 03-16-2005 02:13 PM
error when using yum Paintball_Star7 Fedora 2 03-08-2005 01:14 PM
./config error: no sdl-config? Beomoss Linux - Newbie 4 11-24-2004 01:26 AM
yum I/O Error bornhj Fedora 3 10-07-2004 05:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:44 AM.

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
Open Source Consulting | Domain Registration