安装ubuntu第一步:换掉源地址, 各种apt get install会比较快。
1 cd etc/apt
2 vim sources.list
3 里边内容删掉,换成如下:
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main
deb [arch=amd64] https://download.docker.com/linux/ubuntu loki stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu loki stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu loki stable4 sudo apt-get update
sudo apt-get upgrade
本文介绍如何更换Ubuntu系统的软件源以提高安装速度。通过替换默认的软件源为阿里云镜像,可以显著提升apt-get命令的执行效率。文章提供了具体步骤及配置文件内容。
824

被折叠的 条评论
为什么被折叠?



