这个错误呢,有多种多样,不过一般的报错如下
environment variables loaded using: /bin/bash -l Package Control: Skipping automatic upgrade, last run at 2019-04-09 14:43:45, next run at 2019-04-09 15:43:45 or after no command for selector: noop: reloading settings Packages/User/Package Control.sublime-settings Package Control: Fetching list of available packages and dependencies Platform: osx-x64 Sublime Text Version: 3132 Package Control Version: 3.3.0 Package Control: Download Debug URL: https://raw.githubusercontent.com/SuCicada/channel_v3.json/master/channel_v3.json Timeout: 30 Resolved IP: 151.101.108.133 Resolved IPv6: ::ffff:151.101.108.133 Package Control: Urllib Debug Proxy http_proxy: https_proxy: proxy_username: proxy_password: Package Control: Found previously exported CA bundle at /Users/xiaojiabin/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt (267421 bytes) Package Control: Urllib HTTPS Debug General Connecting to raw.githubusercontent.com on port 443 Package Control: Urllib HTTPS Debug General Upgrading connection to SSL using CA certs file at /Users/xiaojiabin/Library/Application Support/Sublime Text 3/Packages/User/Package Control.merged-ca-bundle Using hostname "raw.githubusercontent.com" for TLS SNI extension Successfully upgraded connection to raw.githubusercontent.com:443 with SSL Using TLSv1/SSLv3 with cipher ECDHE-RSA-AES128-SHA Server SSL certificate: subject: CN=www.github.com,O=GitHub, Inc.,L=San Francisco,S=California,C=US subject alt name: www.github.com, *.github.com, github.com, *.github.io, github.io, *.githubusercontent.com, githubusercontent.com expire date: May 13 12:00:00 2020 GMT Certificate validated for raw.githubusercontent.com Package Control: Urllib HTTPS Debug Write GET /SuCicada/channel_v3.json/master/channel_v3.json HTTP/1.1 Accept-Encoding: bzip2,gzip,deflate User-Agent: Package Control v3.3.0 Host: raw.githubusercontent.com Connection: Keep-Alive Package Control: Urllib HTTPS Debug Read HTTP/1.1 200 OK Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: deny X-XSS-Protection: 1; mode=block ETag: "0e0bbf794fcc277a62768d904cce4b6af959fd29" Content-Type: text/plain; charset=utf-8 Cache-Control: max-age=300 X-Geo-Block-List: X-GitHub-Request-Id: 9620:4DD9:1F0EF4:216A84:5CAC3F12 Content-Encoding: gzip Content-Length: 497363 Accept-Ranges: bytes Date: Tue, 09 Apr 2019 06:45:46 GMT Via: 1.1 varnish Connection: keep-alive X-Served-By: cache-tyo19929-TYO X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1554792347.798530,VS0,VE0 Vary: Authorization,Accept-Encoding Access-Control-Allow-Origin: * X-Fastly-Request-ID: 8cda0d07b737d965739d99bf745efbd2daa01660 Expires: Tue, 09 Apr 2019 06:50:46 GMT Source-Age: 135 Package Control: Caching https://raw.githubusercontent.com/SuCicada/channel_v3.json/master/channel_v3.json in /Users/xiaojiabin/Library/Application Support/Sublime Text 3/Packages/User/Package Control.cache/0237eec831c44655eb2369f01408da2c Package Control: Urllib HTTPS Debug General Closing connection to raw.githubusercontent.com on port 443 after 1 request ignored packages updated to: ["Vintage", "Vue Syntax Highlight"] reloading settings Packages/User/Package Control.sublime-settings Package Control: Fetching list of available packages and dependencies Platform: osx-x64 Sublime Text Version: 3132 Package Control Version: 3.3.0 Package Control: Download Debug URL: https://codeload.github.com/vuejs/vue-syntax-highlight/zip/oldsyntax-3.2.5 Timeout: 30 Resolved IP: 54.251.140.56 Resolved IPv6: ::ffff:54.251.140.56 Package Control: Urllib Debug Proxy http_proxy: https_proxy: proxy_username: proxy_password: Package Control: Found previously exported CA bundle at /Users/xiaojiabin/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt (267421 bytes) Package Control: Urllib HTTPS Debug General Connecting to codeload.github.com on port 443 reloading settings Packages/User/Preferences.sublime-settings reloading /Users/xiaojiabin/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings Package Control: Urllib HTTPS Debug General Upgrading connection to SSL using CA certs file at /Users/xiaojiabin/Library/Application Support/Sublime Text 3/Packages/User/Package Control.merged-ca-bundle Using hostname "codeload.github.com" for TLS SNI extension Package Control: Error downloading package. HTTP exception InvalidCertificateException (Host codeload.github.com returned an invalid certificate ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:548))) downloading https://codeload.github.com/vuejs/vue-syntax-highlight/zip/oldsyntax-3.2.5. error: Package Control Unable to download Vue Syntax Highlight. Please view the console for more details. ignored packages updated to: ["Vintage"] reloading /Users/xiaojiabin/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings reloading settings Packages/User/Package Control.sublime-settings reloading settings Packages/User/Preferences.sublime-settings reloading settings Packages/User/Preferences.sublime-settings
这个错误产生的原因是我们的 Python 的 SSL 错误所致
修复方式有两种
-
把 "Preferences -> Package Settings -> Package Control -> Settings Default" 中的 "channels" 改成如下
"downloader_precedence": { "linux": [ "curl", "urllib", "wget" ], "osx": [ "curl", "urllib" ], "windows": [ "wininet" ] },
当然了,这是不友好的,对吧。请看第二种
-
在 "Preferences -> Package Settings -> Package Control -> Settings User" 中新添加一个项 "channels"
"downloader_precedence": { "linux": [ "curl", "urllib", "wget" ], "osx": [ "curl", "urllib" ], "windows": [ "wininet" ] },
目前尚无回复