Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are no packages available for installation! #130

Closed
da-vaibhav opened this issue May 17, 2012 · 45 comments
Closed

There are no packages available for installation! #130

da-vaibhav opened this issue May 17, 2012 · 45 comments

Comments

@da-vaibhav
Copy link

i got this error upon hitting 'Install Packages'
"
Exception in thread Thread-7:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner
self.run()
File "./Package Control.py", line 1890, in run
File "./Package Control.py", line 1759, in make_package_list
File "./Package Control.py", line 1121, in list_available_packages
File "./Package Control.py", line 1066, in list_repositories
File "./Package Control.py", line 175, in get_repositories
File "./Package Control.py", line 148, in fetch_channel
File "./Package Control.py", line 1007, in download_url
File "./Package Control.py", line 602, in download
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 383, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 401, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "./Package Control.py", line 92, in https_open
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1114, in do_open
r = h.getresponse()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 950, in getresponse
response.begin()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 390, in begin
version, status, reason = self._read_status()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 354, in _read_status
raise BadStatusLine(line)
BadStatusLine
"
Please help!

And this also
error: Package Control: Error parsing JSON from channel https://sublime.wbond.net/repositories.json.
Package Control: No CA certs available for api.bitbucket.org.
error: Package Control: There are no packages available for installation.

@fastzhong
Copy link

Hi, I have the same problem but I did not see any error. Meanwhile no problem on my Windows. Any idea? Thanks.

@domguard
Copy link

I have the same error when trying to install packages :

console says :

Package Control: Error downloading channel. URL error [Errno 185090057] _ssl.c:328: error:0B084009:x509 certificate routines:X509_load_cert_crl_file:PEM lib downloading https://sublime.wbond.net/repositories.json.
error: Package Control: There are no packages available for installation.

Just before in the console I also have this (from ST2 init output) :

Package Control: Error downloading channel. URL error [Errno 185090057] _ssl.c:328: error:0B084009:x509 certificate routines:X509_load_cert_crl_file:PEM lib downloading https://sublime.wbond.net/repositories.json.
Package Control: Error downloading channel. URL error [Errno 185090057] _ssl.c:328: error:0B084009:x509 certificate routines:X509_load_cert_crl_file:PEM lib downloading https://sublime.wbond.net/repositories.json.
Package Control: No updated packages

excerpt from settings :

"repository_channels": [
    "https://sublime.wbond.net/repositories.json"
],
"repositories": [],

"certs": {
    "sublime.wbond.net": ["7f4f8622b4fd001c7f648e09aae7edaa", ""]
},

@schlamar
Copy link
Contributor

Are you behind a proxy? If yes, try the fix from #116.

@domguard
Copy link

no, I have a direct connection

@schlamar
Copy link
Contributor

@domguard Yes, but it is not the "same" error than OP... Your platform?

@da-vaibhav @lunz Try the fix in #116 if you are behind a proxy.

@domguard
Copy link

Mac OS X 10.7
As I wrote today on ST2 Forum, using the "http" repository only allows me to list Packages, installation does not work

@schlamar
Copy link
Contributor

ST2 version?

@domguard
Copy link

Sublime Text 2 Beta, Build 2181

@schlamar
Copy link
Contributor

Mhh, strange. Same platform and version here and it is working. Maybe you have an active firewall like Little Snitch which is blocking the request?
Can you open https://sublime.wbond.net/repositories.json in a browser?

@domguard
Copy link

Yes, I can browse this page, I have absolutely no firewall active on the machine or the network.
Googling for the error _ssl.c:328, found this blog post and this reminds me that a recent (related?) change on my setup was to install Python 2.7 from python.org to replace Apple's python.
Could this have changed the way the SSL libraries are used ?

@schlamar
Copy link
Contributor

Yes, that might be the problem. Can you uninstall it?

I prefer installing a custom python version via homebrew (or macports), this gives you a much cleaner environment.

@schlamar
Copy link
Contributor

Or you can try this #94 (comment)

@waltercruz
Copy link

happens to me too, running sublime on linux through a draconian proxy that allows just http and https.

@schlamar
Copy link
Contributor

schlamar commented Jun 6, 2012

@waltercruz You can enable proxy support by applying the fix in #116.

@wbond
Copy link
Owner

wbond commented Jun 11, 2012

There is a testing version of Package Control available which should hopefully resolve this issue thanks to @ms4py. To test it, please:

  1. In Sublime Text, click the Preferences > Browse Packages… menu entry
  2. Browse up a folder and then into the Installed Packages folder
  3. Download http://sublime.wbond.net/testing/Package%20Control.sublime-package and copy it into the Installed Packages directory
  4. Restart Sublime Text

Please post back here with your results.

@domguard
Copy link

I just tried and it works again (with https url for the repository)
thanks!
(just let us know if this version is suitable and will update itself in the future please )

@waltercruz
Copy link

don't work for me :(

@wbond
Copy link
Owner

wbond commented Jun 11, 2012

@waltercruz Please open a new issue with as many specifics as you can. Be sure to include the exact error messages you are seeing, the Linux distro, any firewall specifics you can provider, etc.

@waltercruz
Copy link

I will pass you my detailed log tomorrow.

@waltercruz
Copy link

maybe it could be something easily fixable...

Package Control: Skipping automatic upgrade, last run at 2012-06-12 09:40:12, next run at 2012-06-12 10:40:12 or after
Package Control: Error downloading channel. HTTP error 407 downloading https://sublime.wbond.net/repositories.json.
error: Package Control: There are no packages available for installation.

My configs:
{
"auto_upgrade_last_run": 1339504812,
"http_proxy": "http://walter.cruz:password@10.27.1.97:8123",
"installed_packages":
[
"Package Control",
"phpDocumentor",
"PHPUnit",
"SideBarEnhancements",
"ZenCoding"
]
}

I can open https://sublime.wbond.net/repositories.json on the browser (the same proxy settings as the config here)
Using debian wheezy (testing)

@wbond
Copy link
Owner

wbond commented Jun 12, 2012

@waltercruz Please open a new issue since your error message is different than the OP

@waltercruz
Copy link

The log:

Package Control: No updated packages
Package Control: Error downloading channel. HTTP error 407 downloading https://sublime.wbond.net/repositories.json.
error: Package Control: There are no packages available for installation.

@waltercruz
Copy link

Oh! works if I put http_proxy AND https_proxy. :)

@waltercruz
Copy link

sorry for the noise on this issue, it's working now.

@wbond
Copy link
Owner

wbond commented Jul 6, 2012

I've posted a new version of Package Control (1.5.0.11) just today at https://sublime.wbond.net/testing/Package%20Control.sublime-package. If you are still having this issue, or have a proxy and are willing to test, please:

  1. In Sublime Text, click the Preferences > Browse Packages… menu entry
  2. Browse up a folder and then into the Installed Packages folder
  3. Download http://sublime.wbond.net/testing/Package%20Control.sublime-package and copy it into the Installed Packages directory
  4. Restart Sublime Text

Also note that in the new version, there are separate settings for proxy_username and proxy_password which you may need to set.

This new version adds support for basic, digest and ntlm auth for proxies. Unfortunately I don't have any of these to test against, but I am hoping it will help with your issue, and you can report any issues back.

@rifraf
Copy link

rifraf commented Jul 9, 2012

Yay - works for me!

Thanks

@ghost
Copy link

ghost commented Jul 10, 2012

I'm still getting an Error

Package Control: Error downloading channel. URL error Tunnel connection failed: 407 Proxy Authentication Required downloading https://sublime.wbond.net/repositories.json.
error: Package Control: There are no packages available for installation.

@wbond
Copy link
Owner

wbond commented Jul 10, 2012

@dlightni Did you enter your proxy authentication information into the proxy_username and proxy_password settings?

@ghost
Copy link

ghost commented Jul 10, 2012

@wbond yes I have, could it be the proxy itself or package control?

@wbond
Copy link
Owner

wbond commented Jul 11, 2012

@dlightni I'm not really sure. Does your proxy work with the https URL in a browser? If so, it must use something that Package Control doesn't support.

Unfortunately I can't really do any testing since I don't have a proxy that doesn't work. To my knowledge Package Control properly implements proxy authentication for basic auth, digest auth and ntlm auth. I didn't see anything else available via urllib2.

@ghost
Copy link

ghost commented Jul 11, 2012

