macos - 在 Sublime Text 3 中执行安全转储信任设置时出错

标签 macos sublimetext3 package-control

当我打开我的 Sublime Text 时,有时会收到以下错误,尤其是在上周。

Package Control

Error executing: /usr/bin/security dump-trust-settings -d

SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
Number of trusted certs = 3
Cert 0: Kaspersky Web Anti-Virus Certification Authority
   Number of trust settings : 0
Cert 1: GTE CyberTrust Global Root
Cert 2: Class 3 Public Primary Certification Authority

VCS-based packages can be ignored with the "ignore_vcs_packages" setting.

我想知道这是一个错误还是背后有恶意?我正在运行 OS X El Capitan。

我没有 Kaspersky Web Anti-Virus,这真的让我很担心。

有任何想法吗?

最佳答案

编辑 20/09/2016

Package Control 现在已修复并发布更新,其中包含以下更改日志:

Package Control

Version 3.2 Release Notes This version of Package Control focuses on bug-fixes, with notable changes including:

  • OS X TLS trust roots are exported using APIs to prevent the error message displayed to some El Capitan users

  • Theme, syntax and color scheme upgrades have been improved and should result in fewer popup messages when filenames change

  • Various bugs related to installing dependencies have been resolved

  • Windows and OS X trust roots are exported in a way that valid/invalid purpose information is now communicated to the OpenSSL-based Python ssl module

  • Further improvements have been made to handling of git/hg package upgrades

  • The Windows WinINet downloader has improved compatibility with Windows 10



这现在应该解决了问题,并且一旦您打开 Sublime Text,更新应该会自动执行。

编辑 2016 年 7 月 30 日

根据下面列出的错误问题,该错误由用户 wbond 修复:

Replacing the old trust list export code with new code from oscrypto. There will be a new release in the near future that includes this.



也就是说,这个问题将随着即将到来的更新而消失。

关于错误

看起来这是 Package Control 的一个已知错误自 9 月 23 日起。
这也只出现在 OS X El Capitan(版本 10.11)用户中。

我想这将通过更新来解决。虽然这是一个已知错误,原因是 KeyChain 的认证。没有理由担心。

有关该错误的更多信息并让自己保持最新状态,请查看 here .

该错误的当前状态是关闭 .

如何临时解决问题

以下是在修复错误之前暂时克服问题的方法:
  • 从您的应用程序中打开钥匙串(keychain)访问,(通过输入您的密码,确保左上角的锁已解锁)。
  • 然后选择login从您左侧的钥匙串(keychain)列表中。
  • 在右上角的搜索栏中,输入位于 Cert 0: 旁边的错误消息中的关键字,在您的情况下是:Kaspersky Web Anti-Virus Certification Authority

  • enter image description here
  • 然后,您可能会(不要考虑上面的屏幕截图,在您的情况下,您会得到结果)在表格下方有预期的结果。
  • 右键单击并删除证书。 (您可能会提示输入密码)
  • 通过在 Terminal.app 中运行以下命令来验证该过程是否成功: /usr/bin/security dump-trust-settings -d
  • 如果 Terminal 中上一个命令的结果显示以下消息: SecTrustSettingsCopyCertificates: No Trust Settings were found.那么一切都成功了,否则重试该过程,直到您收到此消息。

  • 上述临时修复的积分here ,并感谢下面的 Diego Plentz 用户指出教程引用。

    关于macos - 在 Sublime Text 3 中执行安全转储信任设置时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33224830/

    相关文章:

    ubuntu - 无法运行崇高的文本

    php - 丢失 php 作为文件类型 sublime 3

    sublimetext - 是否可以在本地托管Sublime Text的Package Control?

    python - 安装了 Python 3.8.5,但我的终端仍然检测到 Python 2.7(Mac 上的 Catalina)

    macos - Mac OS X 上的 64 位程序集运行时错误 : "dyld: no writable segment" and "Trace/BPT trap"

    c++ - 使用 HTTP 客户端主体时,带有 Boost Mac OSX 段错误的 cpp-Netlib

    ubuntu - Sublime Text 3(带有 Xdebug 客户端插件)+ Vagrant VM(Ubuntu)

    objective-c - 如何在Cocoa中显示大量的十六进制文本?

    console - 包控制 : Install Package File "<string>", 第 1 行 包控制:安装包 ^ SyntaxError:语法无效

    sublimetext2 - 我如何使用包控制在 sublime text 中安装包?