Yumrepo Error:all Mirror URLs is not using FTP, Http[s] or file

Source: Internet
Author: User

When a machine uses Yum, the error is as follows:

Yumrepo Error:all Mirror URLs is not using FTP, Http[s] or file.
Eg. $releasever is not a valid release or hasnt been released yet/
Removing mirrorlist with no valid mirrors:/var/cache/yum/base/mirrorlist.txt
Error:cannot Retrieve repository metadata (Repomd.xml) for repository:base. Verify its path and try again

Guess:

1.DNS problem

2. $releasever do not have access to

1. After the DNS test is changed, there are still problems

2. View/etc/yum.repos.d/centos-base.repo

[base]name=centos-$releasever- basemirrorlist=http://  mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os

Because Yum reads mirrorlist, $releasever cannot be fetched, resulting in URL access failure.

Then the solution is simple, either to fix the $releasever,

Either modify the Centos-base.repo file directly, and replace the $releasever with 6. (because mine is CENTOS6).

How to repair $releasever I am not clear, understand and fill up.

Yumrepo Error:all Mirror URLs is not using FTP, Http[s] or file

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.