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 一下百度, 显示无法识别

[[email protected] 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 成功

 

  

原文地址:https://www.cnblogs.com/Jomini/p/12026306.html

时间: 2024-07-31 06:46:05

yum update 出错的相关文章

centos7系统升级后yum update 出错No module named pycurl

Centos7升级后,运行yum update 结果如下 :]# yum updateThere was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named pycurl Please install a package which provides this module, orverify that th

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

1.yum 安装出错 [[email protected] ~]#yum install mysql [html] view plain copy [[email protected] ~]#yum install mysql Loaded plugins: security http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve

yum update

Linux升级命令有两个分别是yum upgrade和yum update, 这个两个命令是有区别的:代码如下:yum -y update升级所有包同时也升级软件和系统内核 代码如下:yum -y upgrade只升级所有包,不升级软件和系统内核实验分别测试 yum -y upgrade和yum -y update 升级前 系统版本:  centos5.5内核版本:  2.6.18-194.el5 升级前做过简单配置文件修改 yum -y upgrade    升级后 系统版本:    cent

Linux服务器执行yum update不成功

Linux服务器执行yum update报错提示: Loaded plugins: fastestmirror, refresh-packagekit, security You need to be root to perform this command. Centons下其大概意思是fastestmirror不能使用,fastestmirror是yum的一个加速插件,具体我也没有仔细了解过,可能是系统不支持或者缺少组建导致的.处理办法就是禁用这个插件,方法如下:[email protect

yum update upgrade区别

今天在做centos的内核升级测试,在使用源码升级的时候,在网上开到在升级内核之前先进行yum update.yum upgrade.这个两个到底有什么区别吗?网上搜索了一大把发现全是这样的说法: yum -y update 升级所有包,改变软件设置和系统设置,系统版本内核都升级 yum -y upgrade 升级所有包,不改变软件设置和系统设置,系统版本升级,内核不改变 而且还信誓旦旦的贴上了测试结果,真的是这样的吗???!!!我们还是看下man yum 是怎么说的吧!!! update If

yum update 报错db4 - 4.3.29-10.el5_5.2.i386

在Linux系统中通过yum update 时,报错如下: Error Downloading Packages: db4 - 4.3.29-10.el5_5.2.i386: failure: CentOS/db4-4.3.29-10.el5_5.2.i386.rpm from base: [Errno 256] No more mirrors to try. 初步判断是yum源中缺少db4-4.3.29-10.el5_5.2.i386.rpm 些文件,解决方法是:通过对比系统版本,下载相应文件

Linux升级命令yum upgrade和yum update的区别

Linux升级命令有两个分别是yum upgrade和yum update, 这个两个命令是有区别的: yum -y update 升级所有包同时也升级软件和系统内核 yum -y upgrade 只升级所有包,不升级软件和系统内核 实验分别测试 yum -y upgrade和yum -y update 升级前 系统版本:  centos5.5 内核版本:  2.6.18-194.el5 升级前做过简单配置文件修改 yum -y upgrade    升级后 系统版本:    centos5.7

CentOS下的yum upgrade和yum update区别,没事别乱用,和Ubuntu的update不一样!

说明:生产环境对软件版本和内核版本要求非常精确,别没事有事随便的进行yum update操作!!!!!!!!! yum update:升级所有包同时也升级软件和系统内核 yum upgrade:只升级所有包,不升级软件和系统内核 测试样例: 一.升级前 系统版本: centos5.5 内核版本: 2.6.18-194.el5 二.yum upgrade 升级后,只升级所有包,不升级软件和系统内核 系统版本: centos5.7 内核版本: 2.6.18-194.el5 三.yum update

yum更新出错-解决

Total download size: 14 MIs this ok [y/d/N]: 命令里已经yum install -y了,但是还是需要选择Y,N没有自动执行,请问这个要怎么破. PS:我是在Dockerfile里设置,然后进入镜像手动测试,Dockerfile报错如下: Is this ok [y/d/N]: Exiting on user commandYour transaction was saved, rerun it with: yum load-transaction /t