ubuntu配置下载源

下载源

  1. 阿里下载源
    https://mirrors.aliyun.com/ubuntu
  2. 清华下载源
    https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
  3. 东北大学
    https://mirror.neu.edu.cn/ubuntu/
  4. 中科大
    https://mirrors.ustc.edu.cn/ubuntu/

修改流程

cp /etc/apt/sources.list /etc/apt/sourses.list.backup
Source=https://mirrors.aliyun.com/ubuntu
echo "
deb $Source $(lsb_release -sc) main multiverse restricted universe
deb $Source $(lsb_release -sc)-updates main multiverse restricted universe
deb $Source $(lsb_release -sc)-security main multiverse restricted universe
deb $Source $(lsb_release -sc)-proposed main multiverse restricted universe
deb $Source $(lsb_release -sc)-backports main multiverse restricted universe
deb-src $Source $(lsb_release -sc) main multiverse restricted universe
deb-src $Source $(lsb_release -sc)-updates main multiverse restricted universe
deb-src $Source $(lsb_release -sc)-security main multiverse restricted universe
deb-src $Source $(lsb_release -sc)-proposed main multiverse restricted universe
deb-src $Source $(lsb_release -sc)-backports main multiverse restricted universe" > /etc/apt/sources.list
apt update

相关链接

posted @ 2020-08-10 11:45  benny1  阅读(940)  评论(0编辑  收藏  举报