网站运营
位置:首页>> 网站运营>> ubuntu20.04 LTS系统默认源sources.list文件的修改

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

作者:zj@zlab  发布时间:2023-11-02 20:34:36 

标签: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 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

0
投稿

猜你喜欢

  • 外链在SEO优化中占有很重要的地位,但是外链应该重质还是量?Google关键词排名分析从Google查看关键词“租车”排名(2010.01.
  • 关于链接的价值相对于其他链接策略,这是一个可以辩论的话题。并且毫无疑问,一个双向链接,到目前为止,价值是相互的。不过,如果做的正确,对等链接
  • 有一些问题常令用户困惑:在产品的功能上,各个厂商的描述十分雷同,一些“后起之秀”与知名品牌极其相似。面对这种情况,该如何鉴别?描述得十分类似
  • 虽然我们的网络在公开场合下自称是“开放”的互联网,但实际情况却不是这样的,例如前几天,已经有两个同事咨询过我,如何使用代理服务访问Faceb
  • 前言在和朋友打扑克的时候听到电视里飞出一句这样的话:“百度一下就行了” 抬头一看,原来是春晚里姜昆的
  • 查看了一下博客的链接,发现有一些在博客文章中的链接也被计算在友情链接在内,不太清楚它们会不会影响页面的权重,索性将这些都加上了”extern
  • 07年3月,当cn域名只要1元钱注册的时候,相信也是中国网站数量爆发式增长的时刻,但增长直接导致了个人站长投放最广泛的adsense单价下降
  • 前言Linux系统中有两种修复模式,一种是单用户模式,另一种是光盘修复模式。Linux系统的单用户模式有些类似Windows系统的安全模式,
  • 8月10日阿里妈妈广告平台发布后我就是申请了代码,投放了一段时间后,还是有些经验教训,这里与大家分享。第一: 及时查看广告购买情况,避免缺省
  • [今早在网友的QQ空间看到下面一则,就此转载过来,声明:我是搞.net的]某日,一女遇劫匪,颤抖曰:"俺是搞java的,刚毕业,工
  • cc攻击一到就有点兵临城下的感觉,正确的设置防护规则可以做到临危不乱,这里给出一个iptables对ip进行连接频率和并发限制,限制单ip连
  • Win2000操作系统的一个主要特色就是将IIS融入其内核之中,并提供一些用来配置和维护软件的向导工具,使构建一个Internet网站轻松易
  • 非常高兴鞭牛士邀请我和大家分享自己的经验,也感谢大家在周五晚上来听我讲一些网络编辑方面的东西。我简单介绍一下我的情况吧,我是93年毕业,毕业
  • windows系统安装虚拟机,常见的是利用VMware Workstation这款软件来进行安装。在未接触Docker之前,我一直通过这款软
  • 一般PID_MAX=0x8000(可改),因此进程号的最大值为0x7fff,即32767。进程号0-299保留给daemon进程。现在的内核
  • 设置虚拟机不能联网是很痛苦的,这里我就ubuntu的NAT上网问题就个人经验讲一下,其他的桥连接等没有使用就没有经验了。ubuntu版本:u
  • 门户通站长论坛自2008年4月8日正式上线以来,立即吸引了国内外众多站长的加盟和追捧,截止到今年2月份,门户通论坛的有效注册会员数已经达到1
  • Flv文件不能播放的原因有种种,最近遇到了“Flv文件在本地能显示,上传到服务器上不能播放”,解决流程如下:首先是检查网页中FLV相关文件上
  • 在这篇文章中以VMware14为例,Linux操作系统采用CentOS7进行讲解如何在虚拟机中安装Linux操作系统。一、选择创建新的虚拟机
  • 情人节来喽,动手做一张Silverlight贺卡送给她(他)吧。只须简单的几步,就可以在线完成贺卡定制。支持livespace/Flicke
手机版 网站运营 asp之家 www.aspxhome.com