阿里更新源

Posted 本名边境

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了阿里更新源相关的知识,希望对你有一定的参考价值。

1.备份ubuntu源sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2.打开更新源列表 sudo gedit /etc/apt/source.list

3.将下面的更新源复制 替换 source.list列表中的内容

4.更新源    sudo apt-get update

有效更新源↓↓↓

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

以上是关于阿里更新源的主要内容,如果未能解决你的问题,请参考以下文章

centos8将yum源更换为国内(阿里云)源

怎样更新centos6.5 yum源

Ubuntu更新源

设置阿里云pip源,加速pip更新速度

Centos7更新阿里yum源

Ubuntu 22.0420.0418.04国内源--阿里云中科大163清华更新源(sources.list)