実現したいこと
管理者権限PowerShell で下記のコマンドで WSL2 をインストールしたので、
PowerShell
1>wsl --install -d Debian
$ sudo apt update したら、4つのリポジトリ(?)すべてでCannot initiate the connection to エラー。
$ sudo ping google.com したら、
PING google.com (216.58.220.142) 56(84) bytes of data.
で止まったまま進まない。
最終的には $ sudo apt update && sudo apt install {いろいろなパッケージ} をしたいです。
環境情報 -----------------------------
パソコンのOSは、
エディション Windows 10 Home
バージョン 22H2
発生している問題・分からないこと
$ sudo apt update した結果は下記です。
Bash
1Ign:1 http://deb.debian.org/debian bookworm InRelease 2Ign:2 http://deb.debian.org/debian bookworm-updates InRelease 3Ign:3 http://ftp.debian.org/debian bookworm-backports InRelease 4Ign:1 http://deb.debian.org/debian bookworm InRelease 5Ign:2 http://deb.debian.org/debian bookworm-updates InRelease 6Ign:3 http://ftp.debian.org/debian bookworm-backports InRelease 7Ign:1 http://deb.debian.org/debian bookworm InRelease 8Ign:2 http://deb.debian.org/debian bookworm-updates InRelease 9Ign:3 http://ftp.debian.org/debian bookworm-backports InRelease 10Err:1 http://deb.debian.org/debian bookworm InRelease 11 Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (151.101.110.132), connection timed out Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) 12Err:2 http://deb.debian.org/debian bookworm-updates InRelease 13 Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) 14Err:3 http://ftp.debian.org/debian bookworm-backports InRelease 15 Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (151.101.110.132), connection timed out Cannot initiate the connection to ftp.debian.org:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) 16Ign:4 http://security.debian.org/debian-security bookworm-security InRelease 17Ign:4 http://security.debian.org/debian-security bookworm-security InRelease 18Ign:4 http://security.debian.org/debian-security bookworm-security InRelease 19Err:4 http://security.debian.org/debian-security bookworm-security InRelease 20 Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (151.101.110.132), connection timed out Cannot initiate the connection to security.debian.org:80 (2a04:4e42:600::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:200::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:400::644). - connect (101: Network is unreachable) Could not connect to security.debian.org:80 (151.101.2.132), connection timed out Could not connect to security.debian.org:80 (151.101.194.132), connection timed out Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out 21Reading package lists... Done 22Building dependency tree... Done 23All packages are up to date. 24W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (151.101.110.132), connection timed out Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) 25W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Cannot initiate the connection to deb.debian.org:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) 26W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (151.101.110.132), connection timed out Cannot initiate the connection to security.debian.org:80 (2a04:4e42:600::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:200::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:400::644). - connect (101: Network is unreachable) Could not connect to security.debian.org:80 (151.101.2.132), connection timed out Could not connect to security.debian.org:80 (151.101.194.132), connection timed out Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out 27W: Failed to fetch http://ftp.debian.org/debian/dists/bookworm-backports/InRelease Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (151.101.110.132), connection timed out Cannot initiate the connection to ftp.debian.org:80 (2a04:4e42:1a::644). - connect (101: Network is unreachable) 28W: Some index files failed to download. They have been ignored, or old ones used instead. 29xxxx@DESKTOP-U5N6R30:/mnt/c/WINDOWS/system32$
1,Err:1 http://deb.debian.org/debian bookworm InRelease
2,Err:2 http://deb.debian.org/debian bookworm-updates InRelease
3,Err:3 http://ftp.debian.org/debian bookworm-backports InRelease
4,Err:4 http://security.debian.org/debian-security bookworm-security InRelease
すべて Cannot initiate the connection to debian.map.fastlydns.net となっています。
該当のソースコード
特になし
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
Windowsの「ネットワーク接続」の アダプター「Wi-Fi」のプロパティ「共有」タブで、「ネットワークのほかのユーザーに、このコンピュータのインターネット接続をとおしての接続を許可する」にチェックして、試してみました。しかし効果なしでした。
ネットワーク接続 画像1
ネットワーク接続 画像2
補足
Debian12 情報です
Bash
1$ cat /etc/os-release 2PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" 3NAME="Debian GNU/Linux" 4VERSION_ID="12" 5VERSION="12 (bookworm)" 6VERSION_CODENAME=bookworm 7ID=debian 8HOME_URL="https://www.debian.org/" 9SUPPORT_URL="https://www.debian.org/support" 10BUG_REPORT_URL="https://bugs.debian.org/"
resolv.conf 編集してみました
Bash
1$ sudo vi /etc/resolv.conf 2#nameserver 172.28.160.1 3nameserver 8.8.8.8 ← 172.28.160.1 から変更した
$ sudo ping 8.8.8.8 したら、
まったく反応がなくなりました。
nameserver 172.28.160.1 だった時は、
Bash
1$ sudo ping 172.28.160.1 2PING 172.28.160.1 (172.28.160.1) 56(84) bytes of data. 364 bytes from 172.28.160.1: icmp_seq=1 ttl=128 time=0.230 ms 464 bytes from 172.28.160.1: icmp_seq=2 ttl=128 time=0.360 ms 5...
と反応はありましたが。。
