修改Ubuntu源
时间:2021-04-15 15:25:49
收藏:0
阅读:24
获取本系统代号
# 获取本系统代号
lsb_release -c
-->Codename: bionic
-
备份源文件备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak -
修改源文件
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable -
更新源列表和软件包
sudo apt-get update sudo apt-get upgrade
原文:https://www.cnblogs.com/jiumo/p/14661901.html
评论(0)