Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Temporary failure resolving 'raspbian.raspberrypi.org'

iam not able to update any thing on my pie, iam getting the following error Err:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Temporary failure resolving 'raspbian.raspberrypi.org'

nameserver in resolv.conf is 8.8.8.8

this is the ping result root@raspberrypi:/etc# ping google.com ping: google.com: Temporary failure in name resolution

i have previously installed piehole in my pie, but after that i have formatted the memory card and installed the fresh os. Please suggest any fix.

like image 871
Soorya Mahadevan Avatar asked Sep 17 '25 17:09

Soorya Mahadevan


1 Answers

I realize this is super old but in case anyone else stumbles here from google, my /etc/resolv.conf file only had 127.0.0.1 as the dns, after adding 1.1.1.1 and 1.0.0.1 I was able to upgrade.

In order to update the file you need to change the dhcpd file:

sudo nano /etc/dhcpcd.conf

add this to the bottom of the file to add the cloudflare dns servers:

static domain_name_servers=1.1.1.1 1.0.0.1

or alternatively the google domain servers

static domain_name_servers=8.8.4.4 8.8.8.8

then just restart the dhcp service and you should be good to proceed with your upgrades:

sudo service dhcpcd restart

If you have 8.8.8.8 already in the config you could try the cloudflare ones, it's possible you just need to restart the service though.

like image 100
pmcnamee Avatar answered Sep 19 '25 06:09

pmcnamee