Error: Cannot find a valid baseurl for repo: base

General support questions
paulgilb
Posts: 1
Joined: 2018/01/26 07:55:08

Error: Cannot find a valid baseurl for repo: base

Postby paulgilb » 2018/01/26 08:04:49

#yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

Can anyone provide any assistance with this as I am trying to update to apply the Melton and Spectra patches.

I have tried the command below with no response:-

# curl --ipv4 'http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&inf'
[user@systemname]#

User avatar
TrevorH
Forum Moderator
Posts: 22564
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Error: Cannot find a valid baseurl for repo: base

Postby TrevorH » 2018/01/26 10:39:22

What is the content of /etc/yum.repos.d/CentOS-Base.repo?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
avij
Forum Moderator
Posts: 2447
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Error: Cannot find a valid baseurl for repo: base

Postby avij » 2018/01/26 21:45:44

Try the same curl command with -v

I would guess a proxy or a (non-CentOS) firewall is involved.