ubuntu20.04 LTS系统默认源sources.list文件的修改
作者:zj@zlab 时间:2023-11-02 20:34:36
如果不慎修改了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 http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://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 http://cn.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal universe
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://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 http://cn.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://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 http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://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 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
# 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
来源:https://blog.csdn.net/zlabx/article/details/107785417
标签:ubuntu20.04,LTS,sources.list


猜你喜欢
动态URL的搜索引擎问题与优化
2008-01-11 13:59:00
NTFS格式对躲过FSO木马的侵害有帮助
2010-08-15 18:28:00
微软证实下载升级版Windows 7安装存在问题
2009-10-24 09:48:00
提升网站利润10大途径
2007-09-05 19:36:00
Windows操作系统组策略应用全攻略(1)
2010-05-31 19:09:00
WordPress3.2.1测试版发布 修复部分兼容问题
2011-07-13 19:34:43
IIS部署asp.net报404错误的解决方法
2023-11-03 08:04:53
Centos7.5配置IP地址的实现
2023-08-21 22:49:15

Stimator:评估您的网站/博客的价值
2009-03-16 18:10:00

CentOs 7.3中搭建RabbitMQ 3.6单机多实例服务的步骤与使用
2021-08-27 01:56:56

Google AdSense优化之独孤九式
2007-08-15 16:01:00
Exchange服务器的通信端口管理
2010-03-03 13:58:00
用docker运行postgreSQL的方法步骤
2023-09-01 13:57:12
GoDaddy Backorder域名抢注图文教程
2010-03-28 08:19:00

Exchange 2003 设计与体系结构 (1)
2010-03-08 19:05:00
新网互联确认DNS解析服务器遭受恶意攻击
2009-06-20 10:36:00
新手垃圾站一个月做到日3万IP实用攻略
2008-10-18 15:07:00
百度越来越像站内搜索引擎了
2009-02-12 12:34:00

写给新人Google排名知识
2007-08-10 17:14:00
dede编辑器Fckeditor引用样式的修改
2009-12-20 18:00:00