解决Sublime Text 2 package Control 无法安装插件的问题
错误提示 here are no packages available for installation
问题解决方案来自 Stack Flow
This error is happened with IPv6 problem. If your Internet Service Provider (ISP) does not support for IPv6 you got this error.
这个错误是发生在IPv6的问题。 如果你的ISP服务商不支持IPV6则会发生这个错误。
If you have IPv6 problem curl prints this type of error.
如果你的IPV6有问题,curl就会打印这个类型的错误。
curl: (7) Failed to connect to bla bla bla...
How to solve this on Windows:
怎么在windows上解决这个问题
Step 1:
Get IPv4 address of sublime.wbond.net
获取sublime.wbond.net的IPV4的实际地址
Try this command line on terminal ping sublime.wbond.net
在命令行终端尝试命令_ ping sublime.wbond.net_
Now you can get IPv4 address of sublime.wbond.net.
Step 2:
Now open hosts file from C:\Windows\system32\drivers\etc folder and add this line (replcae {IPv4 address})
接下来打开C:\Windows\system32\drivers\etc\文件夹的hosts文件并在文件末尾添加一行 (用实际的ip地址替换掉{IPv4 address})
{IPv4 address} sublime.wbond.net.
All is ok. Let's play with Package controller.
搞定收工。开始享受Package Controller吧
How to solve this on Unix (Linux/OSX):
如何在Unix(Linux/OSX)上解决这个问题
Step 1:
Get IPv4 address of sublime.wbond.net
同样先获取sublime.wbond.net的实际IPv4地址
Try this command line on terminal dig @8.8.8.8 -t A sublime.wbond.net +noall +answer
在命令行中输入 dig @8.8.8.8 -t A sublime.wbond +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.243
The IPv4 address is 50.116.34.243.
Step 2:
Root sublime.wbond.net to IPv4 address by hosts file.
类似于windows加入到hosts文件(不会翻译~ :()
Open /etc/hosts file with sudo nano /etc/hosts and add this line (replcae {IPv4 address})
命令行 _sudo nano /etc/hosts_打开文件/etc/hosts file
{IPv4 address} sublime.wbond.net.
All is ok. Let's play with Package controller.
OK 收工
祝大家圣诞节快乐!
转载于:https://www.cnblogs.com/riceLee/p/4182564.html