LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-20-2012, 12:58 PM   #1
SentientOS
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
I can't explain this--It always happens, and never a miscommunication


I've been trying to update with yum, but it always seems to come out yuck. Yet, wget always finds the URL. Why?

[root@localhost ~]# yum check-update
Not loading "blacklist" plugin, as it is disabled
Not loading "whiteout" plugin, as it is disabled
Loaded plugins: fastestmirror, refresh-packagekit, security
Config time: 0.029
Yum Version: 3.2.29
Setting up Package Sacks
Repository base is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...64&repo=extras error was
14: PYCURL ERROR 47 - "Maximum (5) redirects followed"
Error: Cannot find a valid baseurl for repo: extras

But check this out, wget finds the URL without a problem. Can I do some reconfiguration of the yum.conf file or something to fix this?

[root@localhost ~]# wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras"
--2012-01-20 11:53:58-- http://mirrorlist.centos.org/?releas...64&repo=extras
Resolving mirrorlist.centos.org... 204.15.73.243, 64.235.47.134, 69.30.193.218, ...
Connecting to mirrorlist.centos.org|204.15.73.243|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.cfauth.com/?cfru=aHR0cDov...JlcG89ZXh0cmFz [following]
--2012-01-20 11:53:58-- http://www.cfauth.com/?cfru=aHR0cDov...JlcG89ZXh0cmFz
Resolving www.cfauth.com... 216.52.23.29
Connecting to www.cfauth.com|216.52.23.29|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirrorlist.centos.org/?releas...AAAAAAAFnMBgA= [following]
--2012-01-20 11:54:03-- http://mirrorlist.centos.org/?releas...AAAAAAAFnMBgA=
Connecting to mirrorlist.centos.org|204.15.73.243|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirrorlist.centos.org/?releas...64&repo=extras [following]
--2012-01-20 11:54:03-- http://mirrorlist.centos.org/?releas...64&repo=extras
Connecting to mirrorlist.centos.org|204.15.73.243|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: “index.html?release=6&arch=x86_64&repo=extras”

[ <=> ] 1,108 --.-K/s in 0s

2012-01-20 11:54:03 (107 MB/s) - “index.html?release=6&arch=x86_64&repo=extras” saved [1108]

[root@localhost ~]#
 
Old 01-20-2012, 01:18 PM   #2
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
There are a couple of things that can be done. If you look at the /etc/yum.conf file. There is a line that should look something like this:

Code:
[BASE]
name=myftp
baseurl=ftp://111.111.111.111/pub/file-path-to-repo
enable=1
gpgcheck=1
If there is more than one baseurl line listed within this block delete it. IF there is more than one block that is fine.

You can also disable plugins in this file or disable single plugins by setting enable flag = 0. Plugin files are located at:
Code:
/etc/yum/pluginconf.d/plugin-name
You can also run command with:
Code:
#yum --disableplugin=pluginname
 
Old 01-20-2012, 01:20 PM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
#yum clean all

#yum update

#yum install yum*

If you have a problem with repos, then see http://www.centos.org/docs/5/html/yu...-packages.html
 
Old 01-20-2012, 01:36 PM   #4
SentientOS
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
It seems like all of the URLs to the repositories are dead. I've been going through each URL in the config files and they all seem to point to invalid URLs. Is it just me, or was this distro configured by an escaped mental patient?
 
Old 01-20-2012, 06:14 PM   #5
SentientOS
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Persistent Yum Problems

I still believe that one day, Yum will run on my server.

However, right now I'm getting the error message

Could not retrieve mirrorlist http://mirrorlist.centos.org/?releas...x86_64&repo=os error was
14: PYCURL ERROR 47 = "Maximum (5) redirects followed"
Error: Cannon find a valid baseurl for repo: base

I've tried:
>Deleting all packages from the CentOS-Base.repo file except [base]
>editing the mirrorlist to point to several servers
>shutting off fastestmirror and editing the baseurl to point to several servers
>pinging the servers (hits servers)
>visiting the servers in my web browser (can see servers)
>wget the servers (can download the webpage with the data)
>restarting my network interface
>manually asigning my IP address

Nothing seems to fix this. Any ideas?
 
Old 01-21-2012, 12:04 AM   #6
Justin236
LQ Newbie
 
Registered: Jul 2008
Distribution: OpenBSD
Posts: 6

Rep: Reputation: 0
I gave up Fedora for OpenBSD over yum issues. It took over a minute and a half to update each package on my little netbook, and there were over a hundred packages to update every couple of days. OpenBSD's pkg_add works like a charm in comparison, even with the snapshots for the most part if you are too impatient to stick with the stable release that comes out every six months like clockwork.
 
  


Reply


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
can anyone explain to me..? MahARaJaAngKaSa Linux - Hardware 3 03-17-2009 06:41 AM
Can someone explain this ... TheExtremist Slackware 6 10-26-2007 09:39 AM
Can some one please explain this to me webwolf70 SUSE / openSUSE 1 10-15-2005 03:22 AM
Can someone explain me what this is? hemmelig Linux - Software 3 10-14-2004 07:16 PM
Can someone explain this ? beyond_2000 Linux - Hardware 6 10-08-2002 07:02 PM


All times are GMT -5. The time now is 06:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration