CentOS-5 Yum source is not available

Source: Internet
Author: User
Tags gpg centos

CentOS-5 Yum source is not available

[root@ip-172-31-28-42 yum.repos.d]# yum search MySQL  
Loaded plugins:fastestmirror, security  
Loading Mirror Speeds from cached hostfile  
yumrepo error:all Mirror URL are not using FTP, Http[s] or file.  
 Eg. Invalid release/  
Removing mirrorlist with no valid mirrors:/var/cache/yum/base/mirrorlist.txt  
error:cannot Find a valid baseurl for repo:base  

As you can see: URLs are not FTP or HTTP addresses, open yum view:

[Base]  
name=centos-$releasever-base  
mirrorlist=http://mirrorlist.centos.org/6release= $releasever &arch=$ Basearch&repo=os  
#baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/  
gpgcheck=1  
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5  

root@ip-172-31-28-42 yum.repos.d]# wget mirrorlist=http://mirrorlist.centos.org/6release= $releasever &arch=$ Basearch&repo=os  
[1] 4853  
[2] 4854  
[root@ip-172-31-28-42 yum.repos.d]# mirrorlist=http:// Mirrorlist.centos.org/6release=: Unsupported scheme.  

There is a problem with the source URL.
Update the contents of the file and replace it with the following:

# The Mirror system uses the connecting IP address of the client and the # update status of each mirror to pick MIRR  ORS that are updated to and # geographically close to the client.  
You are should use this for CentOS updates # unless to are manually other picking.  
# # If The mirrorlist= does not work for your, as a fall back you can try the # remarked out Baseurl= line instead. # [Base] name=centos-$releasever-base #mirrorlist =http://mirrorlist.centos.org/?release= $releasever Arch= $basearch &repo=os #baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/baseurl=http:// vault.centos.org/5.11/os/$basearch/gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5 #released u pdates [Updates] name=centos-$releasever-updates #mirrorlist =http://mirrorlist.centos.org/?release= $releasever &am P;arch= $basearch &repo=updates #baseurl =http://mirror.centos.org/centos/$releasever/updates/$basearch/baseurl=http://vault.centos.org/5.11/updates/$basearch/gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5 #additional packages useful [extras] name=centos-$releasever-extras #mirrorlist =http://mirrorlist. centos.org/?release= $releasever &arch= $basearch &repo=extras #baseurl =http://mirror.centos.org/centos/$ releasever/extras/$basearch/baseurl=http://vault.centos.org/5.11/extras/$basearch/gpgcheck=1 gpgkey=file:///etc /pki/rpm-gpg/rpm-gpg-key-centos-5 #additional packages that extend functionality of existing packages [cen Tosplus] name=centos-$releasever-plus #mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch=$ Basearch&repo=centosplus #baseurl =http://mirror.centos.org/centos/$releasever/centosplus/$basearch/baseurl= http://vault.centos.org/5.11/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-$releasever-contrib #mirrorlist =http://mirrorlist.centos.org/?release= $releasever Arch= $basearch &repo=contrib #baseurl =http://mirror.centos.org/centos/$releasever/contrib/$basearch/baseurl =http://vault.centos.org/5.11/contrib/$basearch/gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-centos-5



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.