一、问题
今天新装了centos 7 ,在安装wget时报了错
![图片[1]-Could not resolve host: mirrorlist.centos.org-深吸氧](https://xiyang-blog.oss-cn-hangzhou.aliyuncs.com/blog/2024/08/20240811145911526-1024x659.png)
二、解决方法
更新镜像源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
设置源
yum clean all
yum makecache
© 版权声明
THE END
暂无评论内容