ubuntu 切换国内apt源

阅读 139

2022-10-17


清华大学开源软件镜像站: ​​https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/​​

# apt-get配置文件所在的目录为/etc/apt 首先先备份
cd /etc/apt
sudo cp sources.list sources.list.bak
vim sources.list

# 将原内容删除,替换为新的配置内容

# 更新源,使配置生效
sudo apt-get update

# 然后可以使用sudo apt-get install命令进行安装


精彩评论(0)

0 0 举报