Temporary failure in name resolution on Ubuntu server 22.04.3 LTS

Bo Berglund bo.berglund at gmail.com
Wed Nov 29 10:06:13 UTC 2023


On Tue, 28 Nov 2023 14:16:23 +0100, Oliver Grawert <ogra at ubuntu.com> wrote:

>if i were you, i'd add some temporary hack to mangle the resolvconf
>stuff ... i.e. to add your 8.8.8.8 entry from /etc/rc.local to the
>config on every boot or use /etc/resolvconf.d snippets or whatnot for
>the time being to solve the immediate issue...

I took your advice and created a script to check if the google
servers are missing in resolv.conf and if so to add them into it.

The script looks like this:

#!/bin/bash
DNS8888=$(grep 8.8.8.8 /etc/resolv.conf)
DNS8844=$(grep 8.8.4.4 /etc/resolv.conf)
if [ "$DNS8888" != "nameserver 8.8.8.8" ]; then
  echo "nameserver 8.8.8.8" >> /etc/resolv.conf
fi
if [ "$DNS8844" != "nameserver 8.8.4.4" ]; then
  echo "nameserver 8.8.4.4" >> /etc/resolv.conf
fi
exit  0

I run this in /etc/rc.local after a 30s delay and also from crontab every hour.

I have rebooted and it seems to work fine.

So I went ahead and did a sudo apt update && sudo apt full-upgrade which has now
stopped with the following message:

 +----¦ Daemons using outdated libraries +-----+
 ¦                                             ¦
 ¦ Which services should be restarted?         ¦
 ¦                                             ¦
 ¦    [ ] networkd-dispatcher.service          ¦
 ¦    [ ] unattended-upgrades.service          ¦
 ¦                                             ¦
 ¦          <Ok>              <Cancel>         ¦
 +---------------------------------------------+

And I don't know what it means or what I should do....
Check both / check none /check one (which) ???


-- 
Bo Berglund
Developer in Sweden




More information about the ubuntu-users mailing list