Unable to update "Temporary failure resolving"

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Unable to update "Temporary failure resolving"

Post by AJRobson »

I'm having a weird issue with my DietPi instance, when I try to do

Code: Select all

sudo apt-get update
Everything just fails with a message about Temporary failure resolving e.g.
Failed to fetch http://raspbian.raspberrypi.org/raspbia ... /InRelease Temporary failure resolving 'raspbian.raspberrypi.org'
W: Failed to fetch https://download.mono-project.com/repo/ ... /InRelease Temporary failure resolving 'download.mono-project.com'
W: Failed to fetch https://downloads.plex.tv/repo/deb/dist ... /InRelease Temporary failure resolving 'downloads.plex.tv'
If I go into dietpi-config and run a network test it fails BUT if I use my phone and disconnect from my wifi and enable 3G I can successfully connect and watch my media on the plex server the pi is running so it must be connected to the internet.

The Pi is connected by ethernet direct to my Sky hub.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Unable to update "Temporary failure resolving"

Post by Joulinar »

Him

you would need to check why you are not able to resolve DNS request on your side. can you ping 8.8.8.8 or ping dns.google. Do you use something like PiHole?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Re: Unable to update "Temporary failure resolving"

Post by AJRobson »

Joulinar wrote: Fri Jan 08, 2021 2:34 pm Him

you would need to check why you are not able to resolve DNS request on your side. can you ping 8.8.8.8 or ping dns.google. Do you use something like PiHole?
When I try to ping dns.google I get the same:
root@DietPi:~# ping dns.google
ping: dns.google: Temporary failure in name resolution
But for 8.8.8.8 it just carried on until I stopped it:
64 bytes from 8.8.8.8: icmp_seq=199 ttl=119 time=8.03 ms
64 bytes from 8.8.8.8: icmp_seq=200 ttl=119 time=7.57 ms
64 bytes from 8.8.8.8: icmp_seq=201 ttl=119 time=7.83 ms
64 bytes from 8.8.8.8: icmp_seq=202 ttl=119 time=7.52 ms
^C
--- 8.8.8.8 ping statistics ---
202 packets transmitted, 202 received, 0% packet loss, time 517ms
I don't use pi-hole anymore.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Unable to update "Temporary failure resolving"

Post by Joulinar »

can you check DNS server used

Code: Select all

cat /etc/resolv.conf
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Re: Unable to update "Temporary failure resolving"

Post by AJRobson »

Joulinar wrote: Fri Jan 08, 2021 2:44 pm can you check DNS server used

Code: Select all

cat /etc/resolv.conf
Thank's that was it, the nameserver was my old pi-hole instance which was set as the secondary DNS I set it to tthe same as my primary DNS and I can now update.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Unable to update "Temporary failure resolving"

Post by Joulinar »

pls do the settings using dietpi-config to be permanent
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply