Temporary failure in name resolution on Ubuntu server 22.04.3 LTS

Keith keithw at caramail.com
Wed Nov 29 15:20:28 UTC 2023


On 11/29/23 4:06 AM, Bo Berglund wrote:
> 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) ???
> 
> 
$ man needrestart

when you ran an apt update, some libraries or applications that the 
above services use got updated. The running services are still using the 
previous un-updated versions of the libraries that are loaded into 
memory, though. To have the services uses the updated libraries, you'll 
have to restart them. However, this may cause a disruption in service so 
you have the option of not restarting services now, but at a later date, 
say, during a scheduled maintenance window.

-- 
Keith




More information about the ubuntu-users mailing list