Score:1

apt-get update error in Debian 11 "Temporary failure resolving" and also "Failed to fetch"

sl flag

This is what I get when I run the apt-get update on my debian 11 server.

Err:1 http://deb.debian.org/debian bullseye InRelease Temporary failure resolving 'deb.debian.org'
Err:2 http://packages.sury.org/php bullseye InRelease Temporary failure resolving 'packages.sury.org'
Err:3 http://deb.debian.org/debian bullseye-updates InRelease Temporary failure resolving 'deb.debian.org'
Err:4 http://security.debian.org/debian-security bullseye-security InRelease Temporary failure resolving 'security deb.debian.org'
Err:5 htttp://deb.nodesource.com/node_14.x bullseye InRelease Temporary failure resolving 'deb.nodesource.com'
Err:6 http://repo.mysql.com/apt/debian buster InRelease Temporary failure resolving 'repo.mysql.com'

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye/security InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch 
Romeo Ninov avatar
in flag
Check your DNS resolve. Try in command line `nslookup deb.debian.org`
tlholoheloh101 avatar
sl flag
Romeo Ninov when I run 'nslookup deb.debian.org ' I get this reply: ;; connection timed out; no servers could be reached
Romeo Ninov avatar
in flag
Try to set your DNS to 8.8.8.8 for example and try again
tlholoheloh101 avatar
sl flag
@Romeo Ninov I configured the DNS to 8.8.8.8 but it doesn't work still getting same error. The browser is not accessing the internet as well.
Romeo Ninov avatar
in flag
Do you have internet access at all on this machine?
tlholoheloh101 avatar
sl flag
@Romeo Ninov it seems that I do not have internet access at all, the server was connected and working fine until Monday when an administrator was installing company specific software and lost ssh connection, since then there is no internet connection or ssh connection and I cannot apt-get update. Can you suggest some configuration that I can use to get it up and running again please
in flag
talk to whomever is responsible for your DNS server and/or your network and configure a working DNS server.
tlholoheloh101 avatar
sl flag
@Gerald Schneider thanks, will do and give feedback
tlholoheloh101 avatar
sl flag
I can ping 8.8.8.8 and the other 3 servers but I cannot ping Google.com or extract downloads from other url's on the internet and the internet browser has no internet access. Reply "failure name resolution" Server3 is cluster 3 and static IP /61 GW is /57 which is cisco switch 1. Switch 1 interconnected to Cisco router 1 and Router 2, FW 1 is currently bypassed. VIP /58. Still " FAILURE NAME RESOLUTION "
Score:-2
ci flag

This worked for me:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.