软件源配置文件
Ubuntu 的软件源配置文件是/etc/apt/sources.list
。
换源
使用以下命令查看Ubuntu版本:
cat /proc/version
使用以下命令将/etc/apt/sources.list文件的内容替换为清华软件源镜像的地址,即可使用 TUNA 的软件源镜像。
sudo gedit /etc/apt/sources.list
清华软件源镜像
清华软件源镜像地址:Ubuntu | 清华大学开源软件镜像站
16.04LTS
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna./ubuntu/ xenial main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ xenial main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ xenial-updates main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ xenial-updates main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ xenial-backports main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ xenial-backports main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ xenial-security main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ xenial-security main restricted universe multiverse# 预发布软件源,不建议启用# deb https://mirrors.tuna./ubuntu/ xenial-proposed main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ xenial-proposed main restricted universe multiverse
18.04LTS
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna./ubuntu/ bionic main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ bionic main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ bionic-updates main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ bionic-updates main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ bionic-backports main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ bionic-backports main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ bionic-security main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ bionic-security main restricted universe multiverse# 预发布软件源,不建议启用# deb https://mirrors.tuna./ubuntu/ bionic-proposed main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ bionic-proposed main restricted universe multiverse
20.04LTS
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb https://mirrors.tuna./ubuntu/ focal main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ focal main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ focal-updates main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ focal-updates main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ focal-backports main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ focal-backports main restricted universe multiversedeb https://mirrors.tuna./ubuntu/ focal-security main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ focal-security main restricted universe multiverse# 预发布软件源,不建议启用# deb https://mirrors.tuna./ubuntu/ focal-proposed main restricted universe multiverse# deb-src https://mirrors.tuna./ubuntu/ focal-proposed main restricted universe multiverse