Err:1 http://mirrors.aliyun.com/ubuntu focal InRelease
Temporary failure resolving ‘mirrors.aliyun.com’
描述:在Ubuntu 20.04编辑/etc/apt/sources.list文件,更改为阿里源之后,更新执行sudo apt update,
报错:
Err:1 http://mirrors.aliyun.com/ubuntu focal InRelease Temporary failure resolving 'mirrors.aliyun.com' Err:2 http://mirrors.aliyun.com/ubuntu focal-security InRelease Temporary failure resolving 'mirrors.aliyun.com' Err:3 http://mirrors.aliyun.com/ubuntu focal-updates InRelease Temporary failure resolving 'mirrors.aliyun.com'解决:
修改/etc/resolv.conf,在里边加上如下:
nameserver 8.8.8.8 nameserver 114.114.114.114可以ping通www.baidu.com之后,执行sudo apt update
结果:
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-vPQuVD6r-1652675781267)(1.Win10没有hyper-v解决方案.assets/image-20220512173519825.png)]
版权声明:本文为weixin_44129133原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。