Centos7使用yum命令报错:“Could not resolve host: mirrors.aliyun.com; 未知的错误“
2023-09-27 14:26:24 时间
[lj@localhost ~]$ sudo yum install -y libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld libde265 x265
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: download.docker.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyun.com/centos/7/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.cloud.aliyuncs.com/centos/7/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyuncs.com/centos/7/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyun.com/centos/7/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
http://mirrors.aliyuncs.com/centos/7/updates/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyuncs.com; 未知的错误"
正在尝试其它镜像。
没有可用软件包 libdvdcss。
没有可用软件包 gstreamer-plugins-ugly。
没有可用软件包 gstreamer1-plugins-ugly。
没有可用软件包 gstreamer-plugins-bad-nonfree。
没有可用软件包 gstreamer1-plugins-bad-freeworld。
没有可用软件包 libde265。
没有可用软件包 x265。
错误:无须任何处理
解决办法:
编辑/etc/resolv.conf文件
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 114.114.114.114
相关文章
- centos7 关闭防火墙
- 解决centos7下 selenium报错--unknown error: DevToolsActivePort file doesn‘t exist
- docker 任意端口启动jenkins (CentOs7 Docker 17.03.1-ce)
- Centos7(Ubuntu)密码登录失败锁定设置(亲测)
- 全网最详细的最新稳定OSSEC搭建部署(ossec-server(CentOS7.X)和ossec-agent(CentOS7.X))(图文详解)
- centos7 yum源
- centos7常用命令集合
- CentOS7通过rpm包离线安装git
- Centos7找不到ifconfig和netstat命令
- 在CentOS7上源码安装OpenResty
- Centos7系统详细的启动流程
- Centos7使用LVM扩容磁盘(测试成功)
- CentOS7安装NodeJS6.9
- CentOS7中安装Python3.5
- CentOS7使用firewalld打开关闭防火墙与端口
- Centos7源码编译安装mysql8
- centos7安装tomcat8.5