Sublime Text 2 - There are no packages available for installation 解决方法(亲测可行)

问题

When I'm clicked on Package Control: Install Package from Ctrl+Shift+P.

I got this below error:

There are no packages available for installation

解决方案

This error is happened with IPv6 problem. If your Internet Service Provider (ISP) does not support for IPv6 you got this error.

If you have IPv6 problem curl prints this type of error.

curl: (7) Failed to connect to bla bla bla...

How to solve this on 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:\Windows\system32\drivers\etc\ folder and add this line (replcae {IPv4 address})

{IPv4 address}    sublime.wbond.net.

All is ok. Let's play with Package controller.



How to solve this on Unix (Linux/OSX):

Step 1:

Get IPv4 address of sublime.wbond.net

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.243
The IPv4 address is 50.116.34.243.

Step 2:

Root sublime.wbond.net to IPv4 address by hosts file.

Open /etc/hosts file with sudo nano /etc/hosts and add this line (replcae {IPv4 address})

{IPv4 address}    sublime.wbond.net.

All is ok. Let's play with Package controller.

参考


http://stackoverflow.com/questions/25105139/sublime-text-2-there-are-no-packages-available-for-installation
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值