当前位置:   article > 正文

ubuntu更换APT软件镜像源_ubuntu 22 更换apt源

ubuntu 22 更换apt源

之前试过阿里的镜像源,但是因为有些问题不好用,现在用的是以下镜像源。

  1. #打开编辑Apt镜像源配置文件
  2. sudo vim sources.list
  3. #将原来的配置注释掉,添加新的配置
  4. deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
  5. deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
  6. deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
  7. deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
  8. #确认保存就好了

这边要注意以下自己的ubuntu版本适合什么镜像源

  1. # 查看系统信息
  2. lsb_release -a

如果codename是jammy,则需要使用jammy的镜像源,如下

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/256005
推荐阅读
相关标签
  

闽ICP备14008679号