Yocto LF5.10.52_2.1.0 BSP repo sync fail

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Yocto LF5.10.52_2.1.0 BSP repo sync fail

7,933件の閲覧回数
joshua_jhan
Contributor III

Hi 

I try to download newest Yocto BSP following IMX_YOCTO_PROJECT_USERS_GUIDE

but when I try "repo init" and "repo sync", it failed.

fail log as below:

Fetching: 0% (0/13) warming up
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
poky: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch poky from https://git.yoctoproject.org/git/poky
Fetching: 30% (4/13) meta-freescale-3rdparty
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
meta-python2: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch meta-python2 from https://git.openembedded.org/meta-python2
Fetching: 100% (13/13), done in 7.633s
Garbage collecting: 100% (13/13), done in 0.026s
Fetching: 0% (0/2) warming up
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
meta-python2: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none

meta-python2:
fatal: unable to access 'https://git.openembedded.org/meta-python2/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch meta-python2 from https://git.openembedded.org/meta-python2

fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
poky: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none

poky:
fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: none CRLfile: none
error: Cannot fetch poky from https://git.yoctoproject.org/git/poky
Fetching: 100% (2/2), done in 10.039s
Garbage collecting: 100% (2/2), done in 0.006s
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout meta-python2: Cannot initialize work tree for meta-python2
error: Cannot checkout meta-python2
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout poky: Cannot initialize work tree for poky
error: Cannot checkout poky

error: Unable to fully sync the tree.
error: Downloading network changes failed.
error: Checking out local projects failed.
Failing repos:
sources/meta-python2
sources/poky
Try re-running with "-j1 --fail-fast" to exit at the first error.

 how can i fix this issue, thanks.

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

7,927件の閲覧回数
khang_letruong
Senior Contributor III

Hi @joshua_jhan ,

I struggled similar issue. Then you might need to update the list of public CA in your host machine (Ubuntu for example) :

# update CA certificates
sudo apt-get install apt-transport-https ca-certificates -y
sudo update-ca-certificates

 

Hope that helps,

K

0 件の賞賛
返信

7,896件の閲覧回数
ko-hey
Senior Contributor II

Hi @khang_letruong ,

 

I got similar message when I do "repo init" and "repo sync" as below.

  File "/xxx/xxx/imx-yocto-bsp_5.10.52-2.1.0/.repo/repo/main.py", line 79
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

 

I tried your solution but got same error in this moment.

Could you advise me to avoid this error ?

 

Ko-hey

0 件の賞賛
返信

7,883件の閲覧回数
khang_letruong
Senior Contributor III

Hi @ko-hey ,

I have never gotten this kind of error. My proposed solution was for the issue  "server certificate verification failed. CAfile: none CRLfile: none", subject of this question.

I would suspect that the python version on your host machine is not good (i.e. python3 is missing). Please setup you host machine according to the IMX_YOCTO_PROJECT_USERS_GUIDE.pdf included in every BSP release :
Host-setup.png

Regards,

K

7,871件の閲覧回数
ko-hey
Senior Contributor II

Hi @khang_letruong ,

 

I tried those command by your advise and there are no update about the packages but the error message disappeared.

I'm not sure about the reason of error but it solved.

 

Anyway, thank you for your advise.

 

Ko-hey

タグ(1)
0 件の賞賛
返信