V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yanwen
V2EX  ›  问与答

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

  •  
  •   yanwen · 2013-07-02 11:24:22 +08:00 · 2730 次点击
    这是一个创建于 3972 天前的主题,其中的信息可能已经有所发展或是发生改变。
    事情是这样的安装好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
    8 条回复    1970-01-01 08:00:00 +08:00
    thedevil5032
        1
    thedevil5032  
       2013-07-02 11:41:31 +08:00 via iPad   ❤️ 1
    为什么@我捏?


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

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

    /t/69127
    046569
        4
    046569  
       2013-07-02 11:59:36 +08:00   ❤️ 1
    貌似我在群里回过你了,DNS设置问题...
    thedevil5032
        5
    thedevil5032  
       2013-07-02 12:30:43 +08:00 via iPad
    @yanwen 感谢~~
    da_a
        6
    da_a  
       2013-07-02 12:39:09 +08:00   ❤️ 1
    我的/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
        7
    yanwen  
    OP
       2013-07-02 13:49:26 +08:00
    @da_a 已解决。替换了一下 就解决了。。哈。。谢谢。
    yanwen
        8
    yanwen  
    OP
       2013-08-20 17:26:33 +08:00
    @da_a 对了。。话说你的128M的kvm拿来干什么呢??我的一直闲置着。。不知道可以干什么。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1879 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 00:39 · PVG 08:39 · LAX 17:39 · JFK 20:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.