Ubuntu 18.04换 清华源

前端之家收集整理的这篇文章主要介绍了Ubuntu 18.04换 清华源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

依次执行如下命令(使用清华源可以走ipv6)

1.首先需要使用root用户sudo-s输入root密码2.进行原来源的备份cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份 3.进行源列表的修改vi /etc/apt/sources.list #修改 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse 
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

4.查看是否已经修改 cat /etc/apt/sources.list 5.执行更新列表apt-get update #更新列表

猜你在找的Ubuntu相关文章