jzztf / wiki

wiki
https://jzztf.github.io
Other
1 stars 0 forks source link

linux-更换源 #5

Open jzztf opened 6 years ago

jzztf commented 6 years ago

参考: http://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8

修改sources.list

$ cd /etc/apt/
$ cp sources.list sources.list_backup
$ sudo vim source.list
# vim强制退出使用"esc ==> :q!"
# vim替换操作:
# esc ==> :%s/archive/cn.archive/g
# 或者%s/archive.ubuntu.com/mirrors.163.com/g
$ sudo apt-get update
# 更新