ubuntu 18.04更换为国内更新源

在执行ubuntu安装开发环境命令sudo apt update, sudo apt install build-essential时,发现安装速度过慢,可以为ubuntu更换国内更新源。

/etc/apt/sources.list文件内容替换为以下内容:

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

保存完毕之后更新一下缓存

sudo apt-get update
sudo apt-get upgrade

ubuntu 18.04更换为国内更新源相关推荐

  1. 分享Ubuntu 16.04 几个国内更新源

    2019独角兽企业重金招聘Python工程师标准>>> 如何更改源 1/ 在修改source.list前,最好先备份一份 执行备份命令 sudo cp /etc/apt/source ...

  2. Ubuntu 14.04.4官方默认更新源sources.list

    Ubuntu 14.04.4官方默认更新源sources.list # deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (201 ...

  3. apt-get 软件源文件格式以及ubuntu 18.04更换阿里源

    #前言 由于种种原因,例如下载速度慢.找不到所需应用等,我们经常需要修改debian系统的软件源文件/etc/apt/sources.list,之前一直是直接在网上搜索别人现有的源内容,然后复制粘贴过 ...

  4. Ubuntu 18.04 更换阿里源

    我们在装好Ubuntu18.04之后,通常都要设置下root用户密码和配置下国内的阿里源. 接下来,讲下Ubuntu18.04如何配置阿里源! 1.第一步:备份 sources.list sudo c ...

  5. Ubuntu 18.04 更换源

    ① Ubuntu版本: 18.04 ② 使用模板:模板:18.04source deb http://cn.archive.ubuntu.com/ubuntu/ boinc main restrict ...

  6. ubuntu 21.04 更换阿里云镜像源

    备份原来的源 $ mv /etc/apt/sources.list /etc/apt/sources.list.bak $ vim /etc/apt/sources.list 添加如下内容 deb h ...

  7. Ubuntu 14.04 更换为阿里云源

    #备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #编辑 sudo vim /etc/apt/sources.list,清空后,加 ...

  8. Ubuntu 18.04 更换最优软件更新源

    进入软件与更新 主题来源: Canta theme - Gnome-look.orghttps://www.gnome-look.org/p/1220749/30个非常不错的Ubuntu主题供你选择 ...

  9. Ubuntu 20.04更换pip为清华源

    1.创建pip文件,以及pip文件夹得pip.conf文件 mkdir ~/.pip vim ~/.pip/pip.conf 2.复制内容到pip.conf文件中 [global] index-url ...

最新文章

  1. 批号数量调整单中批次数量和库存数量不一致
  2. Ubuntu 常用命令收集
  3. Python常用框架:Flask
  4. git reset用法
  5. java制作带有logo的二维码,解决zxing中文乱码
  6. CSS-合理使用z-index控制盒子视轴高度,解决z-index失效
  7. 小说中人称转换作用_长篇儿童小说《合欢》:一树红绒落马缨
  8. Spring boot自定义启动字符画(banner)
  9. jQuery 事件函数传参异常identifier starts immediately after numeric literal
  10. php大量邮件,PHPMailer批量发送邮件的实例代码
  11. 浩瀚先森(guohao1206.com)
  12. no vaild maven installation found
  13. 噪音消除小技巧--噪音匹配
  14. p13390677 112040 linux x86-64 1of7,11.2.0.4.0 PatchSet 补丁号 13390677
  15. SAP UI5 应用开发教程之四十九 - 如何在桌面电脑端调试运行在手机上的 SAP UI5 应用试读版
  16. linux中tail命令的作用,Linux中tail命令实例
  17. JVM 运行时内存空间详解——元空间
  18. 免费回收站恢复软件有哪些?数据恢复软件,这三款就足够了
  19. 九轴传感器MPU9250数据读取磁力计
  20. 怎样修改MindMapper中的线条

热门文章

  1. Springboot毕设项目婚车租赁系统的设计与实现hsh20(java+VUE+Mybatis+Maven+Mysql)
  2. VirtualBox虚拟机为CentOS安装增强功能Guest Additions
  3. 电商订单系统:从0到1设计思路
  4. 电池的安规认证(IEC/EN)和航空运输认证UN38.3
  5. 我该怎么跟老板开口说辞职?
  6. 中国养老公寓行业深度调研及未来需求预测分析报告2022年版
  7. IDBDatabase的数据库操作
  8. 开发中常见的空指针异常场景及处理方案
  9. TransTrack解读
  10. 《洛克菲勒留给儿子的38封信》 第三封:天堂与地狱比邻