ubuntu 18.04更换为国内更新源
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更换为国内更新源相关推荐
- 分享Ubuntu 16.04 几个国内更新源
2019独角兽企业重金招聘Python工程师标准>>> 如何更改源 1/ 在修改source.list前,最好先备份一份 执行备份命令 sudo cp /etc/apt/source ...
- Ubuntu 14.04.4官方默认更新源sources.list
Ubuntu 14.04.4官方默认更新源sources.list # deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (201 ...
- apt-get 软件源文件格式以及ubuntu 18.04更换阿里源
#前言 由于种种原因,例如下载速度慢.找不到所需应用等,我们经常需要修改debian系统的软件源文件/etc/apt/sources.list,之前一直是直接在网上搜索别人现有的源内容,然后复制粘贴过 ...
- Ubuntu 18.04 更换阿里源
我们在装好Ubuntu18.04之后,通常都要设置下root用户密码和配置下国内的阿里源. 接下来,讲下Ubuntu18.04如何配置阿里源! 1.第一步:备份 sources.list sudo c ...
- Ubuntu 18.04 更换源
① Ubuntu版本: 18.04 ② 使用模板:模板:18.04source deb http://cn.archive.ubuntu.com/ubuntu/ boinc main restrict ...
- ubuntu 21.04 更换阿里云镜像源
备份原来的源 $ mv /etc/apt/sources.list /etc/apt/sources.list.bak $ vim /etc/apt/sources.list 添加如下内容 deb h ...
- Ubuntu 14.04 更换为阿里云源
#备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #编辑 sudo vim /etc/apt/sources.list,清空后,加 ...
- Ubuntu 18.04 更换最优软件更新源
进入软件与更新 主题来源: Canta theme - Gnome-look.orghttps://www.gnome-look.org/p/1220749/30个非常不错的Ubuntu主题供你选择 ...
- Ubuntu 20.04更换pip为清华源
1.创建pip文件,以及pip文件夹得pip.conf文件 mkdir ~/.pip vim ~/.pip/pip.conf 2.复制内容到pip.conf文件中 [global] index-url ...
最新文章
- 批号数量调整单中批次数量和库存数量不一致
- Ubuntu 常用命令收集
- Python常用框架:Flask
- git reset用法
- java制作带有logo的二维码,解决zxing中文乱码
- CSS-合理使用z-index控制盒子视轴高度,解决z-index失效
- 小说中人称转换作用_长篇儿童小说《合欢》:一树红绒落马缨
- Spring boot自定义启动字符画(banner)
- jQuery 事件函数传参异常identifier starts immediately after numeric literal
- php大量邮件,PHPMailer批量发送邮件的实例代码
- 浩瀚先森(guohao1206.com)
- no vaild maven installation found
- 噪音消除小技巧--噪音匹配
- p13390677 112040 linux x86-64 1of7,11.2.0.4.0 PatchSet 补丁号 13390677
- SAP UI5 应用开发教程之四十九 - 如何在桌面电脑端调试运行在手机上的 SAP UI5 应用试读版
- linux中tail命令的作用,Linux中tail命令实例
- JVM 运行时内存空间详解——元空间
- 免费回收站恢复软件有哪些?数据恢复软件,这三款就足够了
- 九轴传感器MPU9250数据读取磁力计
- 怎样修改MindMapper中的线条
热门文章
- Springboot毕设项目婚车租赁系统的设计与实现hsh20(java+VUE+Mybatis+Maven+Mysql)
- VirtualBox虚拟机为CentOS安装增强功能Guest Additions
- 电商订单系统:从0到1设计思路
- 电池的安规认证(IEC/EN)和航空运输认证UN38.3
- 我该怎么跟老板开口说辞职?
- 中国养老公寓行业深度调研及未来需求预测分析报告2022年版
- IDBDatabase的数据库操作
- 开发中常见的空指针异常场景及处理方案
- TransTrack解读
- 《洛克菲勒留给儿子的38封信》 第三封:天堂与地狱比邻