详情可以参考这 里:http://stackoverflow.com/questions/25105139/sublime-text-2-there-are- no-packages-available-for-installation,解决办法就是这个问题被采纳的答案所描述的。
据说是IPv6的原因,如果我们的Intent服务提供者(ISP)不支持IPv6就会引发上述错误,原文如下:
This error is happened with IPv6 problem. If your Internet Service Provider (ISP) does not support for IPv6 you got this error.
解决办法(windows平台)
上面链接中给出的解决办法原文如下:
Step 1:
Get IPv4 address of sublime.wbond.net
Try this command line on terminal ping sublime.wbond.net
Now you can get IPv4 address of sublime.wbond.net.
Step 2:
Now open hosts file from C:Windowssystem32driversetc
folder and add this line (replcae {IPv4 address})
{IPv4 address} sublime.wbond.net
.
All is ok. Let's play with Package controller.
从上面的描述可以知道首先需要获取sublime.wbond.net网站的IPv4地址,然后修改hosts文件就行了。
如果在终端使用ping命令时遇到“请求不到主机”!!!
可以到这里(在线Ping工具)查寻其IP地址:http://serve.netsh.org/pub/ping.php
50.116.34.243 sublime.wbond.net
然后修改hosts文件就可以了,在hosts文件中添加一行