使用根访问,我编辑/etc/resolv.conf
以添加nameserver 8.8.8.8
。保存文件给我
"/etc/resolv.conf" E166: Can't open linked file for writing
你有什么主意吗?我想编辑resolv.conf
,因为apt-get更新不起作用。
编辑我使用18.04 LTS操作系统。
Err:1 http://ir.archive.ubuntu.com/ubuntu bionic InRelease
Could not resolve 'ir.archive.ubuntu.com'
Err:2 http://ir.archive.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve 'ir.archive.ubuntu.com'
Err:3 http://ir.archive.ubuntu.com/ubuntu bionic-backports InRelease
Could not resolve 'ir.archive.ubuntu.com'
Err:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Could not resolve 'security.ubuntu.com'
Err:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Could not resolve 'ppa.launchpad.net'
Reading package lists... Done
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'ir.archive.ubuntu.com'
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'ir.archive.ubuntu.com'
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'ir.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/dists/bionic/InRelease Could not resolve 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
发布于 2019-11-12 08:34:57
我重置系统并以图形方式登录。我不知道为什么,但它解决了问题。我不再编辑resolve.conf
了。
https://askubuntu.com/questions/1188096
复制相似问题