LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-09-2008, 09:06 PM   #1
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Rep: Reputation: 15
yum error


hi, why i get this error? how to solve it. i"m using centos 5.


[root@firdaus tester]# yum install vlc
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* adobe-linux-i386: linuxdownload.adobe.com
* base: mirror.linux.duke.edu
* updates: centosw.centos.org
* addons: mirror.linux.duke.edu
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...86&repo=extras error was
[Errno 12] Timeout: <urlopen error timed out>
removing mirrorlist with no valid mirrors: //var/cache/yum/extras/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: extras
 
Old 07-09-2008, 09:22 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That should work, so try it again. If not thought, edit /etc/yum.repos.d/CentOS-Base.repo and uncomment the baseurl line and comment out the mirrorlist line
 
Old 07-09-2008, 09:24 PM   #3
hitman_vivek
LQ Newbie
 
Registered: Jun 2008
Distribution: SUSE 10.3 ,11 , Redhat enterprise server,
Posts: 5

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by tester^_^ View Post
hi, why i get this error? how to solve it. i"m using centos 5.


[root@firdaus tester]# yum install vlc
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* adobe-linux-i386: linuxdownload.adobe.com
* base: mirror.linux.duke.edu
* updates: centosw.centos.org
* addons: mirror.linux.duke.edu
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...86&repo=extras error was
[Errno 12] Timeout: <urlopen error timed out>
removing mirrorlist with no valid mirrors: //var/cache/yum/extras/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: extras
goto /etc/yum.repos.d/*.repo , * indicates the file name. open the repo file in a vi editor and try changing baseurl to http://download.videolan.org//pub/vi...vlc/SuSE/11.0/(i'm using SUSE 11)

Last edited by hitman_vivek; 07-09-2008 at 09:25 PM.
 
Old 07-09-2008, 10:05 PM   #4
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Original Poster
Rep: Reputation: 15
i'm a newbie. can you show me how to do it
 
Old 07-09-2008, 10:16 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
DO NOT do what hitman_vivek suggested. RPMs are generally made for one specific distro and version. Using a repo meant for another distro can totally bork your system.

What you may be seeing is a temporary issue as billymayday said in post #2.
 
Old 07-09-2008, 10:40 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by hitman_vivek View Post
goto /etc/yum.repos.d/*.repo , * indicates the file name. open the repo file in a vi editor and try changing baseurl to http://download.videolan.org//pub/vi...vlc/SuSE/11.0/(i'm using SUSE 11)
Hitman, this suggestion could do a lot of damage to a system. Please don't give advice if you don't know what you're talking about
 
Old 07-09-2008, 11:18 PM   #7
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Original Poster
Rep: Reputation: 15
can you explain more about this

Quote:
edit /etc/yum.repos.d/CentOS-Base.repo and uncomment the baseurl line and comment out the mirrorlist line
 
Old 07-09-2008, 11:39 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Cut and paste the file in question back here. We will attempt to take you through it.
 
Old 07-10-2008, 01:37 AM   #9
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Original Poster
Rep: Reputation: 15
this is my base repo





# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
 
Old 07-10-2008, 01:46 AM   #10
tester^_^
Member
 
Registered: Apr 2006
Location: somewhere in malaysia
Distribution: redhat
Posts: 78

Original Poster
Rep: Reputation: 15
how do i change repo because the packages that i want to install not available in default repo
 
Old 07-10-2008, 01:48 AM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Code:
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
to

Code:
[#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

Last edited by billymayday; 07-10-2008 at 01:50 AM.
 
Old 07-10-2008, 01:49 AM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Ok, Now you see where all the baseurl lines start with a "#"? That means that they are commented out (ignored). Remove the "#" from in front of the baseurl lines and put one (#) in front of the mirrorlist lines. Basically take this:

Quote:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
and change it to this:

Quote:
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

edit: Got to learn to type faster.
 
Old 07-10-2008, 01:51 AM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by tester^_^ View Post
how do i change repo because the packages that i want to install not available in default repo
WHat packages are you trying to install?
 
Old 07-10-2008, 01:52 AM   #14
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by lazlow View Post
Ok, Now you see where all the baseurl lines start with a "#"? That means that they are commented out (ignored). Remove the "#" from in front of the baseurl lines and put one (#) in front of the mirrorlist lines. Basically take this:



and change it to this:




edit: Got to learn to type faster.
And to read - the problem was in extras. I only say this because I posted the wrong entry first and had to go back and edit it, so stirring myself as much as you.

Cheers
 
Old 07-10-2008, 01:57 AM   #15
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Billy

Wasn't there some nonsense about version 5 vs version 5.0? I seem to remember something like that got changed.

Yep, I usually just change them all.
 
  


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 config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM
yum error gabeyg Fedora 2 12-08-2007 11:08 AM
Yum Error natewlew Linux - Software 2 08-11-2007 10:43 PM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 02:03 AM
Yum Error Servius Linux - Newbie 2 04-28-2005 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:04 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