Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-21-2009, 01:20 AM   #1
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Rep: Reputation: 15
Cool yum problem : bug?

Hello Everybody...

I have just installed trixbox/CentOS. Then need to make some configs, installs, etc.

The problem is, something is wrong with yum/mirrorlist. Tried:

# yum grouplist
# yum update

for both cases, here is the error message that comes out:

... loading fastest mirror login
... determining fastest mirrors
... * trixbox:
... could not retrieve mirror list
... release=5&arch=i386&repo=os error was
... [Errno 4] IOError:
... urlopen error (-3, 'temporary failure in name resolution')
... cannot find a valid baseurl for repo: base

Any hints or suggestion will be mostly appreciated.
Old 04-21-2009, 05:47 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not sure why you think this is a bug

First, can you resolve the url given? Try


If that works, try editing you repo file (look in /etc/repos.d, comment out the mirrorlist line(s) and uncomment the base url line(s). See if that works.

If dig didn't work you have a name server issue.

Are you trying to go through a proxy by any chance (if so, configure it in /etc/yum.conf)
Old 04-22-2009, 09:34 PM   #3
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Original Poster
Rep: Reputation: 15
Cool solved!

Thanks for the inputs. I worked around and clean up things, then now yum is fine again.
Here is what I have done:

# yum clean all
# yum clean metadata
# yum clean dbcache
then fix rpm db
# rpm -vv --initdb
# rm -f /var/lib/rpm/__db*
# rpmdb -vv --rebuilddb

# yum --noplugin update

then deleting the database and rebuilding it.
# rm -f /var/lib/rpm/__db*
# rpmdb -vv --rebuilddb

# yum install yum-utils
# package-cleanup --problems
# package-cleanup --orphans

That's it! Done.


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
Problem Installing Yum: "No module named yum" braclayrab Linux - Newbie 9 08-04-2009 06:57 PM
yum header/pidof yum problem yohmie Fedora 3 03-24-2009 07:54 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
LXer: 2008 CES: Bug Labs Introduces BUG, BUGbase. So Cool! LXer Syndicated Linux News 0 01-09-2008 01:21 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 01:08 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration