gpt4 book ai didi

yocto - 如果找不到 www.example.com,为什么 BitBake 会出错?

转载 作者:行者123 更新时间:2023-12-04 16:38:12 24 4
gpt4 key购买 nike

BitBake 对我来说失败了,因为它找不到 https://www.example.com .

我的电脑是 x86-64,运行 native Xubuntu 18.04。网络连接通过 DSL。我正在使用最新版本的 OpenEmbedded/Yocto 工具链。

这是我运行 BitBake 时得到的响应:

$ bitbake -k core-image-sato
WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
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:

Fetcher failure for URL: 'https://www.example.com/'. URL https://www.example.com/ doesn't work.
Please ensure your host's network is configured correctly,
or set BB_NO_NETWORK = "1" to disable network access if
all required sources are on local disk.


Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

网络问题,即我无法访问 www.example.com 的原因,是 SuperUser 论坛的问题。我的问题是,为什么 BitBake 依赖 www.example.com 的存在?那个对 BitBake 的运营如此重要的网站是什么? 如果 BitBake 找不到 https://www.example.com,为什么会发布错误? ?

此时,我不想设置 BB_NO_NETWORK = "1"。我宁愿先了解并解决问题的根本原因。

最佳答案

修改 poky.conf 对我不起作用(从我读到的内容来看,修改 Poky 下的任何内容对于长期解决方案来说都是禁忌)。

修改/conf/local.conf 是唯一对我有用的解决方案。只需添加以下两个选项之一:

#check connectivity using google
CONNECTIVITY_CHECK_URIS = "https://www.google.com/"

#skip connectivity checks
CONNECTIVITY_CHECK_URIS = ""

这个解决方案最初发现 here .

关于yocto - 如果找不到 www.example.com,为什么 BitBake 会出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52395512/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com