Ubuntu 18.04修改默认源为国内源
安装Ubuntu 18.04
后,使用国外源太慢了,修改为国内源会快很多。
修改阿里源为Ubuntu 18.04
默认的源
备份/etc/apt/sources.list
备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
在/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
最后执行如下命令更新源
更新
sudo apt-get update
sudo apt-get upgrade
另外其他几个国内源如下:
中科大源
中科大源
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
163源
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
转载于:https://www.cnblogs.com/ifme/p/11398438.html
Ubuntu 18.04修改默认源为国内源相关推荐
- 让Ubuntu 18.04更好用:国内源,Chrome浏览器和Sogou拼音
按照前面一篇文章使用VMware Workstation Player 15安装Ubuntu 18.04虚拟机安装好Ubuntu 18.04,接下来我们通过三个步骤让这个系统更好用一些: 更换国内阿里 ...
- 更换Ubuntu默认源为国内源
安装Ubuntu后,使用国外源太慢了,修改为国内源会快很多. 1.修改过程 1.1 备份 备份/etc/apt/sources.list,命令如下: sudo cp /etc/apt/sources. ...
- Ubuntu 18.04 修改swap分区大小
Ubuntu 18.04 修改swap分区大小 1.查看初始状态 查看原先swap大小 root@gpu-2:~# free -h总计 已用 空闲 共享 缓冲/缓存 可用 内存: 62G 417M 3 ...
- Ubuntu 18.04 修改 ulimit
Ubuntu 18.04 修改 ulimit 1,报错`too many open files` 2,修改`open files ` 3,通过设置环境变量修改 4,~~pen files修改为1048 ...
- 九阴白骨爪(1)修改APT源为国内源的懒人法
九阴白骨爪(1)修改APT源为国内源的懒人法 最近搞了一个电信的云主机,把自己做的一个小系统放了上去.由于我以前没有写过B/S架构的东西,这是第一次,所以从开发到部署遇到N多的坑.现在把这些悲惨的遭遇 ...
- apt-get 软件源文件格式以及ubuntu 18.04更换阿里源
#前言 由于种种原因,例如下载速度慢.找不到所需应用等,我们经常需要修改debian系统的软件源文件/etc/apt/sources.list,之前一直是直接在网上搜索别人现有的源内容,然后复制粘贴过 ...
- Linux ubuntu修改软件源为国内源;解决apt install、PPA源太慢;
阿里源 修改为阿里源,只需要执行命令: sed -i 's/\/\/.*\/ubuntu/\/\/mirrors.aliyun.com\/ubuntu/g' /etc/apt/sources.list ...
- 在Ubuntu 18.04上用源码安装GVM 20.08
写在前面 OpenVAS是为数不多的开源漏洞扫描工具之一.如果不是最好的,那也一定是前三名.后来,改名为GVM,并且以发行的年月作为版本号.到文章发表时,最新版是GVM 20.08,发行于2020年8 ...
- Ubuntu 18.04 更换阿里源
我们在装好Ubuntu18.04之后,通常都要设置下root用户密码和配置下国内的阿里源. 接下来,讲下Ubuntu18.04如何配置阿里源! 1.第一步:备份 sources.list sudo c ...
- python pip国内源_Python 修改pip源为国内源
欢迎访问我的博客原文: https://huaxiaostar.com/2019/01/python-pip-china/ Python 里经常要安装各种这样的包,安装各种包时最常用的就是 pip,p ...
最新文章
- 功能表单之树形选择字段类型的高级使用——JEPLUS软件快速开发平台
- OpenCV中Mat总结
- Mac 开机没声音了?只需 2 招关闭/恢复
- IBGP的自己下一跳,指定源命令。
- 编写程序对给定的有向图(不一定连通)进行深度优先遍历_从零开始学习数据结构gt;图的非连通遍历...
- 趣学算法 陈小玉 书中所有问题的实现代码
- 大数据软件在高校领域的应用探索—智慧高校解决方案分享
- 七牛云对象存储实现文件的上传与下载
- duilib菜单动态添加
- css画横线箭头_用纯CSS实现的箭头
- CVPR 2020 论文大盘点-人脸技术篇
- python爬取整个网站的广告敏感词_Python实现敏感词过滤的4种方法
- 计算机专业老师新学期工作计划,计算机教师工作计划
- 【转】国内超级计算机发展情况简介
- 明源服务器修改固定IP,8.5 IP源站选路选项
- Qt编写可视化大屏电子看板系统30-模块8物料管理
- C语言字符型变量sex,全国2003年4月高等教育自学考试计算机软件基础(一)试题...
- 在职研究生报考条件2020年
- word2003计算机考试题,职称计算机考试试题库—word2003.pdf
- CS229part3广义线性模型
热门文章
- android 可拖拽View的简单实现
- Flink Remote Shuffle 开源:面向流批一体与云原生的 Shuffle 服务
- 非科班程序员和科班程序员的差距到底在哪里?
- 一大早,分享一个好消息
- 老码农最后都去哪了?
- 做自己的软件的Gallery(一)
- 计算机教师继续教育心得,教师继续教育培训个人心得体会
- java 计算两个日期之间的月份_Java 8计算两个日期之间的月份
- cad相对坐标快捷键_CAD里面绝对、相对、极坐标是什么?如何区别
- 将您重定向的次数过多。_吃鸡:蹦蹦将迎来新皮肤?体验服全面加强,最高时速也不打滑...