潍坊国税局网站,王军霞为什么离婚,凡间圣人
---------------------------------------------------------
参考文章:https://www.jianshu.com/p/97c35d569aa3
---------------------------------------------------------
因为ubuntu自带的源服务器在国外,下载和更新软件的时候速度很慢,不稳定,所以需要将源更新为国内的源。国内的源比较多,常用的就是阿里的源。
1.备份原有源文件,方便在替换出问题时回滚
sudo cp /etc/apt/sources.list /etc/apt/source.list.bk
2.更改sources.list文件
vim /etc/apt/sources.list
替换里面的内容为
# 阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
这里需要注意的是不同的ubuntu发行版本对应的源也是不一样的,主要的区别在版本号
ubuntu 12.04 (lts)代号为precise。
ubuntu 14.04 (lts)代号为trusty。
ubuntu 15.04 代号为vivid。
ubuntu 15.10 代号为wily。
ubuntu 16.04 (lts)代号为xenial。
ubuntu 18.04 (lts)代号为bionic。
目前我的版本是18.04所以里面的版本号是bionic,如果是其他版本号直接替换里面的版本编号即可。
查看自己ubuntu的版本号:
lsb_release -c
3.更新源
sudo apt update
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论