Ubuntu恢复官方默认源
国内云服务器基本配的自家源,有时候需要换回官方源。
备份现役源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_tenxun
修改sources.list配置文件:
sudo vim /etc/apt/sources.list
官方源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 partnerdeb 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
Ubuntu恢复官方默认源相关推荐
- ubuntu 20.04中sources.list文件恢复系统默认源
前言 ubuntu 20.04中sources.list文件恢复系统默认源 小白学习,误该后改不回来,找了很久才找到,做个记录 一.sources.list文件恢复系统默认源 1.进入编辑 sourc ...
- ubuntu 20.10 换源
ubuntu 20.10 换源 sudo gedit /etc/apt/sources.list ctrl c +ctrl v 阿里云 deb http://mirrors.aliyun.com/ub ...
- ubuntu服务器的软件源
1.什么是软件源? 源,在Ubuntu下,它相当于软件库,需要什么软件,只要记得正确的软件名就可以用命令安装: sudo apt-get install 软件名. 当你在使用了这个安装命令的时候,ap ...
- pip使用中科大源、清华源或修改默认源为中科大源、清华源、华为源
pip使用中科大源.清华源或修改默认源为中科大源.清华源.豆瓣源.华为源 pip 临时使用中科大源.清华源.豆瓣源 永久使用中科大源.清华源.豆瓣源 删除中科大源.清华源.豆瓣源 conda wind ...
- pip使用中科大源、清华源或修改默认源为中科大源、清华源
pip使用中科大源.清华源或修改默认源为中科大源.清华源 pip 临时使用中科大源.清华源 永久使用中科大源.清华源 删除中科大源.清华源 conda windows下 先查看默认源 conda 修改 ...
- Ubuntu 14.04.4官方默认更新源sources.list
Ubuntu 14.04.4官方默认更新源sources.list # deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (201 ...
- Ubuntu修改默认源为国内
修改默认源,官方源由于网络原因太慢,修改为国内源 #以阿里为例 vim /etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/ focal ...
- Ubuntu14.04和16.04官方默认更新源sources.list和第三方源推荐(干货!)
写在前面:笔者由于还在学校学习,学校没有开发给Linux用的上网客户端,所以只能用在windows系统中通过安装虚拟机运行linux比较方便,但没有外网,只有学校的教育网,所以我需要将ubuntu的默 ...
- 更换Ubuntu默认源为国内源
安装Ubuntu后,使用国外源太慢了,修改为国内源会快很多. 1.修改过程 1.1 备份 备份/etc/apt/sources.list,命令如下: sudo cp /etc/apt/sources. ...
- linux恢复设置文件夹,将.bashrc文件恢复到Ubuntu中的默认设置
以下介绍在Ubuntu系统中将.bashrc文件恢复默认设置的方法,如果你在Ubuntu系统中把.bashrc文件搞坏了就按下面的方法恢复bashrc文件. 背景 我有一个Ubuntu VM,我经常用 ...
最新文章
- 运维-系统架构师经验总结:
- Angular 2 DI系统中 函数forwardRef 的作用?
- cesium鼠标左键获取经纬度_效率达人们怎么充分利用鼠标提高效率?
- PCB电流和线宽的关系(通俗易懂)
- Doracle.jdbc.J2EE13Compliant=true
- 控制只读_用Python控制硬件44-四位半万用表UT61E
- python excel 提取特定行_Python之从Excel一列内提取数字
- 局域网内搭建Android SDK更新源
- poj-2393 Yogurt factory (贪心)
- 转]分享一个可以下载全球影像的网站(包括历史影像)
- 回溯法 - 递归 - n皇后问题 - 所有解
- python几种设计模式_Python七大原则,24种设计模式
- usaco Name That Number
- µC/OS-II Release Notes
- 百度android离线下载,离线宝app下载-百度离线宝 安卓版v1.0.0.0-PC6安卓网
- 使用高德地图做经纬度转换( 把GPS 转高德的经纬度 )
- NorFlash和NandFlash区别
- SSM+手机销售网站 毕业设计-附源码161043
- 数值计算练习 LU分解(杜里特尔和克洛特分解)
- 网盘(结合百度网盘/阿里网盘)