如何禁用健全性检查器

问题描述 投票:0回答:1

Ubuntu 22.04.2 LTS。我正在尝试从 Jenkins 作业执行

bitbake <image>
。构建失败并出现错误:

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
  Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
  Following is the list of potential problems / advisories:
  Your Python 3 is not a full install. Please install the module distutils.sysconfig (see the Getting Started guide for further information).

我尝试安装

distutils
模块(尝试了这里的方法),但遇到了无法修复的依赖问题,所以作为替代解决方案,我想禁用健全性检查

这就是

sanity.conf
目前的样子:

# Sanity checks for common user misconfigurations
#
# See sanity.bbclass
#
# Expert users can confirm their sanity with "touch conf/sanity.conf"
BB_MIN_VERSION = "1.46.0"

SANITY_ABIFILE = "${TMPDIR}/abi_version"

SANITY_VERSION ?= "1"
LOCALCONF_VERSION  ?= "1"
LAYER_CONF_VERSION ?= "7"
SITE_CONF_VERSION  ?= "1"

INHERIT += "sanity"

那么如何更新

sanity.conf
以禁用健全性检查器?

jenkins yocto bitbake
1个回答
0
投票

如评论中所述,不建议禁用健全性检查,除非您准备好面对错误并自行修复它们。

在您的

local.conf
或您环境中任何其他合适的
.conf
文件中,添加:

INHERIT:remove = "sanity"
© www.soinside.com 2019 - 2024. All rights reserved.