ubuntu 更换国内镜像

  1. 备份

     cd 	/etc/apt
     cp sources.list sources.list.bakup
    
  2. 修改源为清华源

     sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' sources.list
    
  3. 更新软件源

     apt-get update
    
  4. 其他源如下:

    mirrors.ustc.edu.cn 中科大
    mirrors.163.com 163
    mirrors.aliyun.com 阿里云

猜你喜欢

转载自blog.csdn.net/qq_50247813/article/details/134735351