Sublime Text 2 - There are no packages available for installation

Chandra Nakka picture Chandra Nakka · Aug 3, 2014 · Viewed 30.1k times · Source

So many Sublime Text 2 users get error (or) no action when they want to install any sublime text 2 package @via Package Control.

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

enter image description here

Note: Some times error message is not displayed and no action is happened.

When I'm tracing error report from console. I got this below error on console.

Package Control: Trying to execute command /usr/bin/curl --user-agent 'Sublime Package Control v2.0.0' --connect-timeout 30 -sSL --compressed --dump-header /tmp/tmpwQjJVT --header 'If-Modified-Since: Sun, 03 Aug 2014 12:10:13 GMT' --cacert /usr/lib/ssl/certs/ca-certificates.crt -v https://sublime.wbond.net/channel.json
Package Control: Curl HTTP Debug General
  Hostname was NOT found in DNS cache
    Trying 50.116.34.243...
    Trying 2600:3c02:e000:42::1...
  connect to 2600:3c02:e000:42::1 port 443 failed: Network is unreachable
  Failed to connect to sublime.wbond.net port 443: Network is unreachable
  Closing connection 0
Package Control: Error downloading channel. curl: (7) Failed to connect to sublime.wbond.net port 443: Network is unreachable downloading https://sublime.wbond.net/channel.json.
error: Package Control

There are no packages available for installation

How to solve this problem?

Answer

Chandra Nakka picture Chandra Nakka · Aug 3, 2014

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



How to solve this on Unix (OSX/Linux/Ubuntu/CentOS/etc...):

Open terminal and run this below command line.

sudo echo "50.116.34.243 sublime.wbond.net" >> /etc/hosts


How to solve this on Windows:

Click on start button on your windows desktop and find cmd.
Now right click on Command Prompt option and select Run as administrator.

Run this below command line on CMD.

echo 50.116.34.243 sublime.wbond.net >> "C:\Windows\system32\drivers\etc\hosts"