问问 buyvm的kvm主机联网问题。。

2013-07-02 11:24:22 +08:00
 yanwen
事情是这样的安装好debian的时候是可以上网的也可以update,安装了之后,就没有管了。。后来我登录了一下ssh,想wget一个东西,,然后就报错了。。说 找不到hostname,然后我执行 apt-get update 不行了。错误提示如下:


W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/main/i18n/Translation-en_US.gz Could not resolve 'ftp.us.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/Release.gpg Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en.gz Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en_US.gz Could not resolve 'security.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze-updates/Release.gpg Could not resolve 'ftp.us.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en.gz Could not resolve 'ftp.us.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en_US.gz Could not resolve 'ftp.us.debian.org'
W: Some index files failed to download, they have been ignored, or old ones used instead.






然后发了个TK过去问。。客服回复了一段话 我也不知道是什么意思。。顺带求翻译一下。。感谢。。

回复内容:

You need to replace the missing entries in /etc/resolv.conf that networkmanager *insists* on removing, this is why you should remove network manager and always manually configure networking.



求帮助 求解答。。真心感谢。。

@Js
@da_a
@lemonda
@marchtea
@thedevil5032
2736 次点击
所在节点    问与答
8 条回复
thedevil5032
2013-07-02 11:41:31 +08:00
为什么@我捏?


好吧,我看了你的报错就大概猜到:你的 resolv.conf 没弄好。这个貌似是 Linux 的 DNS 解析记录文件。
结合他们的回复,一,你要去掉你安装的 networkmanager(谁能告诉我这个中文翻译是啥),二,你最好是手动设置你的网络。

推荐参考下 Arch WIKI 的网络配置。
thedevil5032
2013-07-02 11:43:18 +08:00
@thedevil5032 貌似没说请,你要把那个文件 /etc/resolv.conf 弄好了,就能上网干你想干的了。
yanwen
2013-07-02 11:55:55 +08:00
@thedevil5032 看到你在v2上面发的一些帖子。。顺带就AT了你了。。唉。。

/t/69127
046569
2013-07-02 11:59:36 +08:00
貌似我在群里回过你了,DNS设置问题...
thedevil5032
2013-07-02 12:30:43 +08:00
@yanwen 感谢~~
da_a
2013-07-02 12:39:09 +08:00
我的/etc/resolv.conf

lv机房
nameserver 205.185.112.68
nameserver 205.185.112.69
ny机房
nameserver 199.195.255.68
nameserver 199.195.255.69
yanwen
2013-07-02 13:49:26 +08:00
@da_a 已解决。替换了一下 就解决了。。哈。。谢谢。
yanwen
2013-08-20 17:26:33 +08:00
@da_a 对了。。话说你的128M的kvm拿来干什么呢??我的一直闲置着。。不知道可以干什么。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/74452

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX