ubuntu更换软件安装源
1.首先是备份软件安装源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.更换软件安装源
sudo vim /etc/apt/sources.list
3.更新软件源缓存
sudo apt-get update
阿里开源镜像站
清华开源镜像站
下面的是阿里Ubuntu源
Ubuntu22.04
deb /ubuntu/ jammy main restricted universe multiversedeb-src /ubuntu/ jammy main restricted universe multiversedeb /ubuntu/ jammy-security main restricted universe multiversedeb-src /ubuntu/ jammy-security main restricted universe multiversedeb /ubuntu/ jammy-updates main restricted universe multiversedeb-src /ubuntu/ jammy-updates main restricted universe multiverse# deb /ubuntu/ jammy-proposed main restricted universe multiverse# deb-src /ubuntu/ jammy-proposed main restricted universe multiversedeb /ubuntu/ jammy-backports main restricted universe multiversedeb-src /ubuntu/ jammy-backports main restricted universe multiverse
Ubuntu20.04
deb /ubuntu/ focal main restricted universe multiversedeb-src /ubuntu/ focal main restricted universe multiversedeb /ubuntu/ focal-security main restricted universe multiversedeb-src /ubuntu/ focal-security main restricted universe multiversedeb /ubuntu/ focal-updates main restricted universe multiversedeb-src /ubuntu/ focal-updates main restricted universe multiversedeb /ubuntu/ focal-proposed main restricted universe multiversedeb-src /ubuntu/ focal-proposed main restricted universe multiversedeb /ubuntu/ focal-backports main restricted universe multiversedeb-src /ubuntu/ focal-backports main restricted universe multiverse
Ubuntu18.04
deb /ubuntu/ bionic main restricted universe multiversedeb-src /ubuntu/ bionic main restricted universe multiversedeb /ubuntu/ bionic-security main restricted universe multiversedeb-src /ubuntu/ bionic-security main restricted universe multiversedeb /ubuntu/ bionic-updates main restricted universe multiversedeb-src /ubuntu/ bionic-updates main restricted universe multiversedeb /ubuntu/ bionic-proposed main restricted universe multiversedeb-src /ubuntu/ bionic-proposed main restricted universe multiversedeb /ubuntu/ bionic-backports main restricted universe multiversedeb-src /ubuntu/ bionic-backports main restricted universe multiverse
Ubuntu16.04
deb /ubuntu/ xenial maindeb-src /ubuntu/ xenial maindeb /ubuntu/ xenial-updates maindeb-src /ubuntu/ xenial-updates maindeb /ubuntu/ xenial universedeb-src /ubuntu/ xenial universedeb /ubuntu/ xenial-updates universedeb-src /ubuntu/ xenial-updates universedeb /ubuntu/ xenial-security maindeb-src /ubuntu/ xenial-security maindeb /ubuntu/ xenial-security universedeb-src /ubuntu/ xenial-security universe