V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
cuican008
V2EX  ›  VPS

刚买了个香港的 vps 系统是 debian 8.2 就是更新不了源。

  •  
  •   cuican008 · 2017-05-06 19:40:25 +08:00 · 675 次点击
    这是一个创建于 2768 天前的主题,其中的信息可能已经有所发展或是发生改变。
    root@cloud:~# apt-get update

    Err http://mirrors.163.com jessie InRelease

    Err http://mirrors.163.com jessie/updates InRelease

    Err http://mirrors.163.com jessie-proposed-updates InRelease

    Err http://mirrors.163.com jessie-updates InRelease

    Err http://security.debian.org jessie/updates InRelease

    Err http://mirrors.163.com jessie Release.gpg
    Could not resolve 'mirrors.163.com'
    Err http://mirrors.163.com jessie/updates Release.gpg
    Could not resolve 'mirrors.163.com'
    Err http://mirrors.163.com jessie-proposed-updates Release.gpg
    Could not resolve 'mirrors.163.com'
    Err http://security.debian.org jessie/updates Release.gpg
    Could not resolve 'security.debian.org'
    Err http://mirrors.163.com jessie-updates Release.gpg
    Could not resolve 'mirrors.163.com'
    Reading package lists... Done
    W: Failed to fetch http://mirrors.163.com/debian/dists/jessie/InRelease

    W: Failed to fetch http://mirrors.163.com/debian-security/dists/jessie/updates/InRelease

    W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease

    W: Failed to fetch http://mirrors.163.com/debian/dists/jessie-proposed-updates/InRelease

    W: Failed to fetch http://mirrors.163.com/debian/dists/jessie-updates/InRelease

    W: Failed to fetch http://mirrors.163.com/debian/dists/jessie/Release.gpg Could not resolve 'mirrors.163.com'

    W: Failed to fetch http://mirrors.163.com/debian-security/dists/jessie/updates/Release.gpg Could not resolve 'mirrors.163.com'

    W: Failed to fetch http://mirrors.163.com/debian/dists/jessie-proposed-updates/Release.gpg Could not resolve 'mirrors.163.com'

    W: Failed to fetch http://mirrors.163.com/debian/dists/jessie-updates/Release.gpg Could not resolve 'mirrors.163.com'

    W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Could not resolve 'security.debian.org'

    W: Some index files failed to download. They have been ignored, or old ones used instead.
    3 条回复    2017-05-07 22:06:27 +08:00
    cuican008
        1
    cuican008  
    OP
       2017-05-06 19:56:32 +08:00
    有大神知道么?
    cuican008
        2
    cuican008  
    OP
       2017-05-06 20:00:18 +08:00
    解决了 :
    登入 root
    进入 /etc/resolv.conf
    vim /etc/resolv.conf

    修改内容为下(将 DNS 地址改为 google 域名服务器)
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    guoyijun163
        3
    guoyijun163  
       2017-05-07 22:06:27 +08:00
    香港的 vps 为啥要用 163 的源……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2702 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:21 · PVG 08:21 · LAX 16:21 · JFK 19:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.