0
点赞
收藏
分享

微信扫一扫

ubuntu 切换国内apt源


清华大学开源软件镜像站: ​​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 条评论