您的位置:首页 > 大数据 > 人工智能

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

2015-09-21 20:19 661 查看
问题

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: