web-dev-qa-db-ja.com

www.example.comが見つからないのに、なぜBitBakeエラーが発生するのですか?

BitBakeが見つからないため、失敗します https://www.example.com

私のコンピューターは、ネイティブXubuntu18.04を実行しているx86-64です。ネットワーク接続は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の運営に非常に重要なのは、そのWebサイトについて何ですか? BitBakeが見つからないのにエラーを投稿するのはなぜですか https://www.example.com

現時点では、BB_NO_NETWORK = "1"に設定したくありません。まず、問題の根本原因を理解して解決したいと思います。

6
Ray Depew

私にとって、これは私のISP(CenturyLink)がwww.example.comを正しく解決していないという問題のようです。ブラウザのアドレスバーで https://www.example.com に移動しようとすると、ISPの「これは有効なアドレスではありません」ページに移動します。

技術的に言えば、これは想定発生しませんが、何らかの理由で発生します。 poky/meta-poky/conf/distro/poky.confのCONNECTIVITY_CHECK_URISを実際に解決するものに変更することで、これを一時的に回避することができました。

# 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チェックの追加に関する詳細と説明については、 このコミット を参照してください。長期的な最善の修正方法はわかりませんが、上記の変更により、正常にビルドできました。

9
montaguk

Poky.confの変更は私にはうまくいきませんでした(そして私が読んだことから、Pokyの下で何かを変更することは長期的な解決策としてはノーノーです)。

/conf/local.confを変更することが、私にとって有効な唯一の解決策でした。 2つのオプションのいずれかを追加するだけです。

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

#skip connectivity checks
CONNECTIVITY_CHECK_URIS = ""

この解決策は最初に見つかりました ここ

5
bamos