刚刚安装
Yocto
。在morty
树枝上。执行以下命令:
cd poky
source oe-init-build-env build-qemuarm
在
conf/local.conf
中将机器名称更改为MACHINE ?= "qemuarm"
然后执行以下操作:
$ bitbake core-image-minimal
Loading cache: 100% |##########################################################################################################| Time: 0:00:00
Loaded 1320 entries from dependency cache.
ERROR: Execution of event handler 'sstate_eventhandler2' failed
Traceback (most recent call last):
File "/home/some-user/projects/melp/poky/meta/classes/sstate.bbclass", line 1015, in sstate_eventhandler2(e=<bb.event.ReachableStamps object at 0x7fbc17f2e0f0>):
for l in lines:
> (stamp, manifest, workdir) = l.split()
if stamp not in stamps:
ValueError: not enough values to unpack (expected 3, got 1)
ERROR: Command execution failed: Traceback (most recent call last):
File "/home/some-user/projects/melp/poky/bitbake/lib/bb/command.py", line 101, in runAsyncCommand
self.cooker.updateCache()
File "/home/some-user/projects/melp/poky/bitbake/lib/bb/cooker.py", line 1658, in updateCache
bb.event.fire(event, self.databuilder.mcdata[mc])
File "/home/some-user/projects/melp/poky/bitbake/lib/bb/event.py", line 201, in fire
fire_class_handlers(event, d)
File "/home/some-user/projects/melp/poky/bitbake/lib/bb/event.py", line 124, in fire_class_handlers
execute_handler(name, handler, event, d)
File "/home/some-user/projects/melp/poky/bitbake/lib/bb/event.py", line 96, in execute_handler
ret = handler(event)
File "/home/some-user/projects/melp/poky/meta/classes/sstate.bbclass", line 1015, in sstate_eventhandler2
(stamp, manifest, workdir) = l.split()
ValueError: not enough values to unpack (expected 3, got 1)
看起来这是一个
python
错误。有谁知道是什么问题?难道我用错版本了?
这是
python --version
的输出
$ python --version
Python 2.7.12
我做错了什么?
您意识到莫蒂已经 18 个月大了,几周后就会得到更长的支持,对吧?
无论如何,看起来
sstate-cache/
不知何故已损坏。删除您的 tmp/
和 sstate-cache/
目录,然后重试。
我也面临着同样的问题。
我浏览了这篇文章以及 bitbake 失败 和 事件处理程序“check-sanity-eventhandler”执行失败
没有什么对我有用。即使我禁用主文件夹的加密如何禁用主文件夹加密,它仍然对我不起作用。
基本上,我使用的是 Ubuntu 20.04.06 LTS 和 pocky dunfell 分支。
我在虚拟机中安装了ubuntu 18.04 LTS并使用了pocky dunfell分支。这对我有用。
在另一台 Ubuntu 20.04.5 LTS 机器中,我在 conf/local.conf 文件中添加了此命令
BB_SIGNATURE_HANDLER = "OEEquivHash"
BB_HASHSERVE = "auto"
BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687"
SSTATE_MIRRORS ?= "file://.* https://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
这对我有用。