sublimetext - Sublime Text 3-包控制: “No packages available for installation” error when trying to install packages through secure channel

标签 sublimetext sublimetext3 ubuntu-14.04 package-control

我在Ubuntu 14.04 LTS 64位上运行Sublime。我尝试使用简单脚本和手动安装方法在Sublime Text 3上安装Package Installer。

每当我尝试运行“安装软件包”选项时,都会出现错误消息“没有可用的软件包”

控制台显示以下跟踪:

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

如果我将http://sublime.wbond.net/repositories.json添加为 channel ,则安装程序包开始显示程序包列表。但是,当我尝试安装软件包(例如Pretty JSON)时,我再次收到与安全证书相关的错误,并带有以下控制台跟踪信息:
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

欢迎任何建议使Package Control与安全 channel 一起使用。

用于包控制的其他调试跟踪:

在为包控制启用debug后,我得到以下跟踪:
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.

最佳答案

今天有同样的问题。重新安装程序包控件:

  • Sublime Text 3> Packages文件夹
  • 内的Package Control文件夹已删除
  • 转到https://sublime.wbond.net/installation并在那里执行了手动安装说明

  • ...即
  • 单击首选项>浏览软件包…菜单
  • 浏览一个文件夹,然后进入“Installed Packages/”文件夹
  • 下载Package Control.sublime-package并将其复制到Installed Packages/目录
  • 重新启动 Sublime Text

  • 像魅力一样工作!

    关于sublimetext - Sublime Text 3-包控制: “No packages available for installation” error when trying to install packages through secure channel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25559837/

    相关文章:

    autocomplete - 如何使 SublimeText 版本 4 的自动完成功能像版本 3 一样?

    json - 在 JSON 中将 sublime text 与 postgres 连接时出现错误 "psql: fe_sendauth: no password supplied"

    python - 如何判断我的 AWS EC2 实例是否受 Amazon-EBS 支持?

    sublimetext2 - Sublime Text 2 自动文件路径补全

    sublimetext - jsFiddle 中使用了哪种配色方案,Sublime Text 中使用了哪种配色方案?

    c++ - 无法使用 Sublime Text 2 构建 C++ 程序

    html - 类 ID 不是 CSS 中的语法颜色编码

    python - Sublime Text 3 Python3 构建无法正常工作?

    ubuntu - yarn安装命令报错No such file or directory : 'install'

    linux - MongoDB 无法启动 - ***在 fassert() 失败后中止