Re: yum errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 12/08/2015 06:50 PM, Wes James wrote:
On Dec 7, 2015, at 10:02 PM, Jake Shipton <jakems@xxxxxxxxxxxxxxxxx> wrote:

Wes James wrote:
On Dec 7, 2015, at 8:37 PM, Wes James <comptekki@xxxxxx> wrote:

On Dec 7, 2015, at 8:23 PM, Wes James <comptekki@xxxxxx <mailto:comptekki@xxxxxx>> wrote:


On Dec 7, 2015, at 8:03 PM, Wes James <comptekki@xxxxxx> 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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos

Hi,

I wasn't sure if I should reply to you as you seem to be doing a pretty
good job of helping your self here :-D.

But jokes aside, can you do a couple of checks?

Firstly, let's make sure this machine actually has a network connection
I've actually seen people spend hours trying to fix issues like yours
only to find they had no outside network connection..

$ ping 8.8.8.8

Do you get a ping response? If not, check network settings. If you do,
move on..

$ ping google.com

Does the domain resolve correctly? If not, check DNS settings. If you
do, move on..

Assuming both of those have worked, can you do the following:

$ mkdir temporary
$ cd temporary
$ wget
"http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock";

(Don't miss those quotes on the url, they are needed to ensure the &'s
do not confuse BASH/ZSH)


Now, what happened? Did it connect and download correctly? If so do the
following:

$ cat index.html\?release=6\&arch=x86_64\&repo=os\&infra=stock

You should basically get the mirror list:

http://mirrors.coreix.net/centos/6.7/os/x86_64/
http://centos.serverspace.co.uk/centos/6.7/os/x86_64/
http://mirrors.melbourne.co.uk/sites/ftp.centos.org/centos/6.7/os/x86_64/
http://mirrors.vooservers.com/centos/6.7/os/x86_64/
http://mirror.mhd.uk.as44574.net/mirror.centos.org/6.7/os/x86_64/
http://www.mirrorservice.org/sites/mirror.centos.org/6.7/os/x86_64/
http://mirrors.clouvider.net/CentOS/6.7/os/x86_64/
http://mirrors.ukfast.co.uk/sites/ftp.centos.org/6.7/os/x86_64/
http://mirror.cov.ukservers.com/centos/6.7/os/x86_64/
http://mirror.as29550.net/mirror.centos.org/6.7/os/x86_64/

With all of the above checks did you get expecting results including
domain resolution, ping response and the mirror list contents?

Kind Regards,
Jake Shipton (JakeMS)
Twitter: @CrazyLinuxNerd
GPG Key: 0xE3C31D8F
GPG Fingerprint: 7515 CC63 19BD 06F9 400A DE8A 1D0B A5CF E3C3 1D8F
_______________________________________________
Yes dns works.  If I change this file

/etc/yum.repos.d/CentOS-Base.repo

to this:

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
finally something I can check for you
my 6.x machine does not have the trailing &infra=$infra
suggest you remove and try again
baseurl=http://some.mirror.in.my.state/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 <file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6>

it works to do updates (and the other baseurl lines in that file).  It fails with the mirror list option.

I have a centos 6.2 box here that is working just fine with updates and it looks very similar to this 6.7 box - updated from 6.3).  I even tried going from static IP to dhcp assigned IP but no go.

I just check /var/log/yum.log, but that doesn’t show any errors, just successful updates.

-wes



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux