yum update 出错

: mirrors.163.com; Unknown error"
Trying other mirror.
yum-utils-1.1.31-52.el7.noarch FAILED
http://ap.stykers.moe/centos/7.7.1908/os/x86_64/Packages/yum-utils-1.1.31-52.el7.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: ap.stykers.moe; Unknown error"
Trying other mirror.
lvm2-2.02.185-2.el7.x86_64.rpm FAILED
http://mirrors.neusoft.edu.cn/centos/7.7.1908/os/x86_64/Packages/lvm2-2.02.185-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.neusoft.edu.cn; Unknown error"
Trying other mirror.
lvm2-libs-2.02.185-2.el7.x86_6 FAILED
http://ftp.sjtu.edu.cn/centos/7.7.1908/os/x86_64/Packages/lvm2-libs-2.02.185-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: ftp.sjtu.edu.cn; Unknown error"
Trying other mirror.
python-chardet-2.2.1-3.el7.noa FAILED
http://ftp.sjtu.edu.cn/centos/7.7.1908/os/x86_64/Packages/python-chardet-2.2.1-3.el7.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: ftp.sjtu.edu.cn; Unknown error"
Trying other mirror.
libxml2-python-2.9.1-6.el7_2.3 FAILED
http://centos.ustc.edu.cn/centos/7.7.1908/os/x86_64/Packages/libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: centos.ustc.edu.cn; Unknown error"
Trying other mirror.
python-kitchen-1.1.1-5.el7.noa FAILED
http://mirrors.aliyun.com/centos/7.7.1908/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error"
Trying other mirror.
device-mapper-1.02.158-2.el7.x FAILED
http://mirrors.neusoft.edu.cn/centos/7.7.1908/os/x86_64/Packages/device-mapper-1.02.158-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.neusoft.edu.cn; Unknown error"
Trying other mirror.
device-mapper-persistent-data- FAILED
http://mirrors.huaweicloud.com/centos/7.7.1908/os/x86_64/Packages/device-mapper-persistent-data-0.8.5-1.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.huaweicloud.com; Unknown error"
Trying other mirror.
device-mapper-event-libs-1.02. FAILED
http://mirrors.aliyun.com/centos/7.7.1908/os/x86_64/Packages/device-mapper-event-libs-1.02.158-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error"
Trying other mirror.
device-mapper-event-1.02.158-2 FAILED
http://mirrors.tuna.tsinghua.edu.cn/centos/7.7.1908/os/x86_64/Packages/device-mapper-event-1.02.158-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.tuna.tsinghua.edu.cn; Unknown error"
Trying other mirror.
device-mapper-libs-1.02.158-2. FAILED
http://mirrors.zju.edu.cn/centos/7.7.1908/os/x86_64/Packages/device-mapper-libs-1.02.158-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.zju.edu.cn; Unknown error"
Trying other mirror.
yum-utils-1.1.31-52.el7.noarch FAILED
http://mirror.jdcloud.com/centos/7.7.1908/os/x86_64/Packages/yum-utils-1.1.31-52.el7.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.jdcloud.com; Unknown error"
Trying other mirror.
lvm2-2.02.185-2.el7.x86_64.rpm FAILED
http://mirrors.huaweicloud.com/centos/7.7.1908/os/x86_64/Packages/lvm2-2.02.185-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.huaweicloud.com; Unknown error"
Trying other mirror.
python-chardet-2.2.1-3.el7.noa FAILED
http://ap.stykers.moe/centos/7.7.1908/os/x86_64/Packages/python-chardet-2.2.1-3.el7.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: ap.stykers.moe; Unknown error"
Trying other mirror.
lvm2-libs-2.02.185-2.el7.x86_6 FAILED
http://mirror.jdcloud.com/centos/7.7.1908/os/x86_64/Packages/lvm2-libs-2.02.185-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.jdcloud.com; Unknown error"
Trying other mirror.
python-kitchen-1.1.1-5.el7.noa FAILED
http://mirrors.neusoft.edu.cn/centos/7.7.1908/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.neusoft.edu.cn; Unknown error"
Trying other mirror.
device-mapper-1.02.158-2.el7.x FAILED
http://ap.stykers.moe/centos/7.7.1908/os/x86_64/Packages/device-mapper-1.02.158-2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: ap.stykers.moe; Unknown error"
Trying other mirror.
yum-utils-1.1.31-52.el7.noarch FAILED
http://mirrors.zju.edu.cn/centos/7.7.1908/os/x86_64/Packages/yum-utils-1.1.31-52.el7.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.zju.edu.cn; Unknown error"
Trying other mirror. Error downloading packages:
7:lvm2-libs-2.02.185-2.el7.x86_64: [Errno 256] No more mirrors to try.
libxml2-python-2.9.1-6.el7_2.3.x86_64: [Errno 256] No more mirrors to try.
device-mapper-persistent-data-0.8.5-1.el7.x86_64: [Errno 256] No more mirrors to try.
python-kitchen-1.1.1-5.el7.noarch: [Errno 256] No more mirrors to try.
yum-utils-1.1.31-52.el7.noarch: [Errno 256] No more mirrors to try.
7:device-mapper-libs-1.02.158-2.el7.x86_64: [Errno 256] No more mirrors to try.
7:device-mapper-event-libs-1.02.158-2.el7.x86_64: [Errno 256] No more mirrors to try.
7:device-mapper-1.02.158-2.el7.x86_64: [Errno 256] No more mirrors to try.
7:lvm2-2.02.185-2.el7.x86_64: [Errno 256] No more mirrors to try.
python-chardet-2.2.1-3.el7.noarch: [Errno 256] No more mirrors to try.

然后 ping 一下百度, 显示无法识别

[root@hadoop etc]# ping www.baidu.com
ping: www.baidu.com: Name or service not known

修改 vi /etc/sysconfig/network-scripts/ifcfg-ens33

下的BOOTPROTO 为 dhcp

重启网络 systemctl restart network

ping 百度 成功

再 yum update 成功

 

  

yum update 出错的更多相关文章

  1. yum update 出错解决办法

    卸载掉yum和python 于是我卸载了python和yum,觉得自己重新安装python和yum. 步骤1:卸载python rpm -qa|grep python|xargs rpm -e --a ...

  2. yum 安装出错--"Couldn't resolve host 'mirrors.aliyun.com'"

    1.yum 安装出错 [root@iz25m0z7ik3z ~]#yum install mysql [root@iZ25m0z7ik3Z ~]#yum install mysql Loaded pl ...

  3. centos yum update kernel

    1.查看当前kernel版本 uname -r 2.查看已安装版本 rpm -q kernel 3.查看可升级kernel版本 yum list kernel 4.升级kernel版本 yum upd ...

  4. 解决yum update失败

    1.yum update .yum clean.yum install操作提示 Loaded plugins: fastestmirror, langpacks Loading mirror spee ...

  5. Linux/CentOS配置:使用yum update更新时不升级内核的方法

    RedHat/CentOS/Fedora使用 yum update 更新时,默认会升级内核.但有些服务器硬件(特别是组装的机器)在升级内核后,新的内核可能会认不出某些硬件,要重新安装驱动,很麻烦.所以 ...

  6. Linux中升级更新命令yum upgrade和yum update的区别

    区别 Linux升级命令有两个分别是yum upgrade和yum update, 这个两个命令是有区别的: 代码如下: yum -y update #升级所有包,同时也升级软件和系统内核 yum - ...

  7. yum update Transaction Check Error

    update系统时,发现其中一台server居然提示: Transaction Check Error:file /usr/lib/perl5/5.8.8/CGI.pm from install of ...

  8. yum update

    Linux升级命令有两个分别是yum upgrade和yum update, 这个两个命令是有区别的:代码如下:yum -y update升级所有包同时也升级软件和系统内核 代码如下:yum -y u ...

  9. yum upgrade和yum update的区别

    Linux升级命令有两个分别是yum upgrade和yum update, 这个两个命令是有区别的: yum -y update 升级所有包同时也升级软件.系统版本和系统内核 yum -y upgr ...

随机推荐

  1. DevExpress MVVM<1>

    DevExpress MVVM 概念 模型 -定义数据和您的业务逻辑. 视图 -指定UI,包括绑定到ViewModel中的属性和命令的所有可视元素(按钮,标签,编辑器等). ViewModel-连接模 ...

  2. JDK性能分析工具-引用于深入理解JVM

    1.jps(JVM Process Status Tool) 列出正在运行的虚拟机进程. 2.jstat(JVM Statistics Monitoring Tool) 显示运行状态信息. 3.jin ...

  3. ionic + cordova安装指南

    安装ionic --npm install -g ionic --cnpm install -g ionic --npm update -g ionic --cnpm update -g ionic ...

  4. ESPCMS P8 stable version Front-end reflective xss

    Download the source code first In the directory espcms_web\espcms_load.php line 67 if (!is_file($mod ...

  5. Ubuntu 18.04安装MySQL

    安装 MySQL 服务端 sudo apt-get install mysql-server 等待安装完成. 检查 mysql 服务状态 servive mysql status 登录 mysql 客 ...

  6. icon图标深入指南

    图标是网络上常用的元素. 它们是通用的,可以立即识别,可以非常吸引人,引起注意,并且(如果使用正确)可以提供出色的用户体验. 在网络上实现图标时,我们有很多选择: Icon Spritesheet – ...

  7. Unity3D 截取6面图 做全景图脚本

    using System.Collections;using System.Collections.Generic;using UnityEditor;using UnityEngine; publi ...

  8. JavaScript-----13.内置对象 Math()和Date()

    1. 内置对象 js对象分为3种:自定义对象(var obj={}).内置对象.浏览器对象. 前两种对象是js基础内容,属于ECMAScript,第三个浏览器对象是js独有的.讲js API的时候会讲 ...

  9. 淘宝爬取图片和url

    刚开始爬取了 百度图片和搜狗图片 但是图片不是很多,随后继续爬取淘宝图片,但是淘宝反爬比较厉害 之前的方法不能用 记录可行的 淘宝爬取 利用selenium爬取 https://cloud.tence ...

  10. 围观高手是如何写好 Python 循环,把内存用到极致的?

    0 前言 说到处理循环,我们习惯使用for, while等,比如依次打印每个列表中的字符: lis = ['I', 'love', 'python'] for i in lis:     print( ...