Yocto 如果BitBake可以';找不到www.example.com?

Yocto 如果BitBake可以';找不到www.example.com?,yocto,bitbake,Yocto,Bitbake,BitBake对我来说失败了,因为它找不到 我的电脑是x86-64,运行原生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;

BitBake对我来说失败了,因为它找不到

我的电脑是x86-64,运行原生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的原因,是超级用户论坛的一个问题。我的问题是,为什么BitBake依赖于www.example.com的存在?该网站的哪些方面对BitBake的运营至关重要如果BitBake找不到错误,为什么要发布错误?


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

对我来说,这似乎是我的ISP(CenturyLink)没有正确解决www.example.com的问题。如果我试图在浏览器地址栏中导航到,我只会被带到ISP的“这不是有效地址”页面

从技术上讲,这是不应该发生的,但不管出于什么原因。通过修改poky/meta-poky/conf/distro/poky.conf中的连通性检查URI,我暂时解决了这个问题:

# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
# fetch from the network (and warn you if not). To disable the test set
# the variable to be empty.
# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master    
CONNECTIVITY_CHECK_URIS ?= "https://www.google.com/"

有关添加www.example.com检查的更多信息和讨论,请参阅。不确定什么是最好的长期解决方案,但上面的更改使我能够成功构建。

修改poky.conf对我来说不起作用(据我所知,修改poky下的任何内容对于长期解决方案来说都是不可能的)

修改/conf/local.conf是唯一适合我的解决方案。只需添加两个选项之一:

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

#skip connectivity checks
CONNECTIVITY_CHECK_URIS = ""

此解决方案最初是找到的。

如果您想在不修改
poky.conf
local.conf
或任何相关文件的情况下解决此问题,只需执行以下操作:

$touch conf/sanity.conf
meta/conf/sanity.conf
中清楚地写着:

专家用户可以通过“touch conf/sanity.conf”确认他们的健康状况

如果您不想在每个会话或构建中执行此命令,可以从
meta/conf/sanity.conf
中注释掉行
INHERIT+=“sanity”
,因此文件如下所示:


这表明存在连接问题,可能是任何问题:代理、dns等。为了澄清:为什么BitBake依赖于www.example.com?我会编辑这个问题;它只是用它来检查主机是否连接了互联网。我和同一个ISP有同样的问题,这就解决了。我在法国,我的ISP是橙色的,我也不能访问或ping。这为我解决了问题,谢谢:)这应该是公认的答案;修改local.conf比修改poky.conf更受欢迎,后者很难维护,尤其是在团队中工作时