1.备份系统自带源
mv /etc/apt/sources.list /etc/apt/sources.list.bak

2.修改/etc/apt/sources.list文件,加入想替换的国内源,我使用的是阿里云的源
vi /etc/apt/sources.list

##阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

##163源
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

##清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

##中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

3.更新生效
apt-get update
apt-get upgrade

ubuntu20.04 apt-get换国内源 阿里源 163源 清华源 中科大源相关推荐

  1. 国内镜像源(阿里、网易、清华、中科大) ubuntu20.04下载地址超快

    1下载ubuntu系统镜像的国内源地址 一个不行换一个 下载ubuntu系统镜像的国内源地址,超快 国内镜像源(阿里.网易.清华.中科大) ubuntu20.04下载地址: 清华源 https://m ...

  2. Ubuntu20.04更换国内镜像源(阿里、网易163、清华、中科大)

    ------------------- 2022年12月11日更新 ---------------------- 今天刚安装了 Ubuntu22.04 ,安装时选好地区,开机默认就是中国内地的镜像源服 ...

  3. Ubuntu22.04更换国内镜像源(阿里、网易163、清华、中科大)

    更换方法 Ubuntu采用apt作为软件安装工具,其镜像源列表记录在/etc/apt/source.list文件中. 首先将source.list复制为source.list.bak备份,然后将sou ...

  4. Ubuntu18.04更改国内镜像源(阿里云、网易、清华、中科大)

    Ubuntu18.04--更改国内镜像源(阿里.网易.清华.中科大) 前言 一. 不同镜像原地址 1. 阿里源 2. 网易源 3. 清华源 4. 中科大源 二. 更换文件的方法步骤 1. 备份Ubun ...

  5. Ubuntu最新、最简单换源方法(中科大源)

    打开 snullp 大叔开发的 配置生成器 选择对应自己的Ubuntu版本,然后下载 打开下载好的list文件,选择替换 最好可以在终端上运行一下 sudo apt-get update 更新索引使其 ...

  6. Ubuntu 18.04换国内源 中科大源 阿里源 163源 清华源

    Ubuntu 18.04换国内源 中科大源 阿里源 163源 清华源 内有很多Ubuntu的镜像源,包括阿里的.网易的,还有很多教育网的源,比如:清华源.中科大源. 我们这里以中科大的源为例讲解如何修 ...

  7. Ubuntu 20.04换国内源 清华源 阿里源 中科大源 163源

    Ubuntu 20.04 是 Ubuntu 的第 8 个 LTS 版本,其重大更新和改进将在 2030 年前终止,计划于2020年 4 月 23 日发布. 国内有很多Ubuntu的镜像源,包括阿里的. ...

  8. 20 ubuntu 中科大源_Ubuntu 18.04换国内源 中科大源 阿里源 163源 清华源

    有很多Ubuntu的镜像源,包括阿里的.网易的,还有很多教育网的源,比如:清华源.中科大源. 我们这里以中科大的源为例讲解如何修改Ubuntu 18.04里面默认的源. 编辑/etc/apt/sour ...

  9. Ubuntu 22.04换国内源 清华源 阿里源 中科大源 163源

    本文系原创,转载请注明出处 update 2022.04.23: Ubuntu 22.04 的稳定版已经于 2022 年 4 月 21 日发布,Ubuntu 22.04 稳定版下载地址:https:/ ...

最新文章

  1. 网站seo工作不能忽视
  2. 南华大学java补考_关于2017年秋季学期学生补考报名及成绩复核的通知
  3. PHP的替换strstr strtr str_replace substr_replace
  4. SSL延迟有多大 (Https)
  5. I+关系网络分析发布,提供完整的可视化分析和关系引擎功能
  6. Linux驱动(8)--内核编译与配置
  7. couchbase php,升级PHP7时couchbase扩展导入的bug
  8. mysql索引怎么设计_mysql索引设计
  9. HDU-1584蜘蛛牌
  10. 谷歌-adblock插件下载后的使用(国内无需fan墙)
  11. 华为交换机ensp基础命令
  12. WinHex脚本命令教程--中文版
  13. #pragma comment 用法
  14. 问题以及解决办法:hadoop 不在 sudoers 文件中。此事将被报告
  15. 实现网站访问人数统计
  16. ubnutu系统官网
  17. Android从零单排之免费短信验证
  18. Apache Commons Daemon 使用
  19. 《谈判力》读书笔记:前言
  20. 广大企业使用OA系统的六大理由

热门文章

  1. Sizzle引擎研究
  2. 有趣的历史,据说都是真的
  3. PID算法(电子入门必看)手把手教学
  4. 计算机组成原理相关名词解释
  5. 去除input框点击后的一圈样式_去除input边框 input去除边框 去除input获取焦点时的蓝色外边框...
  6. 非线性方程的几种线性解法(二分法,不动点法和牛顿法)
  7. 5G NR PDSCH、PUSCH资源分配
  8. 牛客网-剑指offer-树-第二部分
  9. 树莓派3B--树莓派屏幕的安装
  10. 受控组件与费受控组件