Closed2
WindowsでStable Diffusion WebUI Dockerの環境構築するときにハマったところ

stable-diffusion-webui-docker
Setup方法
実行環境
Windows: 10
WSL: Ubuntu 22.04
Dockerのbuildで
docker compose --profile all up --build
を実行してしばらく経つと
1141.3 EFetched 183 MB in 18min 33s (165 kB/s)
1141.3 : Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mime-support/mime-support_3.64ubuntu1_all.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.82:80: dial tcp 91.189.91.82:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mpdecimal/libmpdec2_2.4.2-3_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.82:80: dial tcp 91.189.91.82:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/x/xdg-user-dirs/xdg-user-dirs_0.17-2ubuntu1_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.83:80: dial tcp 91.189.91.83:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxext/libxext6_1.3.4-0ubuntu1_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.82:80: dial tcp 91.189.91.82:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxfixes/libxfixes3_5.0.3-2_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.83:80: dial tcp 91.189.91.83:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libv/libva/libva-x11-2_2.7.0-2_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.83:80: dial tcp 91.189.91.83:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb-dri2-0_1.14-2_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.83:80: dial tcp 91.189.91.83:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb-dri3-0_1.14-2_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.83:80: dial tcp 91.189.91.83:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/j/jq/libjq1_1.6-1ubuntu0.20.04.1_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.82:80: dial tcp 91.189.91.82:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/j/jq/jq_1.6-1ubuntu0.20.04.1_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.82:80: dial tcp 91.189.91.82:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb1-dev_1.14-2_amd64.deb 403 connecting to archive.ubuntu.com:80: connecting to 91.189.91.82:80: dial tcp 91.189.91.82:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [IP: 91.189.91.81 80]
1141.3 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y fonts-dejavu-core rsync git jq moreutils aria2 ffmpeg libglfw3-dev libgles2-mesa-dev pkg-config libcairo2 libcairo2-dev build-essential" did not complete successfully: exit code: 100
というエラーが出た。
対処法「ファイヤーウォールの設定を一時的にOFFにする」
windowsのファイアウォールのパブリックネットワークを一時的にOFFにしたらエラー起きずにbuildできた。
以下GPTによる詳細説明。
Windowsでファイアウォールを一時的にオフにするには、以下のステップに従ってください:
-
スタートメニューを開く:
スタートボタンをクリックするか、キーボードで Windows キーを押します。 -
設定にアクセス:
スタートメニューから「設定」を選択するか、キーボードで Windows キー + I を同時に押します。 -
更新とセキュリティを選択:
設定ウィンドウで「更新とセキュリティ」をクリックします。 -
Windows セキュリティを開く:
左側のメニューから「Windows セキュリティ」を選択します。 -
ファイアウォールとネットワーク保護を開く:
「ファイアウォールとネットワーク保護」をクリックします。 -
ファイアウォールをオフにする:
プライベートネットワーク、パブリックネットワーク、ドメインネットワークのそれぞれに対して、ファイアウォールをオフにするオプションがあります。使用しているネットワークの種類に応じて適切なものを選択し、ファイアウォールをオフにします。 -
設定を保存:
必要な変更を行った後、設定が自動的に保存されます。 -
作業完了後にファイアウォールを再度オンにする:
作業が完了したら、セキュリティリスクを避けるために必ずファイアウォールを再度オンにしてください。
ファイアウォールを無効にすることはセキュリティリスクを高めるため、必要な作業が終わったらすぐに元の設定に戻すことを忘れないでください。また、ファイアウォールを無効にする前に、行っている作業がファイアウォールの設定と関連しているかどうかを確認することも重要です。

Windows10 -> 11にupdateとしてWSL2でGPU使えるようにする(?)
Windows 10の場合は、然るべきバージョン以上じゃないとWSL2上でGPU計算を行えないらしい
という記述があり、ハマりたくないのでWindows11にした。
このスクラップは2023/11/24にクローズされました