How do I apply an installed, but not running, security update to Amazon Linux 2023?

0

I just started using Amazon Linux 2023. When I connect by SSH, I get this notice:

Updates Information Summary: available
    1 Security notice(s)
        1 Important Security notice(s)
Security: kernel-6.1.55-75.123.amzn2023.x86_64 is an installed security update
Security: kernel-6.1.52-71.125.amzn2023.x86_64 is the currently running version

How do I apply the installed update? I tried rebooting the instance in the console and that didn't do anything. It's unfortunate that the notice doesn't tell me how to fix it. I'm inclined to just ignore it because it's not obvious what to do, but that's surely not what Amazon hopes users will do?

posta 8 mesi fa889 visualizzazioni
2 Risposte
0

I suppose it's temporarily moot because I have a new update notice:

A newer release of "Amazon Linux" is available.
  Version 2023.2.20231011:
Run "/usr/bin/dnf check-release-update" for full release and version update info

Which fortunately does provide instruction on what to do.

But the thing is I did use the "Reboot" function of EC2, at a guess. But the notice in the OP remained. Unless that function doesn't really do a full reboot? It does have the version string you mentioned with uname -a though.

The message I saw isn't the same as that one though, so I'm not sure it's the same issue?

con risposta 8 mesi fa
  • Try running sudo update-motd. It should fix this. The MOTD should also auto update after half a day or so later.

0

Usually, it means a new kernel has been applied and you need to reboot. If your uname -a output contains the string 6.1.55-75.123.amzn2023, you are good.

This observation has been logged into AL2023 GitHub under update-motd not run after dnf upgrade #441. From the description, it seems that running sudo update-motd can help.

AWS
ESPERTO
Mike_L
con risposta 8 mesi fa
profile pictureAWS
ESPERTO
verificato 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande