Linux 系统操作简记 -- 修改Ubuntu apt-get 与 pip更新源,提高安装速度
来源:互联网 发布:复旦大学经济学院 知乎 编辑:程序博客网 时间:2024/06/14 03:51
另外由于默认安装时的源大都是外国的更新源,速度相对国内会慢很多,接下来主要介绍在ubuntu系统中更新系统源的方法,以Ubuntu 14.04 为例
1. 修改apt-get 更新源
sudo vim /etc/apt/sources.list
清空,输入阿里巴巴的更新源
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
然后更新
sudo apt-get update
2 . 更改pip更新源
在主目录下创建.pip文件夹
mkdir ~/.pip
在.pip文件夹下新建一个pip.conf文件,编辑
vim pip.conf
输入 豆瓣源
[global]trusted-host = pypi.douban.comindex-url = http://pypi.douban.com/simple
0 0
- Linux 系统操作简记 -- 修改Ubuntu apt-get 与 pip更新源,提高安装速度
- ubuntu下修改apt-get更新源
- Linux修改系统以及pip更新源
- ubuntu更新源apt-get
- Debian系统apt-get命令整理修改更新源
- 【Python环境】Linux修改系统以及pip更新源
- apt-get update 更新源Ubuntu 10.10
- Ubuntu 下 apt-get 更新源推荐
- Ubuntu更新源(apt-get )相关
- Ubuntu 下 apt-get 更新源推荐
- Ubuntu 下 apt-get 更新源推荐
- Ubuntu 下 apt-get 更新源推荐
- Ubuntu 下 apt-get 更新源推荐
- Ubuntu 下 apt-get 更新源推荐
- Ubuntu 下 apt-get 更新源推荐
- ubuntu软件更新源,提高更新速度
- Ubuntu修改apt-get镜像地址提高下载速度
- [Linux]Ubuntu修改apt-get镜像地址提高下载速度
- 谷歌打不开,怎么办?谷歌chrome应用商店发布的谷歌白领助手,免费打开google和谷歌学术
- ubuntu nfs常见错误解决方法
- 面向硬件编程的一些思考
- UML类图几种关系的总结
- 开源12通道2.4G遥控制作-发射机
- Linux 系统操作简记 -- 修改Ubuntu apt-get 与 pip更新源,提高安装速度
- 设置linux服务器时间与网络同步
- Linux下的常用命令(一)
- JS操作dom节点及兼容性
- java学习(13)
- 注册 用户名 非法关键字限制
- MySQL 数据类型
- IFIX VBA操作脚本功能
- codevs2618 核电站问题(记忆化搜索)