Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 - Package Control : "No packages available for installation" error when trying to install packages through secure channel

I am running Sublime on Ubuntu 14.04 LTS 64-bit. I have tried installing Package Installer on Sublime Text 3 using both the simple script and manual installation methods.

Whenever I try to run the Install Package option I get an error message "There are no packages available for installation"

The console shows the following trace:

Package Control: Error downloading channel. b'curl: (77) error setting certificate verify locations:\n  CAfile: /usr/lib/ssl/certs/ca-certificates.crt\n  CApath: /etc/ssl/certs' downloading https://sublime.wbond.net/channel.json. error: Package Control There are no packages available for installation 

If I add http://sublime.wbond.net/repositories.json as a channel, install package starts showing the package list. But, when I try to install a package (e.g. Pretty JSON) I again get an error related to the security certificate with the following console trace:

reloading Packages/User/Preferences.sublime-settings found 1 files for base name Default.sublime-theme Package Control: Error downloading package. b'curl: (77) error setting certificate verify locations:\n  CAfile: /usr/lib/ssl/certs/ca-certificates.crt\n  CApath: /etc/ssl/certs' downloading https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master. error: Package Control  Unable to download Pretty JSON. Please view the console for more details. theme loaded ignored packages updated to: [Vintage] found 1 files for base name Default.sublime-theme theme loaded reloading Packages/User/Preferences.sublime-settings found 1 files for base name Default.sublime-theme theme loaded 

Any suggestions to get Package Control to work with the secure channel are welcome.

ADDITIONAL DEBUG TRACE FOR PACKAGE CONTROL:

Upon enabling debug for Package Control I get the following trace:

Package Control: Fetching list of available packages   Platform: linux-x64   Sublime Text Version: 3059   Package Control Version: 2.0.0 Package Control: Download Debug   URL: https://sublime.wbond.net/channel.json   Resolved IP: 50.116.34.243   Timeout: 30 Package Control: Found system CA bundle at /usr/lib/ssl/certs/ca-certificates.crt Package Control: Curl Debug Proxy   http_proxy:    https_proxy:    proxy_username:    proxy_password:  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/tmp_i20fq --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...   Connected to sublime.wbond.net (50.116.34.243) port 443 (#0)   error setting certificate verify locations:     CAfile: /usr/lib/ssl/certs/ca-certificates.crt     CApath: /etc/ssl/certs   Closing connection 0     CAfile: /usr/lib/ssl/certs/ca-certificates.crt     CApath: /etc/ssl/certs Package Control: Error downloading channel. curl: (77) error setting certificate verify locations: downloading https://sublime.wbond.net/channel.json. ignored packages updated to: [Vintage, Pretty JSON] found 1 files for base name Default.sublime-theme Package Control: Fetching list of available packages   Platform: linux-x64   Sublime Text Version: 3059   Package Control Version: 2.0.0 theme loaded Package Control: Download Debug   URL: https://sublime.wbond.net/channel.json   Resolved IP: 50.116.34.243   Timeout: 30 Package Control: Found system CA bundle at /usr/lib/ssl/certs/ca-certificates.crt Package Control: Curl Debug Proxy   http_proxy:    https_proxy:    proxy_username:    proxy_password:  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/tmpcg0ent --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...   Connected to sublime.wbond.net (50.116.34.243) port 443 (#0)   error setting certificate verify locations:     CAfile: /usr/lib/ssl/certs/ca-certificates.crt     CApath: /etc/ssl/certs   Closing connection 0     CAfile: /usr/lib/ssl/certs/ca-certificates.crt     CApath: /etc/ssl/certs Package Control: Error downloading channel. curl: (77) error setting certificate verify locations:    downloading https://sublime.wbond.net/channel.json. Package Control: Unable to find a sublime-package file for Pretty JSON Package Control: Unable to find file package-metadata.json in the package Pretty JSON Package Control: Download Debug   URL: https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master   Resolved IP: 192.30.252.146   Timeout: 30 Package Control: Found system CA bundle at /usr/lib/ssl/certs/ca-certificates.crt Package Control: Curl Debug Proxy   http_proxy:    https_proxy:    proxy_username:    proxy_password:  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/tmpueshe5 --cacert   /usr/lib/ssl/certs/ca-certificates.crt -v https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master reloading Packages/User/Preferences.sublime-settings found 1 files for base name Default.sublime-theme Package Control: Curl HTTP Debug General   Hostname was NOT found in DNS cache     Trying 192.30.252.147...   Connected to codeload.github.com (192.30.252.147) port 443 (#0)   error setting certificate verify locations:     CAfile: /usr/lib/ssl/certs/ca-certificates.crt     CApath: /etc/ssl/certs   Closing connection 0     CAfile: /usr/lib/ssl/certs/ca-certificates.crt     CApath: /etc/ssl/certs Package Control: Error downloading package. curl: (77) error setting certificate verify locations:     downloading https://codeload.github.com/dzhibas/SublimePrettyJson/zip/master. error: Package Control  Unable to download Pretty JSON. Please view the console for more details. 
like image 407
AxxE Avatar asked Aug 29 '14 00:08

AxxE


People also ask

How do I install packages in Sublime Text 3?

Open the Command Palette: Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (OS X). Type 'install' in the Command Palette input box, which should autocomplete to 'Package Control: Install Package. ' Press Enter to select it. A list of available packages will display in the Palette.

How do I enable packages in Sublime Text?

Go to SublimeText – Preferences – Package Control (MAC) or Preferences – Package Control (PC) Choose “Install Package” from the list of options.

Where is package control in sublime?

You can find a list of all the packages installed in your Sublime Text editor with Package Control. First open Package Control from Preferences > Package Control as before. Now click on Package Control: List Packages from the list as marked in the screenshot below.


2 Answers

Had the same issue today. Reinstalled package control:

  • Deleted Package Control folder inside the Sublime Text 3 > Packages folder
  • went to https://sublime.wbond.net/installation and executed the manual installation instructions there

...namely

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/ folder
  3. Download Package Control.sublime-package and copy it into the Installed Packages/ directory
  4. Restart Sublime Text

Worked like charm!

like image 52
Juri Avatar answered Sep 20 '22 09:09

Juri


I had the same problem today in Ubuntu 16.04 LTS 64-bit with Sublime Text Build 3126.

Following advice from this Github issue page solved it for me.

Copy-paste the below lines to

Preferences > Package Settings > Package Control > Settings - User.

"channels": [ "https://packagecontrol.io/channel_v3.json", "https://web.archive.org/web/20150905194312/https://packagecontrol.io/channel_v3.json" ], 
like image 33
Rohan_Paul Avatar answered Sep 20 '22 09:09

Rohan_Paul