Internet is a service that you do not need 24 hours a day. In fact you should be able to turn on and turn off your Connection when you need it just like in the PPP days
In the past couple of days, when I was without an active internet connection, I was able to deduct the reason why sudo asks for a connection to the internet when my Gateway, one of my gateways, has none.
It turns out that for some reason sudo is looking for a FQDN {fully qualified domain name} on the Internet.
I wonder why, because on my SBC the name of the Server ends with .local
In order not to get this extremely annoying error, which slows down everything that you need to do with sudo, with a delay of Sixty to One Hundred Twenty seconds, you just need to turn off any network connection on the machine.
It was extremely annoying on the SBC, because I was making a duplicate of a USB stick, which constantly needed to invoke the sudo command, in order to write the data, with commands that needs root access to the device.
To give you an indication of the scope of the delay; a task which normally needs thirty minutes, took twelve hours and still failed, simply because it took way too long.
I am however a Bèta Tester. I love these interesting levels of troubleshooting with things that seem to be totally unrelated.
TLDR:
Disconnect your network when you need to use sudo if your gateways has no internet heartbeat
#SUDO #SBC #RaspberryPi #FQDN #Debian #internet #permission #troubleshooting #programming #OpenSource #POSIX