当我打开我的 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 .
该错误的当前状态是关闭 .
如何临时解决问题
以下是在修复错误之前暂时克服问题的方法:
login
从您左侧的钥匙串(keychain)列表中。 Cert 0:
旁边的错误消息中的关键字,在您的情况下是:Kaspersky Web Anti-Virus Certification Authority
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/