Skip to content

Package control fails to download new packages #736

Closed
@srikanth-dhondi

Description

@srikanth-dhondi

When trying to download a new package, ex: Phpcs, I am getting following error:

ignored packages updated to: [Vintage, Phpcs]
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

Package Control: Error downloading package. b'curl: (60) SSL certificate problem: certificate has expired\nMore details here: http://curl.haxx.se/docs/sslcerts.html\n\ncurl performs SSL certificate verification by default, using a "bundle"\n of Certificate Authority (CA) public keys (CA certs). If the default\n bundle file isn't adequate, you can specify an alternate file\n using the --cacert option.\nIf this HTTPS server uses a certificate signed by a CA represented in\n the bundle, the certificate verification probably failed due to a\n problem with the certificate (it might be expired, or the name might\n not match the domain name in the URL).\nIf you'd like to turn off curl's verification of the certificate, use\n the -k (or --insecure) option.' downloading https://codeload.github.com/benmatselby/sublime-phpcs/zip/master.
error: Package Control

Unable to download Phpcs. Please view the console for more details.
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

Activity

masnick

masnick commented on Aug 11, 2014

@masnick

I am having the same problem. The relevant error from the console is as follows:

Package Control: Error downloading package. HTTP exception InvalidCertificateException (Host codeload.github.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:547)) 
) downloading https://codeload.github.com/ThomasKliszowski/json_reindent/zip/1.0.3.
cschreib

cschreib commented on Aug 11, 2014

@cschreib

Same here. I have tried to remove the PackageControle.ca_bundle and .ca_list files to rebuild them (they were both last modified in april), but that did not change anything.

Debug log:

Package Control: Skipping automatic upgrade, last run at 2014-08-11 17:08:08, next run at 2014-08-11 18:08:08 or after
Package Control: Fetching list of available packages
  Platform: linux-x64
  Sublime Text Version: 3059
  Package Control Version: 2.0.0-alpha7
Package Control: Download Debug
  URL: https://sublime.wbond.net/repositories.json
  Resolved IP: 50.116.34.243
  Timeout: 30
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-alpha7' --connect-timeout 30 -sSL --compressed --dump-header /tmp/tmpxg9xx9 --header 'If-Modified-Since: Mon, 11 Aug 2014 15:20:08 GMT' --cacert '/home/cschreib/.config/sublime-text-3/Packages/User/Package Control.ca-bundle' -v https://sublime.wbond.net/repositories.json
Package Control: Curl HTTP Debug General
  About to connect() to sublime.wbond.net port 443 (#0)
    Trying 50.116.34.243...
  connected
  Connected to sublime.wbond.net (50.116.34.243) port 443 (#0)
  successfully set certificate verify locations:
    CAfile: /home/cschreib/.config/sublime-text-3/Packages/User/Package Control.ca-bundle
    CApath: /etc/ssl/certs
  SSLv3, TLS handshake, Client hello (1):
  SSLv3, TLS handshake, Server hello (2):
  SSLv3, TLS handshake, CERT (11):
  SSLv3, TLS handshake, Server key exchange (12):
  SSLv3, TLS handshake, Server finished (14):
  SSLv3, TLS handshake, Client key exchange (16):
  SSLv3, TLS change cipher, Client hello (1):
  SSLv3, TLS handshake, Finished (20):
  SSLv3, TLS change cipher, Client hello (1):
  SSLv3, TLS handshake, Finished (20):
  SSL connection using ECDHE-RSA-AES256-SHA
  Server certificate:
     subject: serialNumber=ZtL8p1RCzFndzRrqxUKqA6bD5HjQv5Zb; C=US; O=sublime.wbond.net; OU=GT52951423; OU=See www.rapidssl.com/resources/cps (c)12; OU=Domain Control Validated - RapidSSL(R); CN=sublime.wbond.net
     start date: 2014-04
     expire date: 2015-02
     subjectAltName: sublime.wbond.net matched
     issuer: C=US; O
     SSL certificate verify ok.
Package Control: Curl HTTP Debug Write
  GET /repositories.json HTTP/1.1
  User-Agent: Sublime Package Control v2.0.0-alpha7
  Host: sublime.wbond.net
  Accept: */*
  Accept-Encoding: deflate, gzip
  If-Modified-Since: Mon, 11 Aug 2014 15:20:08 GMT
Package Control: Curl HTTP Debug General
  additional stuff not fine transfer.c:1037: 0 0
  HTTP 1.1 or later with persistent connection, pipelining supported
Package Control: Curl HTTP Debug Read
  HTTP/1.1 200 OK
  Server: nginx
  Date: Mon, 11 Aug 2014 15:33:11 GMT
  Content-Type: application/json
  Last-Modified: Mon, 11 Aug 2014 15:30:08 GMT
  Transfer-Encoding: chunked
  Connection: keep-alive
  Vary: Accept-Encoding
  Content-Encoding: gzip
Package Control: Curl HTTP Debug General
  Connection #0 to host sublime.wbond.net left intact
  Closing connection #0
  SSLv3, TLS alert, Client hello (1):
Package Control: Caching https://sublime.wbond.net/repositories.json in 4b866486d124fe4bf800028de1dd1b4f
Package Control: Found git at "/usr/bin/git"
Package Control: Trying to execute command /usr/bin/git fetch
Package Control: Trying to execute command /usr/bin/git log ..--ff/--commit
ignored packages updated to: [Vintage, MarkdownEditing]
found 2 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-alpha7
theme loaded
Package Control: Unable to find a sublime-package file for MarkdownEditing
Package Control: Unable to find file package-metadata.json in the package MarkdownEditing
Package Control: Download Debug
  URL: https://codeload.github.com/SublimeText-Markdown/MarkdownEditing/zip/2.0.9
  Resolved IP: 192.30.252.144
  Timeout: 30
Package Control: Downloading CA cert for codeload.github.com from "https://sublime.wbond.net/certs/7d0986b90061d60c8c02aa3b1cf23850"
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-alpha7' --connect-timeout 30 -sSL --compressed --dump-header /tmp/tmpjr4qcg --cacert '/home/cschreib/.config/sublime-text-3/Packages/User/Package Control.ca-bundle' -v https://sublime.wbond.net/certs/7d0986b90061d60c8c02aa3b1cf23850
reloading Packages/User/Preferences.sublime-settings
found 2 files for base name Default.sublime-theme
theme loaded
Package Control: Curl HTTP Debug General
  About to connect() to sublime.wbond.net port 443 (#0)
    Trying 50.116.34.243...
  connected
  Connected to sublime.wbond.net (50.116.34.243) port 443 (#0)
  successfully set certificate verify locations:
    CAfile: /home/cschreib/.config/sublime-text-3/Packages/User/Package Control.ca-bundle
    CApath: /etc/ssl/certs
  SSLv3, TLS handshake, Client hello (1):
  SSLv3, TLS handshake, Server hello (2):
  SSLv3, TLS handshake, CERT (11):
  SSLv3, TLS handshake, Server key exchange (12):
  SSLv3, TLS handshake, Server finished (14):
  SSLv3, TLS handshake, Client key exchange (16):
  SSLv3, TLS change cipher, Client hello (1):
  SSLv3, TLS handshake, Finished (20):
  SSLv3, TLS change cipher, Client hello (1):
  SSLv3, TLS handshake, Finished (20):
  SSL connection using ECDHE-RSA-AES256-SHA
  Server certificate:
     subject: serialNumber=ZtL8p1RCzFndzRrqxUKqA6bD5HjQv5Zb; C=US; O=sublime.wbond.net; OU=GT52951423; OU=See www.rapidssl.com/resources/cps (c)12; OU=Domain Control Validated - RapidSSL(R); CN=sublime.wbond.net
     start date: 2014-04
     expire date: 2015-02
     subjectAltName: sublime.wbond.net matched
     issuer: C=US; O
     SSL certificate verify ok.
Package Control: Curl HTTP Debug Write
  GET /certs/7d0986b90061d60c8c02aa3b1cf23850 HTTP/1.1
  User-Agent: Sublime Package Control v2.0.0-alpha7
  Host: sublime.wbond.net
  Accept: */*
  Accept-Encoding: deflate, gzip
Package Control: Curl HTTP Debug General
  additional stuff not fine transfer.c:1037: 0 0
  HTTP 1.1 or later with persistent connection, pipelining supported
Package Control: Curl HTTP Debug Read
  HTTP/1.1 200 OK
  Server: nginx
  Date: Mon, 11 Aug 2014 15:33:19 GMT
  Content-Type: application/octet-stream
  Content-Length: 1366
  Last-Modified: Mon, 11 Aug 2014 15:30:07 GMT
  Connection: keep-alive
  ETag: "53e8e17f-556"
  Accept-Ranges: bytes
Package Control: Curl HTTP Debug General
  Connection #0 to host sublime.wbond.net left intact
  Closing connection #0
  SSLv3, TLS alert, Client hello (1):
Package Control: Caching https://sublime.wbond.net/certs/7d0986b90061d60c8c02aa3b1cf23850 in 50d75b6ce8540b399ccbe4ca750af671
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-alpha7' --connect-timeout 30 -sSL --compressed --dump-header /tmp/tmpc5kggg --cacert '/home/cschreib/.config/sublime-text-3/Packages/User/Package Control.ca-bundle' -v https://codeload.github.com/SublimeText-Markdown/MarkdownEditing/zip/2.0.9
Package Control: Curl HTTP Debug General
  About to connect() to codeload.github.com port 443 (#0)
    Trying 192.30.252.144...
  connected
  Connected to codeload.github.com (192.30.252.144) port 443 (#0)
  successfully set certificate verify locations:
    CAfile: /home/cschreib/.config/sublime-text-3/Packages/User/Package Control.ca-bundle
    CApath: /etc/ssl/certs
  SSLv3, TLS handshake, Client hello (1):
  SSLv3, TLS handshake, Server hello (2):
  SSLv3, TLS handshake, CERT (11):
  SSLv3, TLS alert, Server hello (2):
  SSL certificate problem: certificate has expired
  Closing connection #0
Package Control: Error downloading package. } [data not shown]} [data not shown]curl: (60) SSL certificate problem: certificate has expiredMore details here: http://curl.haxx.se/docs/sslcerts.htmlcurl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option.If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL).If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. downloading https://codeload.github.com/SublimeText-Markdown/MarkdownEditing/zip/2.0.9.
error: Package Control

Unable to download MarkdownEditing. Please view the console for more details.
ignored packages updated to: [Vintage]
zoechi

zoechi commented on Aug 12, 2014

@zoechi

+1
Any idea, workaround, ...?

zoechi

zoechi commented on Aug 12, 2014

@zoechi

I deleted the ~/.config/sublime-text-3/Packages/Package Control folder and the
~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package file and reinstalled the package manager. Now it's working again.

cschreib

cschreib commented on Aug 13, 2014

@cschreib

Doing so, don't you loose the packages that were installed using Package Control? Or are they still there, but Package Control does not "own" them any more (i.e. no automatic update)?

FichteFoll

FichteFoll commented on Aug 13, 2014

@FichteFoll
Collaborator

No, Packages are not removed when removing Package Control and PC also does not lose track of them. They are referenced in User/Package Control.sublime-settings.

cschreib

cschreib commented on Aug 13, 2014

@cschreib

I confirm this solution does work.

srikanth-dhondi

srikanth-dhondi commented on Aug 13, 2014

@srikanth-dhondi
Author

Zoechi's solution worked for me as well. Thanks.

wbond

wbond commented on Aug 14, 2014

@wbond
Owner

@cschreib You were running an ancient alpha version of Package Control, which is probably part of the issue.

If anyone else is running into this issue, please see what version of Package Control you are using. It should be 2.0.0 or 2.0.1-beta2.

If you see 2.0.0-alpha7 you need to delete the Packages/Package Control/ folder on your machine and install Package Control fresh. There was a bug during the alpha that got some users stuck on alpha 7.

tnguyen14

tnguyen14 commented on Aug 27, 2014

@tnguyen14

recently ran into this issue through a rather convoluted path. my theme is outdated, and I could not update it no matter what I was trying to do. I removed the theme, and could not re-install it and after looking at the console I saw the same error as @masnick. Following @wbond's instruction helped solve the issue.

masnick

masnick commented on Aug 28, 2014

@masnick

@wbond how do you tell what version of Package Control you're running? Thanks for your help! ❤️

FichteFoll

FichteFoll commented on Aug 28, 2014

@FichteFoll
Collaborator

Package Control: List Packages, then filter Package Control.

srph

srph commented on Sep 1, 2014

@srph

It solved my problem, however after an installation of a new package, I had to repeat the @zoechi's workaround

michaelbutler

michaelbutler commented on Sep 2, 2014

@michaelbutler

I'm running Ubuntu 14.04 LTS, almost fresh install of Sublime Text 3. Even doing workaround by @zoechi did not fix the problem for me.

To solve it, I installed curl with sudo apt-get install curl. Before that, it was using wget which did not work.

With curl it seems to work fine.

33 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @davidhq@payamazadi@jampow@wbond@masnick

        Issue actions

          Package control fails to download new packages · Issue #736 · wbond/package_control