{ Hello World! }

今天博主在自己 Debian9 系统的 VPS 中执行 apt-get update 时,遇到部分源无法连接的错误。

W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/Release.gpg  Temporary failure resolving 'cdn-fastly.deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/Release.gpg  Temporary failure resolving 'cdn-fastly.deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

注意:以上错误信息来自其他地方复制,当时出错误急于解决所有没有保存出错的详细信息。

使用 $ vi /etc/apt/sources.list 命令修改源为阿里云后解决。

deb http://mirrors.aliyun.com/debian stretch main
deb-src http://mirrors.aliyun.com/debian stretch main
deb http://mirrors.aliyun.com/debian stretch-updates main
deb-src http://mirrors.aliyun.com/debian stretch-updates main
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main