[CentOS] yum errors

Wes James comptekki at me.com
Tue Dec 8 03:48:06 UTC 2015


> On Dec 7, 2015, at 8:37 PM, Wes James <comptekki at me.com> wrote:
> 
>> 
>> On Dec 7, 2015, at 8:23 PM, Wes James <comptekki at me.com <mailto:comptekki at me.com>> wrote:
>> 
>> 
>>> On Dec 7, 2015, at 8:03 PM, Wes James <comptekki at me.com> wrote:
>>> 
>> 
>> <snip>
>> 
>>> I finally just did yum update on this box (actually 6.3) and now it is 6.7.  During the update it created a CentOS-Base.repo.rpmnew file.  I renamed my current one and this one to just .repo and  now I again get:
>>> 
>>> ----
>>> 
>>> yum update
>>> Loaded plugins: fastestmirror, presto
>>> Setting up Update Process
>>> Loading mirror speeds from cached hostfile
>>> Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock><http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>> error was
>>> 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:><http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:>> (28, 'connect() timed out!')
>>> Error: Cannot find a valid baseurl for repo: base
>>> 
>>> ——
>>> 
>>> I thought updating to 6.7 might fix something, but it didn’t help.  Any ideas why it is doing this?
>>> 
>>> If I go to:
>>> 
>>> http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock>>>
>>> 
>>> in a browser, it shows a list of repos.
>>> 
>> 
>> I just noticed on a stock install of 6.7 (from 6.4 doing a test), doing yum update shows this:
>> 
>> Loaded plugins: fastestmirror, refresh-packagekit, security
>> 
>> But on the box I just updated it shows:
>> 
>> Loaded plugins: fastestmirror, presto
>> 
>> So maybe the presto plugin is causing the problem.  Anyone else using presto plugin??
>> 
>> -wes
> 
> 
> That wasn’t it.  I disabled presto then both with (and got the following error):
> 
> yum update --disableplugin=presto,fast*
> Setting up Update Process
> Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock> error was
> 12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: <http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock:> (28, 'connect() timed out!')
> Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
> 
> 
>> 
> 
> Not sure what to try next.  Other than my previous fix of not using a mirror list, but a known local repo that works fine for updates.
> 
> -wes

Poking around I found:

/etc/yum/pluginconf.d and now I see where presto comes from.  I noticed in the fastmirror.conf there is a line

hostfile-timedhosts.txt

On my test box it has several lines of hosts with a number.

On the box I’m have yum update issues, it is blank.  ??

-wes




More information about the CentOS mailing list