| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
 
详细问题: 
 
- <div>[constade@localhost yum.repos.d]$ sudo yum update 
 
 - CentOS Linux 8 - AppStream                                                0.0  B/s |   0  B     00:00    
 
 - Errors during downloading metadata for repository 'appstream':
 
 -   - Curl error (6): Couldn't resolve host name for http://mirror.cloud.aliyuncs.com/centos-vault/8.5.2111/AppStream/x86_64/os/repodata/repomd.xml [Could not resolve host: mirror.cloud.aliyuncs.com]</div>
 
  复制代码 
 
错误:为仓库 'appstream' 下载元数据失败 :  
- Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
 
  复制代码 
 
下载最新的repo文件,从阿里云下载 
 
- <div>sudo wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repo
 
 - sudo wget https://mirrors.aliyun.com/repo/epel-archive-8.repo -O /etc/yum.repos.d/epel-archive-8.repo</div>
 
  复制代码 
 
- <div>sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g'  /etc/yum.repos.d/Centos-vault-8.5.2111.repo 
 
 - sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g'  /etc/yum.repos.d/epel-archive-8.repo</div>
 
  复制代码 
 
 
- <div>yum clean all && yum makecache</div>
 
  复制代码 
 
测试 
 
 
 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |