SSL:CERTIFICATE_VERIFY_FAILED] 证书验证在自动化时失败-git.py

SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed on automate-git.py

我正在尝试在我的 Ubuntu 20.10 机器上本地编译 CEF,但是我的 automate-git.py 由于在 运行 挂钩时出现奇怪的错误而无法完成:

Apply runhooks.patch in /home/user/code/chromium_git/chromium/src
    9   5   build/toolchain/win/setup_toolchain.py
    11  0   build/vs_toolchain.py
... successfully applied.
-------- Running "gclient runhooks --jobs 16" in "/home/user/code/chromium_git/chromium"...
Running hooks:   5% ( 6/101) nacltools        
________ running 'vpython src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' in '/home/user/code/chromium_git/chromium'
INFO: --Syncing arm_trusted to revision 2--
INFO: Downloading package archive: emulator_arm_trusted_precise.tgz (1/1)
package_version: Could not download URL (https://storage.googleapis.com/nativeclient-archive2/toolchain/2/emulator_arm_trusted_precise.tgz): <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>
Error: Command 'vpython src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' returned non-zero exit status 1 in /home/user/code/chromium_git/chromium
Traceback (most recent call last):
  File "../automate/automate-git.py", line 1385, in <module>
    run("gclient runhooks --jobs 16", chromium_dir, depot_tools_dir)
  File "../automate/automate-git.py", line 69, in run
    return subprocess.check_call(
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'runhooks', '--jobs', '16']' returned non-zero exit status 2.

虽然重启成功了,但是以后会出现编译错误。我在 ~/.wgetrc 中粘贴了 check_certificate = off,在 ~/.curlrc 中粘贴了 insecure,但还没有成功。我该怎么办?

我通过设置一个 VM 并在其中编译 CEF 解决了这个问题,它神奇地开始工作了,所以我猜这是我系统的问题。