Ubuntu报错E: Failed to fetch http://mirrors.cloud.aliyuncs.com解决方案 ...

打印 上一主题 下一主题

主题 683|帖子 683|积分 2049

报错内容:

在进行更新源和下载工具包时都会报错类似以下内容:
Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/nginx-common_1.18.0-6ubuntu14.4_all.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/libnginx-mod-http-geoip2_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/libnginx-mod-http-image-filter_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/libnginx-mod-http-xslt-filter_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/libnginx-mod-mail_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/libnginx-mod-stream_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/libnginx-mod-stream-geoip2_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/nginx-core_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Failed to fetch http://mirrors.cloud.aliyuncs.com/ubuntu-ports/pool/main/n/nginx/nginx_1.18.0-6ubuntu14.4_arm64.deb Could not resolve ‘mirrors.cloud.aliyuncs.com’
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
寻求方法:

报错提示无法解析阿里云镜像链接,在网上找了很多解决方案,主要指出两个题目:
1.DNS解析题目
添加了以下DNS依然存在题目

2.镜像源题目
修改成国内镜像源依然没有解决
终极解决

发现我的题目是DNS解析题目
阿里云的DNS是127.0.0.53,我添加的是127.0.0.253
修改后解决
1.打开并修改配置文件
  1. sudo vi /etc/resolv.conf
复制代码
2.在文件中添加阿里云DNS(按i进入编辑模式,添加后esc退出编辑模式,输入:wq生存并退出)
  1. nameserver 127.0.0.53
复制代码


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

惊雷无声

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表