2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > Ubuntu更换软件源为清华源

Ubuntu更换软件源为清华源

时间:2021-12-25 13:28:10

相关推荐

Ubuntu更换软件源为清华源

1. 先将默认的软件源备份

sudo cp /etc/apt/sources.list/etc/apt/sources.list.bak

2. 更换软件源

sudo gedit/etc/apt/sources.list

将以下内容覆盖原来的

# 默认注释了源码镜像以提高 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

或者用阿里云的

deb /ubuntu/ bionic main restricted universe multiversedeb /ubuntu/ bionic-security main restricted universe multiversedeb /ubuntu/ bionic-updates main restricted universe multiversedeb /ubuntu/ bionic-proposed main restricted universe multiversedeb /ubuntu/ bionic-backports main restricted universe multiversedeb-src /ubuntu/ bionic main restricted universe multiversedeb-src /ubuntu/ bionic-security main restricted universe multiversedeb-src /ubuntu/ bionic-updates main restricted universe multiversedeb-src /ubuntu/ bionic-proposed main restricted universe multiversedeb-src /ubuntu/ bionic-backports main restricted universe multiverse

3. 更新源和软件

sudo apt-get update //更新源

sudo apt-get upgrade //更新软件

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。