deepin更换软件源命令
Tofloor
poster avatar
deepineasyo
deepin
2020-02-16 20:49
Author
安装好deepin系统后第一件事,就是切换更快的软件源,国内上海交大镜像速度很快,中科大镜像的也不错。打开终端,输入一条命令解决问题。

sudo sed -i 's/packages.deepin.com/ftp.sjtu.edu.cn/' /etc/apt/sources.list


sed查找替换命令,-i 将结果写回到文件,没有-i只会显示到屏幕,不会将替换结果写回,s/源字符串/目标字符/  

Reply Favorite View the author
All Replies
avatar
superendermansm
deepin
2020-02-16 22:29
#1
sudo dedit /etc/apt/sources.list手动改吧
Reply View the author
avatar
Feng Yu
deepin
2020-02-17 00:51
#2
不需要,在设置中切换镜像就行了,你看终端的输出,一样被重定向了
Reply View the author
avatar
tcy13721136894
deepin
2020-02-17 16:57
#3
https://bbs.deepin.org/post/189019
不需要,在设置中切换镜像就行了,你看终端的输出,一样被重定向了

Reply View the author
avatar
呆了个呆
deepin
2020-02-18 01:01
#4
https://bbs.deepin.org/post/189019
这比在设置中更改有什么高明之处?

更专业,更牛x
Reply View the author