Ubuntu 18.04 修改国内源

默认是官方源太慢了

#   备份默认的源配置文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

#   编辑源配置文件
sudo vim /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

版权声明:
作者:Akiraka
链接:https://www.akiraka.net/linux/ubuntu/34.html
来源:Akiraka
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
海报
Ubuntu 18.04 修改国内源
默认是官方源太慢了 # 备份默认的源配置文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak # 编辑源配置文件 sudo vim /etc/apt/sources.li……
<<上一篇
下一篇>>
文章目录
关闭
目 录