这个问题挺烦人的,所以mark一下搜到的解决方案。
原文:http://my.oschina.net/mayboy24/blog/338810
(其实,也是转载的,不过,我是直接搜到的这个页面,所以姑且标为原文)
内容:
Sublime安装package control有两种方法:
-
在控制台安装
-
本地安装将Package Control.sublime-package放在“~/.config/sublime-text-3/Installed Packages”即可
Sublime Text的很多package repository都在托管在github上,但是github在国内的网络环境下有时……。因此在使用Package Control安装插件时,会出现下面的Prompt:There are no packages available for installation
解决方案如下:
-
Try this command line on terminal
dig @8.8.8.8 -t A sublime.wbond.net +noall +answer
The output look like this:
; <<>> DiG 9.9.5-3-Ubuntu <<>> @8.8.8.8 -t A sublime.wbond.net +noall +answer
; (1 server found)
;; global options: +cmd
sublime.wbond.net. 82 IN A 50.116.34.243The IPv4 address is
50.116.34.243
.
2. Open /etc/hosts file with sudo vim /etc/hosts
and add this line ( replcae {IPv4 address} )
{IPv4 address} sublime.wbond.net
OK,Let's roll out !