Yocto编译报错server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile

Yocto 编译报错server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

WARNING: Building libpam but ‘pam’ isn’t in DISTRO_FEATURES, PAM won’t work correctly
ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: unable to access ‘https://source.codeaurora.org/quic/le/ffmpeg/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

ERROR: Logfile of failure stored in: /home/android2/SC60_Linux_R09_r038/poky/build/tmp-glibc/work/armv7a-vfp-neon-oe-linux-gnueabi/ffmpeg/2.3-r0/temp/log.do_fetch.30653
Log data follows:
| DEBUG: Executing python function do_fetch
| DEBUG: Executing python function base_do_fetch
| DEBUG: Fetcher accessed the network with the command git -c core.fsyncobjectfiles=0 ls-remote http://source.codeaurora.org/quic/le/ffmpeg/
| DEBUG: Running export PATH="/home/android2/SC60_Linux_R09_r038/poky/scripts:/home/android2/SC60_Linux_R09_r038/poky/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/arm-oe-linux-gnueabi:/home/android2/SC60_Linux_R09_r038/poky/build/tmp-glibc/sysroots/apq8053-32/usr/bin/crossscripts:/home/android2/SC60_Linux_R09_r038/poky/build/tmp-glibc/sysroots/x86_64-linux/usr/sbin:/home/android2/SC60_Linux_R09_r038/poky/build/tmp-glibc/sysroots/x86_64-linux/usr/bin:/home/android2/SC60_Linux_R09_r038/poky/build/tmp-glibc/sysroots/x86_64-linux/sbin:/home/android2/SC60_Linux_R09_r038/poky/build/tmp-glibc/sysroots/x86_64-linux/bin:/home/android2/SC60_Linux_R09_r038/poky/scripts:/home/android2/SC60_Linux_R09_r038/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/android"; git -c core.fsyncobjectfiles=0 ls-remote http://source.codeaurora.org/quic/le/ffmpeg/
| DEBUG: Python function base_do_fetch finished
| DEBUG: Python function do_fetch finished
| ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:
| fatal: unable to access ‘https://source.codeaurora.org/quic/le/ffmpeg/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
|
ERROR: Task 3896 (/home/android2/SC60_Linux_R09_r038/poky/meta-qti-bsp/recipes-multimedia/ffmpeg/ffmpeg_2.3.bb, do_fetch) failed with exit code ‘1’

Second Keyboard Interrupt, stopping…

Summary: 1 task failed:
/home/android2/SC60_Linux_R09_r038/poky/meta-qti-bsp/recipes-multimedia/ffmpeg/ffmpeg_2.3.bb, do_fetch

解决方案:
1.export GIT_SSL_NO_VERIFY = 1
2.sudo update-ca-certificates
3.echo -n | openssl s_client -showcerts -connect github.com:443 2>/dev/null | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’
说明:
1].echo -n n表示输出文字后不换行
2].管道符仅处理前一指令输出正确的信息,对standard error无法直接处理,后交接至下一指令
3].2>/dev/null 把错误信息存入黑洞,直接抛弃,正确的才会通过下一个管道符进入下一指令
4].&表示后台执行,你可以继续占有你的输入窗口
5].sed 是一种在线编辑器 一次一行,当前行存入缓冲区(称为模拟空间)再用sed指令处理缓冲区内容
-e 允许多台编辑
-n 不打印,不写编辑行到标准输出
6].‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ 设置打印范围

以上方法屁用没有

正确:git config --global http.sslverify false

上一篇:迅为i.MX6ULL终结者使用Yocto文件系统开发QT文件系统


下一篇:saltstack的常用模块