首页 >系统教程 >LINUX >如何为Ubuntu选择速度最快的更新源:图文教程

如何为Ubuntu选择速度最快的更新源:图文教程

王林
王林转载
2024-01-05 10:29:491451浏览

给ubuntu选择最快的更新源

1、打开设置》》软件和更新,如下图

ubuntu怎么选择最快的更新源? ubuntu更改最快的更新源的图文教程

2、下载自:下拉菜单,选择其他站点

ubuntu怎么选择最快的更新源? ubuntu更改最快的更新源的图文教程

3、你可以选择最佳服务器,也可以指定你满意的服务器。选择之后要求输入密码

ubuntu怎么选择最快的更新源? ubuntu更改最快的更新源的图文教程

4、选择关闭,之后会重新自动执行更新命令sudo apt-get update),更新完成

ubuntu怎么选择最快的更新源? ubuntu更改最快的更新源的图文教程

安装Ubuntu18.04后,使用国外源太慢了,修改为国内源会快很多。

修改阿里源为Ubuntu 18.04默认的源

备份/etc/apt/sources.list
#备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak

在/etc/apt/sources.list文件前面添加如下条目

#添加阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

最后执行如下命令更新源

##更新
sudo apt-get update
sudo apt-get upgrade

另外其他几个国内源如下:
中科大源

##中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

163源

##163源
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

清华源

##清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生主受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生主受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates 主要受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates 主要受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports 主要受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports 主要受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security 主要受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security 主要受限宇宙多元宇宙
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生提出的主要受限宇宙多元宇宙
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ 仿生提出的主要受限宇宙多元宇宙

相关推荐:

ubuntu16.04编辑器vi如何使用?

ubuntu16.04系统怎么配置顶部面板?

Ubuntu系统中怎么卸载Sublime Text3?

以上是如何为Ubuntu选择速度最快的更新源:图文教程的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文转载于:jb51.net。如有侵权,请联系admin@php.cn删除