Pi with static ip address is unable to update
-
I've changed my Duet pi to a static ip address and now when I do,
sudo apt-get update
I get
pi@duet3:~ $ sudo apt-get update Err:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Temporary failure resolving 'raspbian.raspberrypi.org' Err:2 https://pkg.duet3d.com unstable InRelease Temporary failure resolving 'pkg.duet3d.com' Err:3 http://archive.raspberrypi.org/debian buster InRelease Temporary failure resolving 'archive.raspberrypi.org' Err:4 https://pkg.duet3d.com stable InRelease Temporary failure resolving 'pkg.duet3d.com' Reading package lists... Done W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelea se Temporary failure resolving 'raspbian.raspberrypi.org' W: Failed to fetch https://pkg.duet3d.com/dists/unstable/InRelease Temporary fa ilure resolving 'pkg.duet3d.com' W: Failed to fetch https://pkg.duet3d.com/dists/stable/InRelease Temporary fail ure resolving 'pkg.duet3d.com' W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease Temporary failure resolving 'archive.raspberrypi.org' W: Some index files failed to download. They have been ignored, or old ones used instead.
I can go back to a dynamic address and update works. Anyone else experience this?
-
You just lost all internet connectivity ... not a duet or even a pi issue but rather an issue with your router.
Are you using your router to assign a static IP address? does the router and the pi talk? Can you ping the router from the pi ? Many questions ..... -
@luckyflyer said in Pi with static ip address is unable to update:
I can go back to a dynamic address and update works. Anyone else experience this?
how did you set your static ip? and did you include a dns server in the setup?
-
I used an online tutorial here
https://pimylifeup.com/raspberry-pi-static-ip-address/
This is the data that I entered,interface eth0
static ip_address=192.168.0.180
interface wlan0
static ip_address=192.168.0.181
static routers=192.168.1.1
static domain_name_servers=192.168.1.1My pc can communicate with duet pi but Duet pi web browser doesn't seem to be able to get on the internet.
-
I think I may have entered the wrong dns server. My router says this,
Primary DNS Server : 192.168.254.254
I'll try that. -
@luckyflyer most consumer routers provide gateway and dns server on the same address.
its also a bit odd that you have your IP addresses in 192.168.0.0 and the router in 192.168.1.0, but if the netmask is not /24 it makes a little more sense (except 192.168. range is meant for class C so still a bit odd.
simplest is probably to run
ipconfig /all
on your windows computer and use the detfaut gateway and dns server from there if you didn't solve it already. -
I ran IPconfig/all and had a 1 digit dns error,192.168.1.1 should be 192.168.0.1. Corrected it and now works.
Thanks again -
presumably same for the routers address?
-
Yes it is, was a typo.
Can you take a look at last couple of posts in need help installing ustreamer and advise?