3
votes

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?

4

4 Answers

11
votes

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"
6
votes

Do not hard-code the current ip of sublime.wbond.net. This will not solve the problem, and will only break your machine's connection to Package Control in the near future.

If you are having trouble with ipv6, use the latest version from https://github.com/wbond/package_control. It has a fix for curl and wget when they encounter issues with computers that provide ipv6 via DNS, but can not actually access sites via ipv6.

If you are still having trouble with Package Control, follow the instructions at https://packagecontrol.io/docs/issues. Please be sure to include a debug log, otherwise I can't help.

0
votes

Three stps to solve this problem on Mac in China.

  1. add "0.116.34.243 sublime.wbond.net" into /etc/host
  2. open Global Mode of Shadowsocks (needed only in China)
  3. restart Sublime
0
votes

I had the same problem today, and after a long search I found out that packagecontrol.io website was down!