这几天折腾ubuntu17.10镜像源,真是郁闷死了,总结一下自己找的镜像源地址:
1,清华大学镜像源
https://mirrors.tuna.tsinghua.edu.cn/
2,中科大镜像源(推荐)
https://mirrors.ustc.edu.cn/repogen/
3,北京大学镜像源
http://mirror.bjtu.edu.cn/cn/
另:要注意ubauntu17.10和17.04这两个版本,我之前就是安装Ubuntu17.10的iso,结果找的是17.04镜像源,
结果 sudo apt-get update 的时候,各种报错
root@sunybole-VirtualBox:/etc/apt/sources.list.d# apt update
忽略:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty InRelease
忽略:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates InRelease
忽略:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports InRelease
忽略:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security InRelease
忽略:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-proposed InRelease
错误:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty Release
404 Not Found [IP: 101.6.8.193 443]
错误:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates Release
404 Not Found [IP: 101.6.8.193 443]
错误:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports Release
404 Not Found [IP: 101.6.8.193 443]
错误:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security Release
404 Not Found [IP: 101.6.8.193 443]
错误:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-proposed Release
404 Not Found [IP: 101.6.8.193 443]
正在读取软件包列表... 完成
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-updates Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-backports Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-security Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu zesty-proposed Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
折腾到最后,终于的发现原来自己弄错了镜像源,改了Ubuntu17.10之后,就好了
root@sunybole-VirtualBox:/etc/apt# cat /etc/issue
Ubuntu 17.10 \n \l
root@sunybole-VirtualBox:/etc/apt# vi /etc/apt/sources.list
root@sunybole-VirtualBox:/etc/apt# sudo apt-get update
获取:1 https://mirrors.ustc.edu.cn/ubuntu artful InRelease [237 kB]
获取:2 https://mirrors.ustc.edu.cn/ubuntu artful-security InRelease [78.6 kB]
获取:3 https://mirrors.ustc.edu.cn/ubuntu artful-updates InRelease [78.6 kB]
获取:4 https://mirrors.ustc.edu.cn/ubuntu artful-backports InRelease [72.2 kB]
获取:5 https://mirrors.ustc.edu.cn/ubuntu artful/multiverse Sources [182 kB]
获取:6 https://mirrors.ustc.edu.cn/ubuntu artful/restricted Sources [5,392 B]
获取:7 https://mirrors.ustc.edu.cn/ubuntu artful/main Sources [849 kB]
获取:8 https://mirrors.ustc.edu.cn/ubuntu artful/universe Sources [8,721 kB]
获取:9 https://mirrors.ustc.edu.cn/ubuntu artful/main amd64 Packages [1,071 kB]
获取:10 https://mirrors.ustc.edu.cn/ubuntu artful/main i386 Packages [1,067 kB]
获取:11 https://mirrors.ustc.edu.cn/ubuntu artful/main Translation-zh_CN [74.1 kB]
获取:12 https://mirrors.ustc.edu.cn/ubuntu artful/main Translation-en [542 kB]
获取:13 https://mirrors.ustc.edu.cn/ubuntu artful/main amd64 DEP-11 Metadata [397 kB]
获取:14 https://mirrors.ustc.edu.cn/ubuntu artful/main DEP-11 64x64 Icons [263 kB]
获取:15 https://mirrors.ustc.edu.cn/ubuntu artful/restricted amd64 Packages [8,852 B]
获取:16 https://mirrors.ustc.edu.cn/ubuntu artful/restricted i386 Packages [8,876 B]
获取:17 https://mirrors.ustc.edu.cn/ubuntu artful/restricted Translation-zh_CN [1,188 B]
获取:18 https://mirrors.ustc.edu.cn/ubuntu artful/restricted Translation-en [2,788 B]
获取:19 https://mirrors.ustc.edu.cn/ubuntu artful/universe i386 Packages [8,066 kB]
获取:20 https://mirrors.ustc.edu.cn/ubuntu artful/universe amd64 Packages [8,103 kB]
获取:21 https://mirrors.ustc.edu.cn/ubuntu artful/universe Translation-zh_CN [175 kB]
获取:22 https://mirrors.ustc.edu.cn/ubuntu artful/universe Translation-en [4,789 kB]
获取:23 https://mirrors.ustc.edu.cn/ubuntu artful/universe amd64 DEP-11 Metadata [2,845 kB]
获取:24 https://mirrors.ustc.edu.cn/ubuntu artful/universe DEP-11 64x64 Icons [7,915 kB]
获取:25 https://mirrors.ustc.edu.cn/ubuntu artful/multiverse i386 Packages [143 kB]
获取:26 https://mirrors.ustc.edu.cn/ubuntu artful/multiverse amd64 Packages [150 kB]
获取:27 https://mirrors.ustc.edu.cn/ubuntu artful/multiverse Translation-en [108 kB]
获取:28 https://mirrors.ustc.edu.cn/ubuntu artful/multiverse Translation-zh_CN [4,768 B]
获取:29 https://mirrors.ustc.edu.cn/ubuntu artful/multiverse amd64 DEP-11 Metadata [43.8 kB]
获取:30 https://mirrors.ustc.edu.cn/ubuntu artful/multiverse DEP-11 64x64 Icons [207 kB]
获取:31 https://mirrors.ustc.edu.cn/ubuntu artful-security/main Sources [44.1 kB]
获取:32 https://mirrors.ustc.edu.cn/ubuntu artful-security/multiverse Sources [1,172 B]
获取:33 https://mirrors.ustc.edu.cn/ubuntu artful-security/restricted Sources [960 B]
获取:34 https://mirrors.ustc.edu.cn/ubuntu artful-security/universe Sources [11.0 kB]
获取:35 https://mirrors.ustc.edu.cn/ubuntu artful-security/main amd64 Packages [137 kB]
获取:36 https://mirrors.ustc.edu.cn/ubuntu artful-security/main i386 Packages [134 kB]
获取:37 https://mirrors.ustc.edu.cn/ubuntu artful-security/main Translation-en [59.8 kB]
获取:38 https://mirrors.ustc.edu.cn/ubuntu artful-security/main amd64 DEP-11 Metadata [17.2 kB]
获取:39 https://mirrors.ustc.edu.cn/ubuntu artful-security/main DEP-11 64x64 Icons [27.5 kB]
获取:40 https://mirrors.ustc.edu.cn/ubuntu artful-security/restricted amd64 Packages [2,192 B]
获取:41 https://mirrors.ustc.edu.cn/ubuntu artful-security/restricted i386 Packages [2,180 B]
获取:42 https://mirrors.ustc.edu.cn/ubuntu artful-security/restricted Translation-en [1,284 B]
获取:43 https://mirrors.ustc.edu.cn/ubuntu artful-security/universe amd64 Packages [46.3 kB]
获取:44 https://mirrors.ustc.edu.cn/ubuntu artful-security/universe i386 Packages [45.8 kB]
获取:45 https://mirrors.ustc.edu.cn/ubuntu artful-security/universe Translation-en [29.5 kB]
获取:46 https://mirrors.ustc.edu.cn/ubuntu artful-security/universe amd64 DEP-11 Metadata [11.3 kB]
获取:47 https://mirrors.ustc.edu.cn/ubuntu artful-security/universe DEP-11 64x64 Icons [12.4 kB]
获取:48 https://mirrors.ustc.edu.cn/ubuntu artful-security/multiverse amd64 Packages [1,828 B]
获取:49 https://mirrors.ustc.edu.cn/ubuntu artful-security/multiverse i386 Packages [1,980 B]
获取:50 https://mirrors.ustc.edu.cn/ubuntu artful-security/multiverse Translation-en [1,124 B]
获取:51 https://mirrors.ustc.edu.cn/ubuntu artful-updates/multiverse Sources [1,172 B]
获取:52 https://mirrors.ustc.edu.cn/ubuntu artful-updates/restricted Sources [960 B]
获取:53 https://mirrors.ustc.edu.cn/ubuntu artful-updates/main Sources [89.2 kB]
获取:54 https://mirrors.ustc.edu.cn/ubuntu artful-updates/universe Sources [26.0 kB]
获取:55 https://mirrors.ustc.edu.cn/ubuntu artful-updates/main i386 Packages [219 kB]
获取:56 https://mirrors.ustc.edu.cn/ubuntu artful-updates/main amd64 Packages [223 kB]
获取:57 https://mirrors.ustc.edu.cn/ubuntu artful-updates/main Translation-en [99.2 kB]
获取:58 https://mirrors.ustc.edu.cn/ubuntu artful-updates/main amd64 DEP-11 Metadata [83.4 kB]
获取:59 https://mirrors.ustc.edu.cn/ubuntu artful-updates/main DEP-11 64x64 Icons [54.0 kB]
获取:60 https://mirrors.ustc.edu.cn/ubuntu artful-updates/restricted i386 Packages [2,180 B]
获取:61 https://mirrors.ustc.edu.cn/ubuntu artful-updates/restricted amd64 Packages [2,192 B]
获取:62 https://mirrors.ustc.edu.cn/ubuntu artful-updates/restricted Translation-en [1,284 B]
获取:63 https://mirrors.ustc.edu.cn/ubuntu artful-updates/universe i386 Packages [90.0 kB]
获取:64 https://mirrors.ustc.edu.cn/ubuntu artful-updates/universe amd64 Packages [90.9 kB]
获取:65 https://mirrors.ustc.edu.cn/ubuntu artful-updates/universe Translation-en [52.1 kB]
获取:66 https://mirrors.ustc.edu.cn/ubuntu artful-updates/universe amd64 DEP-11 Metadata [55.4 kB]
获取:67 https://mirrors.ustc.edu.cn/ubuntu artful-updates/universe DEP-11 64x64 Icons [51.6 kB]
获取:68 https://mirrors.ustc.edu.cn/ubuntu artful-updates/multiverse i386 Packages [1,980 B]
获取:69 https://mirrors.ustc.edu.cn/ubuntu artful-updates/multiverse amd64 Packages [1,828 B]
获取:70 https://mirrors.ustc.edu.cn/ubuntu artful-updates/multiverse Translation-en [1,124 B]
获取:71 https://mirrors.ustc.edu.cn/ubuntu artful-backports/universe Sources [2,484 B]
获取:72 https://mirrors.ustc.edu.cn/ubuntu artful-backports/main Sources [1,192 B]
获取:73 https://mirrors.ustc.edu.cn/ubuntu artful-backports/main i386 Packages [1,512 B]
获取:74 https://mirrors.ustc.edu.cn/ubuntu artful-backports/main amd64 Packages [1,516 B]
获取:75 https://mirrors.ustc.edu.cn/ubuntu artful-backports/main Translation-en [668 B]
获取:76 https://mirrors.ustc.edu.cn/ubuntu artful-backports/universe amd64 Packages [3,856 B]
获取:77 https://mirrors.ustc.edu.cn/ubuntu artful-backports/universe i386 Packages [3,828 B]
获取:78 https://mirrors.ustc.edu.cn/ubuntu artful-backports/universe Translation-en [1,912 B]
获取:79 https://mirrors.ustc.edu.cn/ubuntu artful-backports/universe amd64 DEP-11 Metadata [4,700 B]
获取:80 https://mirrors.ustc.edu.cn/ubuntu artful-backports/universe DEP-11 64x64 Icons [2,717 B]
已下载 48.0 MB,耗时 28秒 (1,707 kB/s)
正在读取软件包列表... 完成
附:Ubuntu软件操作相关命令:
sudo apt-get update 更新源
sudo apt-get install package 安装包
sudo apt-get remove package 删除包
sudo apt-cache search package 搜索软件包
sudo apt-cache show package 获取包的相关信息,如说明、大小、版本等
sudo apt-get install package --reinstall 重新安装包
sudo apt-get -f install 修复安装
sudo apt-get remove package --purge 删除包,包括配置文件等
sudo apt-get build-dep package 安装相关的编译环境
sudo apt-get upgrade 更新已安装的包
sudo apt-get dist-upgrade 升级系统
sudo apt-cache depends package 了解使用该包依赖那些包
sudo apt-cache rdepends package 查看该包被哪些包依赖
sudo apt-get source package 下载该包的源代码
sudo apt-get clean && sudo apt-get autoclean 清理无用的包
sudo apt-get check 检查是否有损坏的依赖