UBUNTU 配置国内APT-GET更新源

Ubuntu 下载软件速度有点慢,因为默认的是从国外下载软件,那就更换到国内比较好的快速更新源(就是这些软件所在的服务器),一般直接百度Ubuntu更新源就能出来一大堆,这时候最好是找和自己Ubuntu版本一致的更新源,我的Ubuntu版本是,下面是我找到的一个比较好的更新源。

1.寻找国内镜像源

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/     清华大学的源

2.配置source list源

sources.list系统自带的,源是来Ubuntu的官网!安装包比较慢,所以最好切换成国内的

linuxidc.com@ubuntu:~$ cd /etc/apt
linuxidc.com@ubuntu:/etc/apt$ sudo cp sources.list sources.list.bak
linuxidc.com@ubuntu:/etc/apt$ vim sources.list

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

3.更新源

linuxidc.com@ubuntu:/etc/apt$ sudo apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
命中:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease
命中:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease
命中:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease
正在读取软件包列表… 完成
标签:Ubuntu 发布于:2019-10-16 01:01:24