apt-get update 一直 0% working 失败的解决方案
问题
root@1003b9d30300:/opt/caffe-local# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [256 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [548 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [2,051 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2,559 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [15.9 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [984 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [16.4 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1,544 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [8,820 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [26.2 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [10.9 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [12.7 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9,802 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,558 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9,827 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
0% [Working]
在新建的docker中,想下载VIM编辑器,但是输入apt-get update
总是失败,一直显示0% [Working]
解决方法
rm -r /etc/apt/sources.list.d
搞定!!