Sublime Text 2 Package Control Error

CTRL SHIFT P -> Package control : Install package 

If I go here, I will immediately get an error

 'Package Control: There are no packages available for installation' 

I suspect this may be due to my authenticated college proxy. But I already set my system variables correctly, so things like URLLIB2 work well.

I also added (with correct values)

 "http_proxy": "http://id:pass@proxy:port", "https_proxy": "http://id:pass@proxy:port", 

for default settings for packet control. However, I get this error. Any idea how to debug this further?

+8
proxy sublimetext2
source share
7 answers

I fixed this by adding "http_proxy": "your.proxy:port", "https_proxy": "your.proxy:port" to the end of my User/Package Control.sublime-settings configuration file.

+13
source share

I had the same problem with my settings, you should install your proxy in the general settings file - User for Sublime Text, and not the general settings in the Control Package.

+1
source share

I will fix this by following these steps:

  • open your internet explorer
  • tools → Internet settings → advanced tag → Security → Cancel “Check revocation of server certificate” this check box
  • Restart your Sublime Text and it will work!
+1
source share

Make sure the curl is set because the package controller needs it.

 apt-get install curl 
0
source share

You must specify your credentials using the separate proxy_username and proxy_password in the user settings. Do not use http: // or any other prefixes in the proxy URL, as http_proxy and https_proxy should contain only the proxy server domain (or IP) and the port, separated by a colon.

I had the same problem on my working machine due to NTLM proxy and the following settings work for me:

 "http_proxy": "my-company-proxy:3128", "https_proxy": "my-company-proxy:3128", "proxy_username": "my-company-domain\\mamontov_se", // domain\login "proxy_password": "MyPa$$w0rD", 
0
source share

In addition to the four settings ("http_proxy", "https_proxy", "proxy_username", "proxy_password") mentioned earlier, there is also the parameter " user_agent ", which can be of value.

Since the default value ("Sublime Package Control v% s") of "user_agent" is not a browser, packets containing it may be rejected by proxies. In this case, "fake" in "Preferences-> Package Settings-> Package Management → Settings - User" can help:

 "user_agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36" 

PS. Wireshark is a good tool to verify that the actual cause of a download failure.

0
source share

Use the following code to install the management pack. Replace the proxy protocol, username, password, address, and port configuration:

 import urllib2,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler({"http": "<proxy protocol><user>:<password>@<proxy url>:<proxy port>"})) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation') 
0
source share

All Articles