Error: Cannot find a valid baseurl for repo: base

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

Error: Cannot find a valid baseurl for repo: base

Post by 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 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 ... epo=os&inf'
[user@systemname]#

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2018/01/26 10:39:22

What is the content of /etc/yum.repos.d/CentOS-Base.repo?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

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

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

Post by 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.

Post Reply