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

 更新时间:2020年08月23日 16:51:47   作者:zj@zlab  
这篇文章主要介绍了ubuntu20.04 LTS系统默认源sources.list文件的修改,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

如果不慎修改了source.list内容,导致一系列错误,建议恢复默认源文件。

sudo gedit /etc/apt/sources.list

然后把下面默认源内容复制进去

ubuntu20.LTS系统默认源sources.list文件内容

#deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted

# See help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb cn.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src cn.archive.ubuntu.com/ubuntu/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src cn.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 cn.archive.ubuntu.com/ubuntu/ focal universe
# deb-src cn.archive.ubuntu.com/ubuntu/ focal universe
deb cn.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src cn.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 cn.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src cn.archive.ubuntu.com/ubuntu/ focal multiverse
deb cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src cn.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 cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src cn.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 archive.canonical.com/ubuntu focal partner
# deb-src archive.canonical.com/ubuntu focal partner

deb security.ubuntu.com/ubuntu focal-security main restricted
# deb-src security.ubuntu.com/ubuntu focal-security main restricted
deb security.ubuntu.com/ubuntu focal-security universe
# deb-src security.ubuntu.com/ubuntu focal-security universe
deb security.ubuntu.com/ubuntu focal-security multiverse
# deb-src security.ubuntu.com/ubuntu focal-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

可以有效解决很多报错

sudo apt update

到此这篇关于ubuntu20.04 LTS系统默认源sources.list文件的修改的文章就介绍到这了,更多相关ubuntu20.04 LTS sources.list内容请搜索华域联盟以前的文章或继续浏览下面的相关文章希望大家以后多多支持华域联盟!

相关文章

  • Linux磁盘挂载、分区、扩容操作的实现方法

    Linux磁盘挂载、分区、扩容操作的实现方法

    这篇文章主要介绍了Linux磁盘挂载、分区、扩容操作的实现方法,详细的介绍了这些基础概念及其实现,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    2018-12-12

  • Linux echo文本处理命令的使用及示例

    Linux echo文本处理命令的使用及示例

    这篇文章主要介绍了Linux echo文本处理命令的使用及示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    2020-03-03

  • Deepin中安装与使用virtualenv的教程

    Deepin中安装与使用virtualenv的教程

    这篇文章主要介绍了Deepin中安装与使用virtualenv的教程,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下

    2020-02-02

  • Linux多线程锁属性设置方法

    Linux多线程锁属性设置方法

    下面小编就为大家带来一篇Linux多线程锁属性设置方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    2017-01-01

  • Linux的压缩和解压缩的方法总结

    Linux的压缩和解压缩的方法总结

    这篇文章主要介绍了Linux的压缩和解压缩的方法总结的相关资料,通过本文希望大家能掌握Linux 压缩和解压缩的知识,需要的朋友可以参考下

    2017-08-08

  • CentOS下采用Crontab实现PHP脚本定时任务

    CentOS下采用Crontab实现PHP脚本定时任务

    本篇文章主要介绍了CentOS下采用Crontab实现PHP脚本定时任务,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

    2017-05-05

  • 详解Ubuntu/CentOS下Apache多站点配置

    详解Ubuntu/CentOS下Apache多站点配置

    本篇文章主要介绍了Ubuntu/CentOS下Apache多站点配置,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    2017-05-05

  • win10系统下安装superset的步骤

    win10系统下安装superset的步骤

    这篇文章主要介绍了win10系统下安装superset的步骤,本文是基于python3.7 win10 64位下的环境安装,需要的朋友可以参考下

    2019-12-12

  • Ubuntu下Telnet服务器的配置方法

    Ubuntu下Telnet服务器的配置方法

    这篇文章主要介绍了Ubuntu下Telnet服务器的配置方法的相关资料,非常不错,具有参考借鉴价值,需要的朋友可以参考下

    2016-11-11

  • 在Linux操作系统中修改环境变量的方法

    在Linux操作系统中修改环境变量的方法

    在Linux操作系统中,有时候跟着教程安装了一些软件,安装成功后,很高兴的准备运行该软件相应命令,但是偶尔会遇到”Command not found…“的提示。原因是因为你安装的软件需要设置环境变量才能运行。接下来跟着小编一起学习在Linux操作系统中修改环境变量的方法。

    2015-08-08

最新评论

声明:本站(华域联盟www.cnhackhy.com)所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。