YumRepo Error: All mirror URLs are not using ftp, http[s] or file

cannot find a valid baseurl for repo: base/7/x86_64 docker
centos 5 mirror
cannot find a valid baseurl for repo: amzn2-core/2/x86_64
centos-vault repo
failed to search for file: cannot update read-only repo
cannot find a valid base repo
centos 7 base repo url
yum cannot find a baseurl

I have set up a centOS 6.5 server using VMWare Workstation 9 on a Windows 8.1 host laptop. When trying to use yum to install packages I get the following error:

[root@localhost ~]# yum update
Loaded plugins: fastestmirror
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/i386/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

The VM works on other machines (Windows 7 desktop and an Windows 8.1 laptop), just not the one I need it to work on. I am able to ping the host from the guest and the guest from the host, so there is a connection to the internet.

I have uninstalled and reinstalled Workstation 9. Ungraded to workstation 10. Rebuilt the CentOS 6.5 server. Nothing seems to solve the issue.

When I upgraded from Windows 8 to Windows 8.1, I had VMWare installed. I found out later that I should have uninstalled VMWare before upgrading. Could this have messed up my VMWare network adapters?

Anyone have any ideas?

Be sure that you can ping vault.centos.org.

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

Comment out mirrorlist and uncomment baseurl

Change all

baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/

to

baseurl=http://vault.centos.org/$releasever/centosplus/$basearch/

And enjoy your yum update!!! ;)

umRepo Error: All mirror URLs are not using ftp, http[s] or file , YumRepo Error: All mirror URLs are not using ftp, http or file. Eg. $releasever is not a valid release or hasnt been released yet/ removing mirrorlist  How to fix CentOS 5 error: YumRepo Error: All mirror URLs are not using ftp, http[s] or file . In this article i will show how to fix yum update error: YumRepo Error: All mirror URLs are not using ftp, http[s] Problem . When trying update CentOS 5 with yum update command getting error:

I think another reason for this error message is if your release is no longer supported. None of the suggestions in this thread worked for me, and my internet connectivity was fine, but then I realized that I'm running Centos 5 (I know, ancient...) which reached its end-of-life on 2017 Mar 31 - right around when the yum repo error started showing up.

How to fix CentOS 5 error: YumRepo Error: All mirror URLs are not , How to fix CentOS 5 error: YumRepo Error: All mirror URLs are not using ftp, http[​s] or file. In this article i will show how to fix yum update error:  # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client.

This happened to a system I support on a remote network and I determined it was due to the customer's Check Point firewall interfering with normal HTTP traffic. I ran a sudo tcpdump -nn -c 500 -s0 -X port 80 and watched yum get redirected to some kind of portal:

Location: http://x.x.x.x/UserCheck/PortalMain?....

Funny thing is, it was hard to reproduce with curl, which retrieved the mirror list without any problem. I found I had to add the User-agent: urlgrabber/3.1.0 yum/3.2.22 HTTP header that yum uses to trigger Check Point interfering, like this:

$ curl -i \
    -H 'User-agent: urlgrabber/3.1.0 yum/3.2.22' \
    'http://108.61.16.227/?release=5&arch=x86_64&repo=os'
HTTP/1.1 307 Temporary Redirect
Location: http://x.x.x.x/UserCheck/PortalMain?IID=....origUrl=....
Connection: close

Googling for UserCheck/PortalMain shows this is Check Point Firewall. And the IP I obscured there (x.x.x.x) belonged to the customer. This was sufficient proof to tell the customer he needed to make some kind of change to his firewall to allow my system unobstructed internet access (I have no idea what, but I hope he and/or his network team can figure it out).

[SOLVED] YumRepo Error (CentOS 5.9), cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/ removing mirrorlist with no valid mirrors:  [root@hardaway ~]# yum search mysql Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

for centos 5.4, you can change /etc/yum.repos.d/CentOS-Base.repo into like this.

[base]
name=CentOS-5.4 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=5.4&arch=$basearch&repo=os
baseurl=http://vault.centos.org/5.4/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates 
[updates]
name=CentOS-5.4 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=5.4&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/5.4/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-5.4 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=5.4&arch=$basearch&repo=addons
baseurl=http://vault.centos.org/5.4/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-5.4 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=5.4&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/5.4/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.4 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=5.4&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/5.4/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-5.4 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=5.4&arch=$basearch&repo=contrib
baseurl=http://vault.centos.org/5.4/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

YumRepo Error: All mirror URLs are not using ftp, http , YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/ removing mirrorlist with no valid mirrors:  Re: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. « Reply #5 on: July 12, 2012, 08:00:46 AM » The issue at hand should not be dealt with in the Forums, it should go to Bugzilla.

Adding the following before yum update -y helped me to fix the problem:

yum clean all
echo "http://vault.centos.org/5.11/os/x86_64/" > /var/cache/yum/base/mirrorlist.txt
echo "http://vault.centos.org/5.11/extras/x86_64/" > /var/cache/yum/extras/mirrorlist.txt
echo "http://vault.centos.org/5.11/updates/x86_64/" > /var/cache/yum/updates/mirrorlist.txt

BTW, CentOS 5 had already reached EOL

How do I fix these Yum errors?, Loaded plugins: fastestmirror Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/  Now, I ended up in a situation where I cannot use yum at all: Code: root@server1 $ yum --enablerepo=base info bash Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

YumRepo Error: All mirror URLs are not using ftp, http[s] or file., YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </HTML>/ removing mirrorlist with no valid mirrors: /var/cache/yum/base/  I have CentOS 5.6 on my laptop. When I type yum update, I get the below error: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using

SOLVED, YumRepo Error: All mirror URLs are not using ftp, http or file. Eg. Invalid release/ removing mirrorlist with no valid mirrors: /var/cache/yum/base/ 

YumRepo Error: All mirror URLs are not using ftp, http , YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors 

Comments
  • This almost worked for me, I noticed it was getting a 404 on vault.centos.org/5 so I switched out $releasever for the actual version (5.11) and yum update works, thank you!!
  • works great! same comment about using actual OS version (5.10 in my case) instead of $releaseserver
  • This is right. You must change the repo http url to 'vault'. The original 5* locations are no longer valid.
  • For those still looking -- you might want to try one of the mirrors listed on the Valut -> vault.centos.org/centos. I found version 5.5 on the official mirror listed there.
  • While it didn't do it before... this happened to me with our Barracuda Webfilter since the nagios system was not authenticating with domain credentials. A simple exception got me working again. Thanks.
  • Thank you Amar, but your suggestions did not solve the issue. I get the same error. I have been able to ping external sites like google.com so I did not add the name servers. Should I do that even though I can ping external sites?
  • If you are able to reach the external sites then either of baseUrl or mirrorList will work for you. Try to reach the link that yum tries to open from a browser.Are you able to access it?