Skip to content

Ubuntu 24.04 LTS Patch Manager support

0

Hello, I am facing an issue with Patch Manager. Error message is:

/var/log/amazon/ssm/patch-baseline-operations/patch_common/constant_repository.py:211: SyntaxWarning: invalid escape sequence '\d'

CVE_PATTERN = "CVE-\d{4}-\d{4,7}"

/var/log/amazon/ssm/patch-baseline-operations/patch_common/constant_repository.py:212: SyntaxWarning: invalid escape sequence '\d'

KERNEL_PATTERN = "kernel-[\d.]*-.*" # already querying for kernel so just need a loose match

/var/log/amazon/ssm/patch-baseline-operations/patch_common/constant_repository.py:213: SyntaxWarning: invalid escape sequence '\d'

KERNEL_LIVEPATCH_PATTERN = "kernel-livepatch-[\d.]*-.*" # already querying for kernel livepatch so a loose match

No IMDS credentials found on instance.failed to run commands: exit status 156

Patch Manager was working fine on our instances with 20.04 LTS but after upgrading to 24.04 LTS it stopped with the error message above. No Patch Manager configuration, instance type, or IAM role or any tags changed since upgrading to 24.04 LTS.

Looks like Ubuntu 24.04 LTS is not supported by Patch Manager? Can anyone confirm this? I only see Ubuntu 23.04 here https://docs.aws.amazon.com/systems-manager/latest/userguide/operating-systems-and-machine-types.html

asked 2 years ago1.4K views

2 Answers
2

Based on the information available, it appears that Ubuntu 24.04 LTS is not currently supported by AWS Systems Manager Patch Manager. The most recent Ubuntu version officially supported by Patch Manager is Ubuntu 23.04, as mentioned in the AWS documentation.

The error message you're encountering suggests that there might be compatibility issues between the Patch Manager scripts and the newer Ubuntu version. The syntax warnings related to regular expressions in the Patch Manager scripts indicate that the scripts may not be fully compatible with the Python version or environment in Ubuntu 24.04 LTS.

Additionally, the error "No IMDS credentials found on instance" could be related to changes in how the instance metadata service (IMDS) works in the newer Ubuntu version, or it could be a separate issue altogether.

Since you mentioned that Patch Manager was working fine on Ubuntu 20.04 LTS instances and only started having issues after upgrading to 24.04 LTS, it's likely that the root cause is indeed the lack of official support for this new Ubuntu version.

To resolve this issue, you may need to:

  1. Wait for AWS to officially add support for Ubuntu 24.04 LTS in Patch Manager.
  2. Consider rolling back to a supported Ubuntu version if patching is critical for your operations.
  3. Reach out to AWS Support for further assistance or to inquire about plans for supporting Ubuntu 24.04 LTS.

It's important to note that AWS typically adds support for new operating system versions over time, so Ubuntu 24.04 LTS support may be added in a future update to Patch Manager.
Sources
AWS Systems Manager now supports Ubuntu 23.04, Debian 12, MacOS 14, and SUSE SP5
AWS Systems Manager Patch Manager - AWS Systems Manager

answered 2 years ago

EXPERT

reviewed 2 years ago

1

Hi,

I would say that this is a bug.

To ensure speedy processing of it, I'll suggest you to open a ticket via Console > Support of your account as service teams are not supposed to monitor re:Post for such bug reports from the community.

The syntax of your error messages is very close to those in https://github.com/ranger/ranger/issues/2985 which tends to further indicate an automation error in the scripts of PM.

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.