ubuntu 18.04 apt-get failed

we need to check if our ubuntu source need to change.

hmm@hmm-dev:/disk1/4418/tools$ sudo vi /etc/apt/sources.list
change content to this:
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

hmm@hmm-dev:/disk1/4418/tools$ sudo apt-get update
获取:1 http://mirrors.ustc.edu.cn/ubuntu xenial InRelease [247 kB]
获取:2 http://mirrors.ustc.edu.cn/ubuntu xenial-security InRelease [109 kB]
获取:3 http://mirrors.ustc.edu.cn/ubuntu xenial-updates InRelease [109 kB]
获取:4 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed InRelease [260 kB]
获取:5 http://mirrors.ustc.edu.cn/ubuntu xenial-backports InRelease [107 kB]
获取:6 http://mirrors.ustc.edu.cn/ubuntu xenial/main Sources [868 kB]
获取:7 http://mirrors.ustc.edu.cn/ubuntu xenial/restricted Sources [4,808 B]
获取:8 http://mirrors.ustc.edu.cn/ubuntu xenial/universe Sources [7,728 kB]
获取:9 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse Sources [179 kB]
获取:10 http://mirrors.ustc.edu.cn/ubuntu xenial/main amd64 Packages [1,201 kB]
获取:11 http://mirrors.ustc.edu.cn/ubuntu xenial/main i386 Packages [1,196 kB]
获取:12 http://mirrors.ustc.edu.cn/ubuntu xenial/main Translation-zh_CN [74.8 kB]
获取:13 http://mirrors.ustc.edu.cn/ubuntu xenial/main Translation-en [568 kB]
获取:14 http://mirrors.ustc.edu.cn/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
获取:15 http://mirrors.ustc.edu.cn/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
获取:16 http://mirrors.ustc.edu.cn/ubuntu xenial/restricted amd64 Packages [8,344 B]
获取:17 http://mirrors.ustc.edu.cn/ubuntu xenial/restricted i386 Packages [8,684 B]
获取:18 http://mirrors.ustc.edu.cn/ubuntu xenial/restricted Translation-zh_CN [1,652 B]
获取:19 http://mirrors.ustc.edu.cn/ubuntu xenial/restricted Translation-en [2,908 B]
获取:20 http://mirrors.ustc.edu.cn/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
获取:21 http://mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 Packages [7,532 kB]
获取:22 http://mirrors.ustc.edu.cn/ubuntu xenial/universe i386 Packages [7,512 kB]
获取:23 http://mirrors.ustc.edu.cn/ubuntu xenial/universe Translation-zh_CN [172 kB]
获取:24 http://mirrors.ustc.edu.cn/ubuntu xenial/universe Translation-en [4,354 kB]
获取:25 http://mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 DEP-11 Metadata [3,410 kB]
获取:26 http://mirrors.ustc.edu.cn/ubuntu xenial/universe DEP-11 64x64 Icons [7,448 kB]
获取:27 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse amd64 Packages [144 kB]
获取:28 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse i386 Packages [140 kB]
获取:29 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse Translation-zh_CN [4,984 B]
获取:30 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse Translation-en [106 kB]
获取:31 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
获取:32 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
获取:33 http://mirrors.ustc.edu.cn/ubuntu xenial-security/main Sources [144 kB]
获取:34 http://mirrors.ustc.edu.cn/ubuntu xenial-security/restricted Sources [2,116 B]
获取:35 http://mirrors.ustc.edu.cn/ubuntu xenial-security/universe Sources [102 kB]
获取:36 http://mirrors.ustc.edu.cn/ubuntu xenial-security/multiverse Sources [3,420 B]
获取:37 http://mirrors.ustc.edu.cn/ubuntu xenial-security/main amd64 Packages [621 kB]
获取:38 http://mirrors.ustc.edu.cn/ubuntu xenial-security/main i386 Packages [521 kB]
获取:39 http://mirrors.ustc.edu.cn/ubuntu xenial-security/main Translation-en [256 kB]
获取:40 http://mirrors.ustc.edu.cn/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.9 kB]
获取:41 http://mirrors.ustc.edu.cn/ubuntu xenial-security/main DEP-11 64x64 Icons [67.1 kB]
获取:42 http://mirrors.ustc.edu.cn/ubuntu xenial-security/restricted amd64 Packages [7,204 B]
获取:43 http://mirrors.ustc.edu.cn/ubuntu xenial-security/restricted i386 Packages [7,224 B]
获取:44 http://mirrors.ustc.edu.cn/ubuntu xenial-security/restricted Translation-en [2,152 B]
获取:45 http://mirrors.ustc.edu.cn/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
获取:46 http://mirrors.ustc.edu.cn/ubuntu xenial-security/universe amd64 Packages [428 kB]
获取:47 http://mirrors.ustc.edu.cn/ubuntu xenial-security/universe i386 Packages [373 kB]
获取:48 http://mirrors.ustc.edu.cn/ubuntu xenial-security/universe Translation-en [172 kB]
获取:49 http://mirrors.ustc.edu.cn/ubuntu xenial-security/universe amd64 DEP-11 Metadata [116 kB]
获取:50 http://mirrors.ustc.edu.cn/ubuntu xenial-security/universe DEP-11 64x64 Icons [173 kB]
获取:51 http://mirrors.ustc.edu.cn/ubuntu xenial-security/multiverse amd64 Packages [5,600 B]
获取:52 http://mirrors.ustc.edu.cn/ubuntu xenial-security/multiverse i386 Packages [5,764 B]
获取:53 http://mirrors.ustc.edu.cn/ubuntu xenial-security/multiverse Translation-en [2,676 B]
获取:54 http://mirrors.ustc.edu.cn/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,464 B]
获取:55 http://mirrors.ustc.edu.cn/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [2,638 B]
获取:56 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main Sources [331 kB]
获取:57 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/restricted Sources [2,528 B]
获取:58 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe Sources [250 kB]
获取:59 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/multiverse Sources [8,764 B]
获取:60 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 Packages [920 kB]
获取:61 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main i386 Packages [804 kB]
获取:62 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main Translation-en [370 kB]
获取:63 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 DEP-11 Metadata [318 kB]
获取:64 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main DEP-11 64x64 Icons [233 kB]
获取:65 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/restricted amd64 Packages [7,556 B]
获取:66 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/restricted i386 Packages [7,524 B]
获取:67 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/restricted Translation-en [2,272 B]
获取:68 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
获取:69 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe amd64 Packages [737 kB]
获取:70 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe i386 Packages [675 kB]
获取:71 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe Translation-en [305 kB]
获取:72 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [252 kB]
获取:73 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/universe DEP-11 64x64 Icons [345 kB]
获取:74 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/multiverse amd64 Packages [16.6 kB]
获取:75 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/multiverse i386 Packages [15.8 kB]
获取:76 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/multiverse Translation-en [8,440 B]
获取:77 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,968 B]
获取:78 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
获取:79 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/main Sources [11.2 kB]
获取:80 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/restricted Sources [1,440 B]
获取:81 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/universe Sources [6,720 B]
获取:82 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/multiverse Sources [1,700 B]
获取:83 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/main amd64 Packages [35.0 kB]
获取:84 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/main i386 Packages [28.0 kB]
获取:85 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/main Translation-zh_CN [74.8 kB]
获取:86 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/main Translation-en [15.5 kB]
获取:87 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/main amd64 DEP-11 Metadata [208 B]
获取:88 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/main DEP-11 64x64 Icons [29 B]
获取:89 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/restricted amd64 Packages [6,152 B]
获取:90 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/restricted i386 Packages [6,128 B]
获取:91 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/restricted Translation-zh_CN [1,652 B]
获取:92 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/restricted Translation-en [1,876 B]
获取:93 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/restricted amd64 DEP-11 Metadata [201 B]
获取:94 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/universe amd64 Packages [8,728 B]
获取:95 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/universe i386 Packages [8,576 B]
获取:96 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/universe Translation-zh_CN [172 kB]
获取:97 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/universe Translation-en [6,980 B]
获取:98 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/universe amd64 DEP-11 Metadata [796 B]
获取:99 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/universe DEP-11 64x64 Icons [2,085 B]
获取:100 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/multiverse amd64 Packages [4,908 B]
获取:101 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/multiverse i386 Packages [4,896 B]
获取:102 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/multiverse Translation-zh_CN [4,984 B]
获取:103 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/multiverse Translation-en [1,740 B]
获取:104 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/multiverse amd64 DEP-11 Metadata [2,468 B]
获取:105 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed/multiverse DEP-11 64x64 Icons [2,638 B]
获取:106 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/main Sources [4,848 B]
获取:107 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/universe Sources [6,740 B]
获取:108 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/main amd64 Packages [7,280 B]
获取:109 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/main i386 Packages [7,288 B]
获取:110 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/main Translation-en [4,456 B]
获取:111 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
获取:112 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/main DEP-11 64x64 Icons [29 B]
获取:113 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [194 B]
获取:114 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/universe amd64 Packages [7,804 B]
获取:115 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/universe i386 Packages [7,488 B]
获取:116 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/universe Translation-en [4,184 B]
获取:117 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,104 B]
获取:118 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/universe DEP-11 64x64 Icons [1,789 B]
获取:119 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [216 B]
获取:120 http://mirrors.ustc.edu.cn/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B]
已下载 54.1 MB,耗时 5秒 (10.4 MB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
正在读取软件包列表… 完成

hmm@hmm-dev:/disk1/4418/tools$ sudo apt-get clean
hmm@hmm-dev:/disk1/4418/tools$ sudo apt-get update
命中:1 http://mirrors.ustc.edu.cn/ubuntu xenial InRelease
命中:2 http://mirrors.ustc.edu.cn/ubuntu xenial-security InRelease
命中:3 http://mirrors.ustc.edu.cn/ubuntu xenial-updates InRelease
命中:4 http://mirrors.ustc.edu.cn/ubuntu xenial-proposed InRelease
命中:5 http://mirrors.ustc.edu.cn/ubuntu xenial-backports InRelease
正在读取软件包列表… 完成

ref:
https://blog.csdn.net/q290994/article/details/80577711

你可能感兴趣的:(ubuntu)