Вчера я купил Raspberry Pi и столкнулся с довольно большой проблемой. Я не могу обновить sudo apt-get. Я думаю, что эта ошибка исходит от моего DNS, потому что я подключен через Ethernet (физически). поэтому сообщение, которое он печатает, когда я выполняю команду, таково:
pi@raspberrypi:~ $ 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.
Итак, чтобы решить эту проблему, я попробовал несколько вещей:
- 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
Ничего не сработало ... Я действительно застрял, есть что-то еще, я не могу просматривать какие-либо веб-сайты с Chromium, но у меня есть подключение к Интернету, потому что я могу pip установить модули python ... вот сообщение Chromium: «Этот сайт может» недоступен" ERR_NAME_RESOLUTION_FAILED
Другие вещи, мой инет-ip недействителен, обычно он должен начинаться с 192.168, но здесь это 168.254.241.6 ... вот моя конфигурация if:
pi@raspberrypi:~ $ 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