@wbond Yes I can use https. As far as I know my proxy uses kerberos with a ntlm fall-back, however if it uses just ntlm it should work.

@AntJanus
Copy link

I had the same issue as OP the new package control package fixed everything for me. Thanks!

@schlamar
Copy link
Contributor

@dlightni What are your Windows proxy settings? Do you know what proxy you are using?

@schlamar
Copy link
Contributor

@wbond It could be a SOCKS proxy (which Package Control currently doesn't support, I assume?).

@goudsmit
Copy link

I was having this issue, with the console reporting a 'Connection Refused'.

A fix for me was:

  • clearing the config-entries in Package Control.sublime-settings
  • in the console setting the 'http_proxy' and 'https_proxy' environment variables manually:
  • os.environ["http_proxy"]="http://hostname:port"
  • os.environ["https_proxy"]="http://hostname:port"

Seems like the underlying libraries know how to interpret the environment variables just fine, but the Package Control code doesn't.

Perhaps a fix would be to pass the proxy config variables through the environment?

@schlamar
Copy link
Contributor

@Gilimanjaro Have you tried the testing version: #130 (comment)

@goudsmit
Copy link

@schlamar Yes, I had already done that. It's not a proxy authentication issue I think, but something to do with https URL's over non https proxies I suspect.

@mokagio
Copy link

mokagio commented Oct 2, 2012

I installed @wbond new version today but I still get the error... Any suggestion?

@wbond
Copy link
Owner

wbond commented Oct 18, 2012

@mokagio There is a new testing version available at http://wbond.net/sublime_packages/package_control/installation#Testing_Version.

@wbond
Copy link
Owner

wbond commented Nov 8, 2012

The testing version (http://wbond.net/sublime_packages/package_control/installation#Testing_Version) should have this fixed now.

Be sure to set the http_proxy and https_proxy settings like ip_or_host:port and do not include http://. Authentication information should be set in proxy_username and proxy_password settings. If you are still having trouble, please set the debug setting to true and look at your Sublime Text console to see the messages being sent back and forth between your machine and the proxy.

If you have installed the testing version and are still having trouble, please open a new issue and post as much debug info as you can.

@wbond wbond closed this as completed Nov 8, 2012
@franciscojunior
Copy link

I also had this problem and #116 fixed it to me. Windows 7 behind a proxy.

@nickleefly
Copy link

#98 this comment works for me

@estemendoza
Copy link

I'm using 1.6.9.0 on Lion 10.7.2 and have to set the environment variables like gilimanjaro said #130 (comment)

os.environ["http_proxy"]="http://hostname:port"

Setting http_proxy on the settings didn't work out.

Thanks

@wbond
Copy link
Owner

wbond commented Apr 16, 2013

@estemendoza If you are having a bug with a proxy, please open a new issue with a debug log.

@csarron
Copy link

csarron commented Dec 23, 2014

There are no packages available for installation
Package Control: Error downloading channel. Error checking for server certificate revocation (errno 12057) during HTTP write phase of downloading https://sublime.wbond.net/channel.json.
error: Package Control

If your ST appears error 12507 like described above, you had better do this:
HTTP Error 12057 - SSL Revocation
This error is happening because the program GenoPro uses a secure encrypted protocol (SSL) to connect to the server GenoPro.com. Under rare conditions, your computer may display the error below because it is unable to validate the SSL certificate.

HTTP Error 12057: Unable to validate the revocation of the SSL certificate because the revocation server is unavailable

You will only see the error if you are working with secure sockets (https protocol). You can turn off the check for server certification following the steps below.

How to fix it
This error is easy to fix and should take less than 2 minutes of your time:

Open Internet Explorer.
From the Tools menu, select the menu item Internet Options and click on the Advanced tab.
Scroll down to the Security section, uncheck the option Check for server certificate revocation.
Click on the OK button to close the Internet Options dialog. You also need to close all instances of Internet Explorer for the changes to take effect. If the changes do not take effect, it is possible a hidden instance of Internet Explorer may still be running in the background. In this case, just reboot your computer and it will work.
Restart GenoPro.
If you still get this error, turn off the other option Check for publisher's certificate revocation.


From: http://www.genopro.com/ssl/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests