方法1:进入/etc/apt文件夹,如果有备份过,直接将备份文件sources.list.bak文件的后缀名.bak删去,使用普通的文本编辑器或者vim打开,就是原来的默认源。

方法2:直接复制下面的文本:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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://ports.ubuntu.com/ubuntu-ports/ bionic universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic universe
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-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 bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partnerdeb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse

保存后别忘记更新配置:

sudo apt-get install update
sudo apt-get install upgrade

Ubuntu18.04 默认源 恢复默认源 恢复备份源相关推荐

  1. Ubuntu18.04下Azure Kinect DK 调试(SDK源码+ROS)无比详细踩坑教程

    Ubuntu18.04下Azure Kinect DK 调试(SDK源码+ROS) 一.SDK源码下载及安装 1.1 安装lib4a.dev 包 1.2 文件拷贝 1.3 下载官方SDK源码 1.4 ...

  2. Ubuntu18.04中如何更换为清华的镜像源

    Ubuntu 的软件源配置文件是 /etc/apt/sources.list.在修改之前,先将系统自带的该文件做个备份,将该文件替换为清华源官网提供的内容,即可使用 TUNA 的软件源镜像.最重要的是 ...

  3. Ubuntu18.04 设置Speaker为默认播放器

    在终端输入 vi /etc/pulse/default.pa 注释: #load-module module-switch-on-port-available #load-module module- ...

  4. ubuntu18.04(Bionic Beave)更换国内163源

    先备份 sudo cp /etc/apt/sources.list /etc/apt/sourses_init.list vim编辑sources.list,注释里面所有内容,或者删掉也行 sudo ...

  5. Ubuntu18.04下更改apt源为阿里云源

    为了下载更方便,速度更快,我们往往在使用Linux系列系统时修改apt源为国内的源,一般选择有阿里云,豆瓣之类的,下面简单说下如何更改为阿里云源. 1.复制源文件备份,以防万一 我们要修改的文件是so ...

  6. ubuntu18.04 64位+GTX1070max-q安装CUDA10.0+CUDNN7.4.2+安装Anaconda3.5.2+PyTorch1.4+torchvision0.5

    文章目录 安装Ubuntu18.04系统 安装nvidia显卡驱动 Ubuntu18.04系统更换国内软件源.显示亮度条.解决ubuntu与win10系统时间差8小时.安装intelligent pi ...

  7. Ubuntu18.04安装教程——超详细的图文教程

    电脑配置: 名称:Lenovo 拯救者Y7000P 处理器:i7 - 10750H 内存:32G 固态:1TB 显卡:RTX2060 - 6G 一.准备工作 本文以 Ubuntu18.04.4 安装为 ...

  8. ubuntu18.04安装docker-ce国内源

    ubuntu18.04安装docker-ce国内源 修改国内加速源 禁用防火墙 永久禁用swap 开启内核配置 配置ipvs 安装依赖包 安装GPG证书 写入docker源 安装docker-ce 配 ...

  9. 环境配置问题(ubuntu18.04,Ros初始化,无线网卡,输入法)

    实习期间看到很多人都在环境配置方面遇到问题,都比较费时间,于是记录一些碰到的问题的解决方法,主要包括ros的初始化问题,无线网卡驱动问题,以及拼音输入失效等问题,后期想起来再做补充吧. ubuntu1 ...

  10. Ubuntu18.04系统配置全记录——看完这一篇就够了

    本博客用来记录自己安装完Ubuntu18.04系统之后所做的各种配置工作,基本上覆盖了很多大家熟悉的操作,走完整个流程之后,基本上就能得心应手使用Ubuntu18.04系统了. 介绍 Ubuntu18 ...

最新文章

  1. android SQLite 批量插入数据慢的解决方案 (针对于不同的android api 版本)
  2. Python爬虫开发:https请求加密问题解决
  3. Shell脚本调试工具set
  4. java中索引超出怎么办_Java-字符串索引超出范围异常“字符串索引超出范围”
  5. 云服务器镜像麻烦吗_云服务器的镜像功能有什么作用?
  6. iOS 9.0以后支持http协议
  7. java实现串口ymodem 传输文件_活久见!Jmeter也能实现文件传输和发送邮件啦
  8. Hadoop模式介绍-独立,伪分布式,分布式
  9. 论文阅读课1-Attention Guided Graph Convolutional Networks for Relation Extraction(关系抽取,图卷积,ACL2019,n元)
  10. 自学前端,一天学4个小时左右,能到什么水平?
  11. 中国官员:大数据产业发展需全球携手
  12. linux环境下python 库模块安装
  13. zookeeper集群节点热扩容和迁移详解
  14. c++11支持类数据成员的初始化
  15. 百万数据插入 java sql mysql
  16. 中国单体酒店联盟沃家商务酒店(长沙)简介
  17. Activity启动模式之SingleTask
  18. 服务器状态 fadein,aria2-BT服务器地址的可用trackers列表(已接手)
  19. logrus固定当天日志文件名称源码修改
  20. 在网站的地址栏中的显示个性图标

热门文章

  1. 黑盒测试和白盒测试是软件测试的两种基本方法,请分别说明各自的优点和缺点!
  2. 净现值、折现率、内部收益率、投资利润
  3. element-ui中轮播图自适应图片高度
  4. 8086汇编4位bcd码_[走近FPGA]之二进制转BCD码
  5. vscode全背景图设置技巧
  6. java编译与反编译
  7. 2014阿里校园招聘软件工程师笔试题(9.22武汉站)
  8. Device Orientation——设备方向
  9. python3 ACM模式的输入输出例子教学
  10. 【Luogu】P2465山贼集团(树形状压DP)