执行buildman --fetch-arch arm提示"urllib2.URLError: "如何处理?

答: 在uboot源码的tools/buildman/toolchain.py中取消证书验证,修改内容如下:

diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index a65737fdf8..94877f1047 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -8,6 +8,7 @@ from HTMLParser import HTMLParser
import os
import sys
import tempfile
+import ssl
import urllib2 import bsettings
@@ -566,6 +567,7 @@ class Toolchains:
# Fist get the URL for this architecture
col = terminal.Color()
print col.Color(col.BLUE, "Downloading toolchain for arch '%s'" % arch)
+ ssl._create_default_https_context = ssl._create_unverified_context
url = self.LocateArchUrl(arch)
if not url:
print ("Cannot find toolchain for arch '%s' - use 'list' to list" %
上一篇:ASP.NET Core2基于RabbitMQ对Web前端实现推送功能


下一篇:ASP.NET Core2利用Jwt技术在服务端实现对客户端的身份认证