2017-09-01 13 views
0

昨日ラズベリーパイを買ってしまいましたが、かなり大きな問題に直面しています。私はapt-get updateをsudoできません。私はイーサネット(物理的に)経由で接続されているので、このエラーは私のDNSから来ていると思います。ラズベリーパイ、アップデートできません[ミラー/ DNS]

- Changing the etc/apt/sources.list to a valid mirror of my country (france) 
- Reinstalling Raspbian (1st try was with NOOBS) and now I installed Raspbian with the .img file 
- Changing my /ect/resolv.conf and /etc/network/interfaces nameservers to these ip 8.8.8.8 8.8.4.4 

何も働いていない...私は本当にstucked午前、そこ:

[email protected]:~ $ sudo apt-get update 
Err:1 http://goddess-gate.com/archive.raspbian.org/raspbian jessie InRelease 
    Temporary failure resolving 'goddess-gate.com' 
Err:2 http://archive.raspberrypi.org/debian stretch InRelease    
    Temporary failure resolving 'archive.raspberrypi.org' 
Reading package lists... Done    
W: Failed to fetch http://goddess-gate.com/archive.raspbian.org/raspbian/dists/jessie/InRelease Temporary failure resolving 'goddess-gate.com' 
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease Temporary failure resolving 'archive.raspberrypi.org' 
W: Some index files failed to download. They have been ignored, or old ones used instead. 

は、だから私はいくつかのことを試してみました。この問題を解決するために:それは私がコマンドを実行したときに印刷したメッセージは、ということです何かがeleseですが、私はクロムを持つ任意のウェブサイトを閲覧することはできませんが、私はPythonモジュールをインストールピップすることができますので、私はインターネットのかかわりを持っている...ここにクロムメッセージは次のとおりです。 その他

をERR_NAME_RESOLUTION_FAILED「このサイトに到達することができません」もの、私のinetのipはない169.254.255.255へ

[email protected]:~ $ ifconfig 
enxb827ebaf69fc: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 
     inet 169.254.241.6 netmask 255.255.0.0 broadcast 169.254.255.255 
     inet6 fe80::5d8b:1a8c:c520:c339 prefixlen 64 scopeid 0x20<link> 
     ether b8:27:eb:af:69:fc txqueuelen 1000 (Ethernet) 
     RX packets 0 bytes 0 (0.0 B) 
     RX errors 0 dropped 0 overruns 0 frame 0 
     TX packets 995 bytes 61042 (59.6 KiB) 
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 
     inet 127.0.0.1 netmask 255.0.0.0 
     inet6 ::1 prefixlen 128 scopeid 0x10<host> 
     loop txqueuelen 1 (Local Loopback) 
     RX packets 806 bytes 77318 (75.5 KiB) 
     RX errors 0 dropped 0 overruns 0 frame 0 
     TX packets 806 bytes 77318 (75.5 KiB) 
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 
     ether b8:27:eb:fa:3c:a9 txqueuelen 1000 (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 
+0

私のinet ipは非常に奇妙で、192.168で始まらないが169.254.241.6であり、このinetアドレスを使ってsshに接続できない(私のSSHは起動されている) –

答えて

0

IP-アドレス範囲169.254.0.0ゼロ設定で使用されます。configがあれば、有効な、usallyそれは192.168で始まる必要がありますが、ここでそれは168.254.241.6です...ここに私のです。 おそらくLANにアクティブなDHCPサーバーがありません。ほとんどの場合、ルーターはDHCPサーバーでもあります。 また、パブリックIPv6アドレスもありません。しかしこれはまた、IPv4のみのインターネット接続から来る可能性があります。 修正されたip-addressを使用してインターフェイスを完全に手動で設定しようとします。アクティブなDHCPサーバーが必要な場合は、修正してください。再起動が役立つことがあります。 "ip r"でゲートウェイを表示することができます。それはルータのアドレスでなければなりません。

重要な点は、PiのIPアドレスがゲートウェイと同じサブネットにあることです。

関連する問題