• [ubuntu]ubuntu22.04默认源和国内源


    sudo vi /etc/apt/sources.list
        请选择和系统对应的版本,查看系统版本命令:
        lsb_release -a

         Distributor ID: Ubuntu
         Description:    Ubuntu 22.04 LTS
         Release:        22.04
         Codename:       jammy

    Ubuntu不同的版本配置的有区别

    每个版本的代号是不一样的,比如:

    Ubuntu 15.04 代号为:vivid

    Ubuntu 16.04代号为:xenial

    Ubuntu 17.04代号为:zesty

    Ubuntu 18.04代号为:bionic

    Ubuntu 19.04代号为:disco

    Ubuntu 20.04 代号为:focal 

    Ubuntu 22.04 代号为:jammy (果酱的)

        国内的更新源有多个,几个大互联网公司的源都比较稳定,没什么差别。
        这里整理的比较主流的、常用的几个LTS版本的更新源。

    sources.list内容
    1. Ubuntu 23.04 (lunar)更新源

    # aliyun
    deb http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse
    # tsinghua
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
    # 中科大
    deb https://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
    # 163
    deb http://mirrors.163.com/ubuntu/ lunar main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ lunar-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ lunar-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ lunar-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ lunar-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ lunar main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ lunar-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ lunar-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ lunar-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ lunar-backports main restricted universe multiverse
    2. Ubuntu 22.04 (jammy)更新源

    #默认源

    1. # See UpgradeNotes - Community Help Wiki for how to upgrade to
    2. # newer versions of the distribution.
    3. deb Index of /ubuntu jammy main restricted
    4. # deb-src Index of /ubuntu jammy main restricted
    5. ## Major bug fix updates produced after the final release of the
    6. ## distribution.
    7. deb Index of /ubuntu jammy-updates main restricted
    8. # deb-src Index of /ubuntu jammy-updates main restricted
    9. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    10. ## team. Also, please note that software in universe WILL NOT receive any
    11. ## review or updates from the Ubuntu security team.
    12. deb Index of /ubuntu jammy universe
    13. # deb-src Index of /ubuntu jammy universe
    14. deb Index of /ubuntu jammy-updates universe
    15. # deb-src Index of /ubuntu jammy-updates universe
    16. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    17. ## team, and may not be under a free licence. Please satisfy yourself as to
    18. ## your rights to use the software. Also, please note that software in
    19. ## multiverse WILL NOT receive any review or updates from the Ubuntu
    20. ## security team.
    21. deb Index of /ubuntu jammy multiverse
    22. # deb-src Index of /ubuntu jammy multiverse
    23. deb Index of /ubuntu jammy-updates multiverse
    24. # deb-src Index of /ubuntu jammy-updates multiverse
    25. ## N.B. software from this repository may not have been tested as
    26. ## extensively as that contained in the main release, although it includes
    27. ## newer versions of some applications which may provide useful features.
    28. ## Also, please note that software in backports WILL NOT receive any review
    29. ## or updates from the Ubuntu security team.
    30. deb Index of /ubuntu jammy-backports main restricted universe multiverse
    31. # deb-src Index of /ubuntu jammy-backports main restricted universe multiverse
    32. deb Index of /ubuntu jammy-security main restricted
    33. # deb-src Index of /ubuntu jammy-security main restricted
    34. deb Index of /ubuntu jammy-security universe
    35. # deb-src Index of /ubuntu jammy-security universe
    36. deb Index of /ubuntu jammy-security multiverse
    37. # deb-src Index of /ubuntu jammy-security multiverse

    # aliyun
    deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
    # tsinghua
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
    # 中科大
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
    # 163
    deb http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
       

    3. ubuntu 20.04(focal) 更新源

    # aliyun
    deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
    # 中科大
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
    # tsinghua
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
    # 163, netease
    deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
    # Ubuntu 20.04自带sources.list
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://archive.ubuntu.com/ubuntu/ focal main restricted
    # deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted
     
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
    # deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
     
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://archive.ubuntu.com/ubuntu/ focal universe
    # deb-src http://archive.ubuntu.com/ubuntu/ focal universe
    deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
    # deb-src http://archive.ubuntu.com/ubuntu/ focal-updates universe
     
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://archive.ubuntu.com/ubuntu/ focal multiverse
    # deb-src http://archive.ubuntu.com/ubuntu/ focal multiverse
    deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
    # deb-src http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
     
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
     
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu focal partner
    # deb-src http://archive.canonical.com/ubuntu focal partner
    deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
    # deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted
    deb http://security.ubuntu.com/ubuntu/ focal-security universe
    # deb-src http://security.ubuntu.com/ubuntu/ focal-security universe
    deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
    # deb-src http://security.ubuntu.com/ubuntu/ focal-security multiverse
     

    4. ubuntu 18.04(bionic) 更新源

    # aliyun
    deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
     

    # 中科大
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    # 163
    deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
       

    # tsinghua university
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricte

  • 相关阅读:
    awvs 中低危漏洞
    Mac os 安装homebrew
    UE5——源码阅读——3——引擎退出
    Ansible概述以及模块
    定日镜系统风致振动特性检测系统研究
    android windows管理(一)
    《windows核心编程》第2章 UNICODE字符
    基于长短期神经网络铜期货价格预测,基于LSTM的铜期货价格预测,LSTM的详细原理
    如何使用idea快速克隆web项目,并且使其能访问jsp页面
    C8051F020 SMBus一直处于busy状态解决办法
  • 原文地址:https://blog.csdn.net/FL1623863129/article/details/134229831