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

2017-05-06 19:40:25 +08:00
 cuican008
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.
655 次点击
所在节点    VPS
3 条回复
cuican008
2017-05-06 19:56:32 +08:00
有大神知道么?
cuican008
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
2017-05-07 22:06:27 +08:00
香港的 vps 为啥要用 163 的源……

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

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

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

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

© 2021 V2EX