質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
bash

bash(Bourne-again-Shell)は sh(Bourne Shell)のインプリメンテーションに様々な機能が追加されたシェルです。LinuxやMac OS XではBashはデフォルトで導入されています。

docker-compose

docker-composeとは、複数のコンテナで構成されるサービスを提供する手順を自動的し管理を簡単にするツール。composeファイルを使用しコマンド1回で設定した全サービスを作成・起動することが可能です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

Q&A

0回答

855閲覧

【docker】 build できない。。このエラーはなんでしょうか?

tetsutail_study

総合スコア25

bash

bash(Bourne-again-Shell)は sh(Bourne Shell)のインプリメンテーションに様々な機能が追加されたシェルです。LinuxやMac OS XではBashはデフォルトで導入されています。

docker-compose

docker-composeとは、複数のコンテナで構成されるサービスを提供する手順を自動的し管理を簡単にするツール。composeファイルを使用しコマンド1回で設定した全サービスを作成・起動することが可能です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

0グッド

0クリップ

投稿2021/07/09 03:37

前提・実現したいこと

こちらの質問で、apt-getできないエラーを解決したのですが、その後、buildが進んでいくと、以下のようなエラーが現れてしまいました。このエラーの原因と、解決方法を知りたいです。
よろしくお願いします。

発生している問題・エラーメッセージ

The following NEW packages will be installed: libboost-dev libboost1.65-dev libviennacl-dev ocl-icd-opencl-dev opencl-c-headers 0 upgraded, 5 newly installed, 0 to remove and 9 not upgraded. Need to get 7625 kB of archives. After this operation, 124 MB of additional disk space will be used. Err:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libboost1.65-dev amd64 1.65.1+dfsg-0ubuntu5 Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Err:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libboost-dev amd64 1.65.1.0ubuntu1 Unable to connect to archive.ubuntu.com:http: Err:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 opencl-c-headers all 2.2~2018.02.21-gb5c3680-1 Unable to connect to archive.ubuntu.com:http: Err:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 ocl-icd-opencl-dev amd64 2.2.11-1ubuntu1 Unable to connect to archive.ubuntu.com:http: Err:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libviennacl-dev all 1.7.1+dfsg1-2ubuntu1 Unable to connect to archive.ubuntu.com:http: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.65.1/libboost1.65-dev_1.65.1+dfsg-0ubuntu5_amd64.deb Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/boost-defaults/libboost-dev_1.65.1.0ubuntu1_amd64.deb Unable to connect to archive.ubuntu.com:http: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/k/khronos-opencl-headers/opencl-c-headers_2.2~2018.02.21-gb5c3680-1_all.deb Unable to connect to archive.ubuntu.com:http: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/ocl-icd/ocl-icd-opencl-dev_2.2.11-1ubuntu1_amd64.deb Unable to connect to archive.ubuntu.com:http: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/v/viennacl/libviennacl-dev_1.7.1+dfsg1-2ubuntu1_all.deb Unable to connect to archive.ubuntu.com:http: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? The command '/bin/sh -c set -xe && git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose && cd /usr/local/openpose && bash ./scripts/ubuntu/install_deps.sh && mkdir -p /usr/local/openpose/build && cd /usr/local/openpose/build && cmake .. && make -j${nproc} && make install' returned a non-zero code: 100

該当のソースコード

bash

1docker build -t openpose .

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2021/07/09 04:44

前の質問で解決した、ふうなことをおっしゃっていますが、実際どういうことをしているのか、改めて示してもらえませんか?(第三者が再現可能なレベルの情報として。)
tetsutail_study

2021/07/09 04:48

+ apt-get update Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease Could not connect to developer.download.nvidia.com:443 (152.199.39.144), connection timed out Err:2 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease Unable to connect to developer.download.nvidia.com:https: Err:3 http://archive.ubuntu.com/ubuntu bionic InRelease Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Err:4 http://security.ubuntu.com/ubuntu bionic-security InRelease Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Err:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Unable to connect to archive.ubuntu.com:http: Err:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Unable to connect to archive.ubuntu.com:http: Reading package lists... W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Unable to connect to archive.ubuntu.com:http: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Unable to connect to archive.ubuntu.com:http: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out W: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/InRelease Could not connect to developer.download.nvidia.com:443 (152.199.39.144), connection timed out W: Failed to fetch https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/InRelease Unable to connect to developer.download.nvidia.com:https: W: Some index files failed to download. They have been ignored, or old ones used instead. + apt-get install -y git sudo wget qtbase5-dev build-essential ffmpeg gdebi libopencv-dev Reading package lists... Building dependency tree... Reading state information... Package git is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'git' has no installation candidate E: Unable to locate package sudo E: Unable to locate package wget E: Unable to locate package qtbase5-dev E: Unable to locate package ffmpeg E: Unable to locate package gdebi E: Unable to locate package libopencv-dev The command '/bin/sh -c set -xe && apt-get update && apt-get install -y git sudo wget qtbase5-dev build-essential ffmpeg gdebi libopencv-dev' returned a non-zero code: 100
tetsutail_study

2021/07/09 04:52

前の質問でこのようなエラーが出て困っていたところ、「apt-getしている際に、リポジトリ接続で connection timed out しているので、おそらくコンテナから外に接続できていない、NW周りの設定を見直してみてください」と回答をいただき、記事を参考にしながら、dockerfileにプロキシを記述することで解決できるところまで辿り着きました。無事、上記のエラーの文言は消えて、質問内容は解決したのですが、ビルドの途中で、次は本質問のようなエラーが出てしまいました。
退会済みユーザー

退会済みユーザー

2021/07/09 07:24

「dockerfileにプロキシを記述すること」が100人いたら100人とも同じやり方ではないと思うので、質問者さんがどう対処したかを知りたいわけです。たぶん、プロキシーの記述の仕方が適切でないんだと察するわけで。
tetsutail_study

2021/07/09 07:36

ENV http_proxy=大学のやつ ENV https_proxy=大学のやつ ENV ftp_proxy=大学のやつ この3行をdockerfile内のFROMより下に記述しました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問