windows10のWSL(Windows Subsystem for Linux)で、Ubuntuを
インストールしましたが、ネットワーク挙動がおかしいです。
以下でDNS設定をしたり、
sudo vi /etc/resolv.conf nameserver 8.8.8.8
参照レポジトリを日本のものに変更したりしましたが、
以下のようにsudo apt-get updateをした際に、
「W: Failed to fetch~~」となってしまいます。
不思議なのはwww.yahoo.co.jpへのpingは成功するのに、www.google.co.jpへのpingはDNS解決まではできるけれどもそれよりは先に行かないことです
otaks@DESKTOP-N0VDQHQ:~$ ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.0.12 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 2402:6b00:4720:4200:2541:9fb1:9d04:e446 prefixlen 64 scopeid 0x0<global> inet6 2402:6b00:4720:4200:cd57:4d72:d8dd:14b8 prefixlen 128 scopeid 0x0<global> inet6 fe80::2541:9fb1:9d04:e446 prefixlen 64 scopeid 0xfd<compat,link,site,host> ether 04:92:26:48:3d:9e (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 otaks@DESKTOP-N0VDQHQ:~$ ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=1.93 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=2.51 ms ^C ⇒【デフォルトゲートウェイへのpingは成功する】 --- 192.168.0.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 1.937/2.224/2.511/0.287 ms otaks@DESKTOP-N0VDQHQ:~$ ping www.google.co.jp PING www.google.co.jp(nrt12s15-in-x03.1e100.net (2404:6800:4004:807::2003)) 56 data bytes ⇒【www.google.co.jpへのpingはここで止まる】 ^C --- www.google.co.jp ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4006ms otaks@DESKTOP-N0VDQHQ:~$ ping www.yahoo.co.jp PING edge12.g.yimg.jp (182.22.25.252) 56(84) bytes of data. 64 bytes from 182.22.25.252 (182.22.25.252): icmp_seq=1 ttl=58 time=8.70 ms 64 bytes from 182.22.25.252 (182.22.25.252): icmp_seq=2 ttl=58 time=9.67 ms ^C --- edge12.g.yimg.jp ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 8.704/9.188/9.672/0.484 ms ⇒【www.yahoo.co.jpへのpingは成功する】 otaks@DESKTOP-N0VDQHQ:~$ sudo apt-get update Err:1 http://ftp.jaist.ac.jp/pub/Linux/ubuntu bionic InRelease Connection failed [IP: 150.65.7.130 80] Err:2 http://ftp.jaist.ac.jp/pub/Linux/ubuntu bionic-updates InRelease Connection failed [IP: 150.65.7.130 80] Err:3 http://ftp.jaist.ac.jp/pub/Linux/ubuntu bionic-backports InRelease Connection failed [IP: 150.65.7.130 80] Err:4 http://ftp.jaist.ac.jp/pub/Linux/ubuntu bionic-security InRelease Connection failed [IP: 150.65.7.130 80] Reading package lists... Done W: Failed to fetch http://ftp.jaist.ac.jp/pub/Linux/ubuntu/dists/bionic/InRelease Connection failed [IP: 150.65.7.130 80] W: Failed to fetch http://ftp.jaist.ac.jp/pub/Linux/ubuntu/dists/bionic-updates/InRelease Connection failed [IP: 150.65.7.130 80] W: Failed to fetch http://ftp.jaist.ac.jp/pub/Linux/ubuntu/dists/bionic-backports/InRelease Connection failed [IP: 150.65.7.130 80] W: Failed to fetch http://ftp.jaist.ac.jp/pub/Linux/ubuntu/dists/bionic-security/InRelease Connection failed [IP: 150.65.7.130 80] W: Some index files failed to download. They have been ignored, or old ones used instead. ⇒【ip解決はできているが接続失敗する(それぞれのURLはwindows側ブラウザで正常に参照可能)】
あなたの回答
tips
プレビュー