Yum Error Error:cannot find a valid baseurl for repo:base

Source: Internet
Author: User
Tags nameserver

Recently, when installing the RPM package for MySQL, there was a problem

When using the command:

Vim./resolv.conf

The following error occurred:

Loading mirror speeds from cached hostfile

Could not retrieve mirrorlist Http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
14:pycurl ERROR 6-"couldn ' t resolve Host ' mirrorlist.centos.org '"
Error:cannot find a valid baseurl for repo:base

The workaround is as follows (modify DNS configuration)

Vi/etc/resolv.conf

This file was last added: NameServer 8.8.8.8

If no VI editor is available:

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

Then ping www.baidu.com

Can ping through, no more unknow host

OK, installation dependent,

Yum Install ld-linux.so.2

Finally appear compelete can

Yum Error Error:cannot find a valid baseurl for repo:base

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.