You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd /etc/apt
sudo cp sources.list sources.list.backup
添加资源,我信阿里云。
sudo vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main
由于国内GFW的限制,作为开发者,不得不养成加速安装的良好习惯。
Ubuntu apt-get
添加资源,我信阿里云。
额外参考安装Ubuntu 16.04后要做的事 。
brew Mac
参考Homebrew有比较快的源(mirror),
Github Clone
pip python
方法一:临时换源
在安装同时,你可以多输入两个参数。
方法二:永久换源
配置文件
~/.pip/pip.conf
:最终解决方案
npm nodejs
最终解决方案
参考 phantomjs 下载镜像 PHANTOMJS_CDNURL,同理也可以为很多node.js构建工具的库进行提速。在你的`npm install
The text was updated successfully, but these errors were encountered: