Apt 如何配置清华源

  • 总所周知,Ubuntu默认的apt源由于在国外,速度特别的慢,使用清华源,能实现快速安装想要的软件。

1. 更改配置文件

sudo apt update
# 刚安装的ubuntu没有 vim
sudo apt install vim
# 更改 apt源文件
sudo vi /etc/apt/sources.list

2. 替换内容

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
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

3.更新apt

sudo apt update

Ubuntu Apt 如何使用清华源相关推荐

  1. ubuntu的apt-get换清华源

    ubuntu的apt-get换清华源 原文地址:https://blog.csdn.net/qq_31456593/article/details/89638163 doit@doit-System- ...

  2. 01 - Win10+Ubuntu双系统安装换清华源 - 研0

    Win10+Ubuntu双系统安装 一. UltraISO制作Ubuntu 16.04 LTS 启动盘 1.1 UltraISO中:文件,打开,找到Ubuntu镜像:然后启动,写入硬盘映像,写入 1. ...

  3. Ubuntu 20.04更换清华源

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

  4. Ubuntu sources.list 换清华源

    一.备份原来的 sources.list 以防万一 sudo cp /etc/apt/sources.list /etc/apt/sources.lsit_bak 二.把 sources.list 的 ...

  5. Ubuntu更换阿里源和清华源

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo vim /etc/apt/sources.list #阿里源 deb http ...

  6. Ubuntu虚拟机更换国内清华源

    使用ubuntu自带的源,下载或者更新软件默认是从国外的服务器下载,导致耗时时间非常长,所以修改为国内源,加快下载与更新速度. 查看ubuntu版本 切记!一定要查看对应的ubuntu版本,如果ubu ...

  7. Ubuntu 22.04换清华源

    操作步骤如下: # 备份好原来的源 $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bat $ sudo vi /etc/apt/sourc ...

  8. 使用清华源安装ros2 foxy

    1. 设置编码为utf-8 sudo locale-gen en_US en_US.UTF-8 sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF ...

  9. ubuntu中配置好清华的apt源

    文章目录 6 软件管理 6.4 在ubuntu中配置好清华的apt源,安装wireshark 6 软件管理 6.4 在ubuntu中配置好清华的apt源,安装wireshark 首先找到清华的镜像源路 ...

  10. Ubuntu更换清华源 apt

    Ubuntu更换清华源 Ubuntu自带的apt软件源有时下载缓慢,可替换为清华大学镜像地址(也可搜索阿里源等). 源文件为 /etc/apt/sources.list .替换方法如下: 替换步骤 首 ...

最新文章

  1. Spring ribbon
  2. 女人口口相传的快乐和语气
  3. fastdfs-启动服务-上传文件-连接问题
  4. 10分钟搭建商品结算平台!商品、车辆识别一网打尽
  5. 中关村十大AI研究院 | 盘点
  6. 盘点下常用的接口测试工具,有几个你肯定没用过
  7. react根据中文获取拼音_学前家长建议收藏:你要的「趣味拼音课」来了
  8. 【图像边缘检测】基于matlab蚁群聚类图像边缘检测【含Matlab源码 728期】
  9. 【SQL基础-1】SQL基本语句—增删改查
  10. 云队友丨华为选拔人才,最看重这5个素质,已经用了15年
  11. 性能指标TP99介绍
  12. 前端自学Vue笔记干货(第一版,持续更新中~~~)
  13. 那些踩过的declared implicitly的坑
  14. Android super.img 镜像解包
  15. iPhone 移除描述文件详细步骤(Apple Configurator 2)
  16. 免费申报!5G网络Awards参评企业征集,欢迎参与!
  17. STM32CubeMX+SPI+FATFS读写SD卡
  18. 怎么禁止计算机安装程序,电脑如何禁止安装软件,教你win10电脑禁止安装软件的设置教程...
  19. WQ7033开发指南(基础篇)之1.2 烧录固件详解
  20. [批量主机存活扫描工具scanhost]扫描主机存活[python版本,非nmap版本]

热门文章

  1. ESP32使用I2C数字电阻AD5254做PT100仿真
  2. html语言设置表格颜色,HTML怎么设置表格单元格颜色
  3. 2021年4月11日-粤嵌智能小车兴趣课笔记(3)
  4. 关于高级交互设计师的5个经验总结
  5. linux dd winpe,winpe/linux多重启动
  6. P6070 『MdOI R1』Decrease
  7. 电脑维修常用检修软件技术
  8. GNSS模拟器助力控制器硬件在环仿真测试
  9. [无视][mark]退役记
  10. vim打开文件时显示行号