在Ubuntu中,使用“sudo apt-get install xxx”在线安装软件时,默认用的ubuntu官方源下载,如果感觉速度太慢的话,可以更换下载源,替换成国内的镜像源。这里以替换为清华的镜像源为例。
方法步骤
需要修改的是Ubuntu 的软件源配置文件是 /etc/apt/sources.list。
Step1:安全起见,备份/etc/apt/sources.list。
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
Step2:查询可用的镜像源网址。
这里以清华的镜像源为例。其网址为:https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/