咔叽游戏

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 388|回复: 0

[Linux] ubuntu20.04 LTS系统默认源sources.list文件的修改

[复制链接]
  • TA的每日心情
    无聊
    2019-5-27 08:20
  • 签到天数: 4 天

    [LV.2]圆转纯熟

    发表于 2020-10-4 18:04:01 | 显示全部楼层 |阅读模式
    如果不慎修改了source.list内容,导致一系列错误,建议恢复默认源文件。
    1. sudo gedit /etc/apt/sources.list
    复制代码
    然后把下面默认源内容复制进去
    ubuntu20.LTS系统默认源sources.list文件内容
    1. #deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted
    2. # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    3. # newer versions of the distribution.
    4. deb http://cn.archive.ubuntu.com/ubuntu/ focal main restricted
    5. # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal main restricted
    6. ## Major bug fix updates produced after the final release of the
    7. ## distribution.
    8. deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted
    9. # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted
    10. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    11. ## team. Also, please note that software in universe WILL NOT receive any
    12. ## review or updates from the Ubuntu security team.
    13. deb http://cn.archive.ubuntu.com/ubuntu/ focal universe
    14. # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal universe
    15. deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates universe
    16. # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates universe
    17. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    18. ## team, and may not be under a free licence. Please satisfy yourself as to
    19. ## your rights to use the software. Also, please note that software in
    20. ## multiverse WILL NOT receive any review or updates from the Ubuntu
    21. ## security team.
    22. deb http://cn.archive.ubuntu.com/ubuntu/ focal multiverse
    23. # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal multiverse
    24. deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse
    25. # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse
    26. ## N.B. software from this repository may not have been tested as
    27. ## extensively as that contained in the main release, although it includes
    28. ## newer versions of some applications which may provide useful features.
    29. ## Also, please note that software in backports WILL NOT receive any review
    30. ## or updates from the Ubuntu security team.
    31. deb http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    32. # deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    33. ## Uncomment the following two lines to add software from Canonical's
    34. ## 'partner' repository.
    35. ## This software is not part of Ubuntu, but is offered by Canonical and the
    36. ## respective vendors as a service to Ubuntu users.
    37. # deb http://archive.canonical.com/ubuntu focal partner
    38. # deb-src http://archive.canonical.com/ubuntu focal partner
    39. deb http://security.ubuntu.com/ubuntu focal-security main restricted
    40. # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
    41. deb http://security.ubuntu.com/ubuntu focal-security universe
    42. # deb-src http://security.ubuntu.com/ubuntu focal-security universe
    43. deb http://security.ubuntu.com/ubuntu focal-security multiverse
    44. # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
    45. # This system was installed using small removable media
    46. # (e.g. netinst, live or single CD). The matching "deb cdrom"
    47. # entries were disabled at the end of the installation process.
    48. # For information about how to configure apt package sources,
    49. # see the sources.list(5) manual.
    复制代码
    可以有效解决很多报错
    1. sudo apt update
    复制代码
    到此这篇关于ubuntu20.04 LTS系统默认源sources.list文件的修改的文章就介绍到这了,更多相关ubuntu20.04 LTS sources.list内容请搜索咔叽论坛以前的文章或继续浏览下面的相关文章希望大家以后多多支持咔叽论坛!

    原文地址:https://www.jb51.net/article/193935.htm

    QQ|免责声明|小黑屋|手机版|Archiver|咔叽游戏

    GMT+8, 2024-3-28 19:23

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表