`

yum在线安装No more mirrors to try,Couldn't resolve host 'mirrorlist.centos.org

 
阅读更多

 

 

 

 

 

1 目的:  yum 安装mysql

 

2 安装过程中,出现:

Error Downloading Packages:
  mysql-5.0.95-5.el5_9.i386: failure: CentOS/mysql-5.0.95-5.el5_9.i386.rpm from base: [Errno 256] No more mirrors to try.
  perl-DBI-1.52-2.el5.i386: failure: CentOS/perl-DBI-1.52-2.el5.i386.rpm from base: [Errno 256] No more mirrors to try.
  mysql-server-5.0.95-5.el5_9.i386: failure: CentOS/mysql-server-5.0.95-5.el5_9.i386.rpm from base: [Errno 256] No more mirrors to try.
  perl-DBD-MySQL-3.0007-2.el5.i386: failure: CentOS/perl-DBD-MySQL-3.0007-2.el5.i386.rpm from base: [Errno 256] No more mirrors to try.

 

 

 

3

 

使用yum clean all命令清除后出现如下错误:

14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

 

 

原因:
 dns服务器没有配置正确

解决办法:
1、打开文件vim /etc/sysconfig/network-scripts/ifcfg-eth0在其中添加:

 

DNS1=x.x.x.x
DNS2=x.x.x.x

 

保存文件即可

-----------

有的系统需要修改/etc/resolv.conf,添加nameserver  x.x.x.x

再重启服务 service network restart

 

 

 

分享到:
评论

相关推荐

    vault.centos.org 做为yum源的repo文件

    2.编辑文件 /etc/yum.repos.d/CentOS-Base.repo ,将其中的 mirrors.aliyun.com/centos/$releasever 替换成相应历史源站地址和版本号,如 vault.centos.org/5.11 yum clean all && yum makecache

    报Could not retrieve mirrorlist http://mirrorlist.centos.org/解决办法

    Centos7 安装Docker时yum报错Could not retrieve mirrorlist http://mirrorlist.centos.org/,网上各种说法,有说修改DNS的,有说清空yum.repo.d的,笔者是这样解决的:因为centos7官方仓库自2024年6月30日后不再更新...

    docker容器调用yum报错的解决办法

    在本篇文章里小编给大家分享的是关于docker容器调用yum报错的解决办法,有兴趣的朋友们可以参考下。

    yum-3.2.29-40.el6.centos.noarch.rpm和yum-3.2.29-30.el6.noarch.rpm

    本文将深入探讨`yum`以及与标题和描述相关的两个版本`yum-3.2.29-40.el6.centos.noarch.rpm`和`yum-3.2.29-30.el6.noarch.rpm`。 首先,`yum`的核心功能在于自动化处理RPM包之间的依赖关系。当用户尝试安装一个...

    yum-3.4.3-154.el7.centos.1.noarch.rpm

    yum-3.4.3-154.el7.centos.1.noarch.rpm

    centos7 本地yum源配置

    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch;=$basearch&repo=os baseurl=http://mirrors.163.com/centos/(系统版本号)7/os/$basearch/ gpgcheck=1 gpgkey=...

    yum-3.2.22-26.el5.centos.noarch.rpm

    解决This system is not registered with RHN. 包含三个文件: yum-3.2.22-26.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm

    PackageKit-yum-1.1.10-2.el7.centos.x86_64.rpm

    PackageKit-yum-1.1.10-2.el7.centos.x86_64.rpm

    yum-3.4.3-168.el7.centos.noarch.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    Redhat 使用CentOS的yum源进行升级或软件安装

    #mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 #contrib - packages by Centos Users ...

    yum-3.4.3-158.el7.centos.noarch.rpm

    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

    redhat使用centos yum

    #mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 [extras] name=CentOS-6 - Extras - 163.com ...

    yum-3.4.3-161.el7.centos.noarch.rpm

    yum误删除后所需恢复文件包,支持Linux CentOS7系统,其他系统不要用,安装不上的,有需要的就下载,有问题可以私聊我

    centos7-yum离线rpm安装包

    该文件包含了:python-iniparse-0.4-9.el7.noarch.rpm、python-urlgrabber-3.10-8.el7.noarch.rpm、yum-3.4.3-158.el7.centos.noarch.rpm、yum-metadata-parser-1.1.4-10.el7.x86_64.rpm、yum-plugin-fastestmirror-...

    yum-3.4.3-150.el7.centos.noarch.rpm

    yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖...

    yum-3.2.29-73.el6.centos.noarch.rpm

    Linux服务器集群会用到! 软件名字:yum-3.2.29-73.el6.centos.noarch.rpm

    CentOS6.2使用第三方yum源安装更多rpm软件包宣贯.pdf

    2. **编辑YUM配置文件**:使用文本编辑器(如`vi`)打开YUM配置文件,一般位于 `/etc/yum.repos.d/CentOS-Base.repo`。在这个文件中,我们需要为每个仓库段落(如 `[base]`、`[updates]`、`[extras]`、`[centosplus]...

    c8.yum.tgz CentOS-Ceph-Quincy.repo

    # Please see https://wiki.centos.org/SpecialInterestGroup/Storage for more # information [centos-ceph-quincy] name=CentOS-$stream - Ceph Quincy mirrorlist=http://mirrorlist.centos.org/?release=$...

    Yum安装配置

    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&repo=os baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/ gpgcheck=1 gpgkey=...

Global site tag (gtag.js) - Google Analytics