debian安装docker 网页可以访问源,apt update无法访问


(左手) #1

debian安装docker

debian安装docker


按照这个教程安装

执行到这里

Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well. To add the edge or test repository, add the word edge or test (or both) after the word stable in the commands below.

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \

软件源中,也添加了

➜  ~ tail /etc/apt/sources.list
tail /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian stretch-proposed-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stretch-proposed-updates main contrib non-free

#jenkins
deb https://pkg.jenkins.io/debian binary/
#virtualbox
deb https://download.virtualbox.org/virtualbox/debian stretch contrib
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
# deb-src [arch=amd64] https://download.docker.com/linux/debian stretch stable
➜  ~ 

执行apt update时候,一直无法链接

➜  ~ sudo apt update
sudo apt update
Ign:1 http://mirrors.ustc.edu.cn/debian stretch InRelease
Hit:2 http://mirrors.ustc.edu.cn/debian stretch-proposed-updates InRelease
Hit:3 http://mirrors.ustc.edu.cn/debian stretch Release
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
Get:5 http://packages.microsoft.com/repos/vscode stable InRelease [2,801 B]
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Hit:9 https://download.virtualbox.org/virtualbox/debian stretch InRelease
Hit:10 http://deb.debian.org/debian stretch-backports InRelease
Ign:11 https://pkg.jenkins.io/debian binary/ InRelease
Hit:12 https://pkg.jenkins.io/debian binary/ Release
Err:14 https://download.docker.com/linux/debian stretch InRelease
  Operation timed out after 120000 milliseconds with 0 out of 0 bytes received
Fetched 2,801 B in 2min 0s (23 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://download.docker.com/linux/debian/dists/stretch/InRelease  Operation timed out after 120000 milliseconds with 0 out of 0 bytes received
W: Some index files failed to download. They have been ignored, or old ones used instead.

使用proxychain4 也是无法链接

➜  ~ proxychains4  sudo apt update
< sudo apt update
[proxychains] config file found: /home/kk/.proxychains/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
Ign:1 http://mirrors.ustc.edu.cn/debian stretch InRelease
Get:2 http://mirrors.ustc.edu.cn/debian stretch-proposed-updates InRelease [96.3 kB]
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://mirrors.ustc.edu.cn/debian stretch Release
Hit:5 http://dl.google.com/linux/chrome/deb stable Release
Get:6 http://packages.microsoft.com/repos/vscode stable InRelease [2,801 B]
Get:8 http://deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:10 https://download.virtualbox.org/virtualbox/debian stretch InRelease
Ign:11 https://pkg.jenkins.io/debian binary/ InRelease
Hit:12 https://pkg.jenkins.io/debian binary/ Release
Err:14 https://download.docker.com/linux/debian stretch InRelease
  Operation timed out after 120000 milliseconds with 0 out of 0 bytes received
Fetched 99.1 kB in 2min 0s (825 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://download.docker.com/linux/debian/dists/stretch/InRelease  Operation timed out after 120000 milliseconds with 0 out of 0 bytes received
W: Some index files failed to download. They have been ignored, or old ones used instead.

浏览器中
https://download.docker.com/linux/debian/dists/stretch/ 这个文件可以访问