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?

已提問 8 個月前檢視次數 889 次
2 個答案
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?

已回答 8 個月前
  • 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
專家
Mike_L
已回答 8 個月前
profile pictureAWS
專家
已審閱 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南