yum命令无法安装镜像

yum命令无法安装镜像

报错:http://mirror.jdcloud.com/centos/7.6.1810/os/x86_64/Packages/at-spi2-atk-2.26.2-1.el7.x86_64.rpm: [Errno 14] curl#6 - “Could not resolve host: mirror.jdcloud.com; Unknown error”–:-- ETA
正在尝试其它镜像。

解决办法:

vim /etc/resolv.conf

加入:

nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain 
发布了12 篇原创文章 · 获赞 0 · 访问量 107

猜你喜欢

转载自blog.csdn.net/weixin_41732718/article/details/104662848