ubuntu使用vi编辑器批量替换软件源

替换成清华大学的源,按冒号,然后输入以下代码,把ports.ubuntu.com域名换成mirrors.tuna.tsinghua.edu.cn

%s/ports.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g

你可能感兴趣的:(ubuntu,linux,运维)