• Ubuntu18.04更改镜像源(网易,阿里,清华,中科大,浙大)


    一,备份原来的源(选做)

    sudo cp /etc/apt/sources.list /etc/apt/sources_init.list

    二,更换源

    sudo gedit /etc/apt/sources.list

    删除原来内容改为新的镜像源

    1,清华源

    1. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
    2. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
    3. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    4. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    5. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    6. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    7. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    8. # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

    2,阿里源

    1. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    2. deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    3. deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    4. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    5. deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    6. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    7. deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    8. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    9. deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    10. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

    3,网易源

    1. deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    2. deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    3. deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    4. deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    5. deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    6. deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    7. deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    8. deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    9. deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    10. deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

    4,中科大源

    1. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
    2. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
    3. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    4. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    5. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    6. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    7. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    8. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    9. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    10. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

    5,浙江大学源

    1. deb http://mirrors.zju.edu.cn/ubuntu bionic main universe restricted multiverse
    2. deb http://mirrors.zju.edu.cn/ubuntu bionic-security main universe restricted multiverse
    3. deb http://mirrors.zju.edu.cn/ubuntu bionic-updates main universe restricted multiverse
    4. deb http://mirrors.zju.edu.cn/ubuntu bionic-backports main universe restricted multiverse
    5. deb-src http://mirrors.zju.edu.cn/ubuntu bionic main universe restricted multiverse
    6. deb-src http://mirrors.zju.edu.cn/ubuntu bionic-security main universe restricted multiverse
    7. deb-src http://mirrors.zju.edu.cn/ubuntu bionic-updates main universe restricted multiverse
    8. deb-src http://mirrors.zju.edu.cn/ubuntu bionic-backports main universe restricted multiverse

    三,更新

    sudo apt-get update

     源来网,侵联删。

  • 相关阅读:
    百度飞桨(PaddlePaddle)- 张量(Tensor)
    redis
    【OpenCV实现图像:OpenCV利用Python创作热力图】
    基于Java Web的在线教学质量评价系统的设计与实现
    Webpack干货系列 | 在 Webpack 5 集成 ESLint 的方法
    如何利用kakaoTalk进行营销?
    苹果所有设备参数大全
    分类预测 | Matlab实现基于PSO-SDAE粒子群优化算法优化堆叠去噪自编码器的数据分类预测
    Pytorch---空间特征金字塔SPP模块的实现
    51种企业应用架构模式详解
  • 原文地址:https://blog.csdn.net/MaGuangming001/article/details/132629939