ubuntu系统自带的镜像源速度特别慢,并且有些包无法下载.推荐使用清华源,下载速度很快.

找到镜像源的存放文件,并备份

cd /etc/apt/
sudo cp sources.list  sources.list.bak
sudo vim sources.list

将下面内容覆盖掉原文件内容

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
#deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

修改完,保存退出.

sudo apt-get update

ubuntu16.04更换清华源相关推荐

  1. ubuntu20.04更换清华源

    最近写毕设,做不出来.安装了多次Ubuntu,写篇傻子式(傻子才需要这么详细)文章压压惊. Ubuntu安装完之后进行更换为国内源可以让下载更新的的速度快一点. 修改源之前提示大家先查看版本名,ubu ...

  2. Ubuntu 20.04更换清华源

    修改源之前提示大家先查看版本名,ubuntu20.04对应的是"focal".本篇中的源只适用于20.04,也就是查出来的是"focal". "xen ...

  3. Ubuntu16.04更换阿里源

    Ubuntu 在使用"apt-get install xxx"安装软件时可能出现"网络不可达"."你的网络需要认证吗"."无法定位 ...

  4. Ubuntu18.04更换清华源

    1.查找清华源for Ubuntu18.04 清华源 2.替换源 # sudo emacs /etc/apt/sources.list //添加以下内容# 默认注释了源码镜像以提高 apt updat ...

  5. Ubuntu20.04 更换清华源码镜像(source.list)

    清华源码镜像 1. 先把原有的源文件做一个备份 sudo cp -r /etc/apt/sources.list /etc/apt/sources_ori.list 2. 打开 sources.lis ...

  6. ubuntu镜像源更换_ubuntu16.04更换镜像源

    1.备份原有 cp /etc/apt/sources.list /etc/apt/sources.list.old 2.打开阿里巴巴镜像源:  https://opsx.alibaba.com/mir ...

  7. X86_64架构的ubuntu16.04更换了系统源 update提示无法下载一些包 404 Not Found

    X86_64架构的ubuntu16.04更换了系统源 update时提示E: 无法下载 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial ...

  8. ubuntu源换成清华源_Ubuntu18.04更换软件包源(清华源)

    1.备份原软件源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 2.新開一个终端,在终端里输入 sudo vim /etc/ap ...

  9. Ubuntu16.04、18.04换清华源

    Ubuntu16.04.18.04换清华源 1. 原文件备份 2. 修改源文件 3. 更新源 1. 原文件备份 apt源的设置在/etc/apt/sources.list中,我们首先备份一下: sud ...

最新文章

  1. 给一个金额字符串插入逗号分隔 保留两位有效数字
  2. VC实现HTTP协议的GET和POST方法
  3. ActivityInfo taskAffinity
  4. hiveserver2和metastore简要概括作用
  5. apache.camel_Apache Camel 3.1 –更多骆驼核心优化(第3部分)
  6. LeetCode 1676. 二叉树的最近公共祖先 IV
  7. NLP Subword三大算法原理:BPE、WordPiece、ULM
  8. vue-cli3 DllPlugin 提取公用库
  9. 85相似标准形06——初等因子、初等因子与不变因子的求法
  10. 模板 - 多项式快速插值
  11. CCIE学习(18)——HSRP、VRRP和GLBP
  12. ssm生鲜超市管理系统的设计与实现毕业设计源码261635
  13. web服务器硬件软件配置选择
  14. 【物联网】Arduino Uno开发板连接阿里云实现云端远程控制LED灯开关
  15. signature=d601b7b6eb512df6319aad970c9aaeab,Excise Tax Return Serial Number 97-17 971101 971115
  16. 超好用的PC端录屏软件推荐
  17. 测试面试题集锦(六)| 软素质篇与反问面试官篇(附答案)
  18. win10清理c盘_都说win10运行卡顿,为什么别人电脑快如闪电?原来是它在拖后腿...
  19. 潇洒郎: PostgreSQL学习——安装、启动、执行sql,修改数据库密码
  20. 华为鸿蒙2.0开发文档和API

热门文章

  1. 【Unity2D】实现敌人Enemy简单AI的巡回移动
  2. 安卓 linux 信令,呼叫信令
  3. 模糊粗糙集的实际应用
  4. 【ESP8266 快速入门】硬件:ESP12S/ESP12F最小系统设计及typeC自动下载电路设计
  5. 名空间 (Namespaces)
  6. 动力节点王鹤SpringBoot3学习笔记——第二章 掌握SpringBoot基础篇
  7. 双十一邮件各大商家都是怎么玩儿的
  8. ospf不规则区域的解决方法
  9. 电子琴节奏包制作_外卖料理包未来的命运,存在还是毁灭?
  10. 爱奇艺数据中台的建设实践