CentOS Yum Installation Issue

Source: Internet
Author: User
Tags nameserver

Yum [Errno] No more mirrors to try Workaround

You can resolve the issue by entering the following command:

    1. Yum Clean All
    2. Yum Makecache

Causes CentOS installation software Error:cannot Find a valid baseurl for repo:base

Workaround:

echo "NameServer 8.8.8.8" >>/etc/resolv.conf

Then ping outside the domain name, you can parse, and then use Yum installation software, also can, OK, problem solving.

The valid parameters and their meanings are as follows:

NameServer indicates the IP address of the DNS server. There can be many rows of nameserver, each with an I-P address. At query time, you press nameserver in the order of the file, and only if the first nameserver The following nameserver are only queried when there is no response.
Domain declares the name of the host computer. Many programs use it, such as the mail system; When a host without a domain name
Machine for DNS queries. If there is no domain name, the hostname will be used, removing all at the first point (.) The previous content.
Search its multiple parameters indicate the order of the domain name query. When you want to query a host that does not have a domain name, the host will look for it separately in the domain declared by search. Domain and search cannot coexist, and if present, subsequent occurrences will be used.
Sortlist allows a specific sort of domain results to be obtained. Its parameters are network/mask pairs. The default/etc/resolv.conf file is not available in Red Hat, and its content is created dynamically based on the options given at the time of installation.

yum installfirefox

CentOS Yum Installation Issue

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.