首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >编辑resolv.conf时出错

编辑resolv.conf时出错
EN

Ask Ubuntu用户
提问于 2019-11-12 07:17:10
回答 1查看 106关注 0票数 0

使用根访问,我编辑/etc/resolv.conf以添加nameserver 8.8.8.8。保存文件给我

代码语言:javascript
运行
复制
"/etc/resolv.conf" E166: Can't open linked file for writing

你有什么主意吗?我想编辑resolv.conf,因为apt-get更新不起作用。

编辑我使用18.04 LTS操作系统。

代码语言:javascript
运行
复制
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.
EN

回答 1

Ask Ubuntu用户

发布于 2019-11-12 08:34:57

我重置系统并以图形方式登录。我不知道为什么,但它解决了问题。我不再编辑resolve.conf了。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1188096

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档