Linux Ubuntu 18.04 换源

在安装好Ubuntu后,你会发现软件下载安装速度非常慢,甚至会出错,因为Ubuntu官方的源在国内访问的速度非常慢,但是我们可以更改系统的源为国内的一些源来提高速度(国内各大网站的源会定期和官方的源进行同步更新)
换源步骤
1.打开虚拟终端
快捷键:alt + ctrl + t
2.进入etc/apt文件夹
cd /etc/apt
3.备份sources.list文件
sudo cp sources.list sources.list.bak
4.编辑sources.list文件
sudo vi sources.list

文件内未修改的官方源↓

#deb cdrom:[Ubuntu 18.04.2 LTS _Bionic Beaver_ - Release amd64 (20190210)]/ bionic main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT recei


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部