最近用新版 ubuntu 24.04 build yocto 出現沒有權限錯誤

ERROR: PermissionError: [Errno 1] Operation not permitted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mohammed/Documents/poky/bitbake/bin/bitbake-worker", line 278, in child
bb.utils.disable_network(uid, gid)
File "/home/mohammed/Documents/poky/bitbake/lib/bb/utils.py", line 1696, in disable_network

 

workaround 的解法

echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns

 

ref:

https://lists.yoctoproject.org/g/yocto/topic/workaround_for_uid_map_error/106192359

 

創作者介紹
創作者 我要回家想一想~ 的頭像
JohnDX

我要回家想一想~

JohnDX 發表在 痞客邦 留言(0) 人氣( 93 )