UPDATE:
As of Feb 1,2023 I paid the money and opened a ticket with AWS and this is the response.. Keep waiting:
Reaching out to the internal team in terms of Patch Manager for Ubuntu 22.04, we were notified that the addition of Ubuntu 22.04 for Patch Manager is currently a “work-in-progress” and is on its roadmap to be released in the near future. While no exact ETA is currently available, you can expect to see this release in the latter half of the first quarter of this year. I would suggest you to keep an eye on our SSM documentation [1] and What’s New page [2] for latest updates.
I do apologize for the inconvenience this has caused you. Please bear with us for sometime as the SSM team works on getting this release out in the near future.
SSM documentation – https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-prerequisites.html
What’s New – https://aws.amazon.com/new/
I’ve tested this on an upgraded Ubuntu 22.04 host and also on a CLEAN new Ubuntu 22.04 host from official AWS – Canonical image and attempts to patch either host using the AWS SSM RunPatchBaseLine fail.
Std out from command is reporting: root [ERROR]: Error loading entrance module.
Std Error is reporting: "Error loading patching payloadfailed to run commands: exit status 156
Output in the /var/log/amazon/ssm/amazon-ssm-agent.log for the failed commands looks like:
"/usr/bin/python3
/usr/bin/apt-get
Reading package lists...
Building dependency tree...
Reading state information...
python3-apt is already the newest version (2.3.0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Using python binary: 'python3'
Using Python Version: Python 3.10.4
/usr/bin/curl
/usr/bin/wget
06/10/2022 16:52:49 root [INFO]: Downloading payload from https://s3.dualstack.us-east-2.amazonaws.com/aws-ssm-us-east-2/patchbaselineoperations/linux/payloads/patch-baseline-operations-1.87.tar.gz
06/10/2022 16:52:49 root [INFO]: Attempting to import entrance file os_selector
06/10/2022 16:52:49 root [ERROR]: Error loading entrance module.
Traceback (most recent call last):
File "/var/log/amazon/ssm/patch-baseline-operations/common_startup_entrance.py", line 164, in execute
entrance_module = __import__(module_name)
File "/var/log/amazon/ssm/patch-baseline-operations/os_selector.py", line 11, in u003cmoduleu003e
import common_os_selector_methods
File"/var/log/amazon/ssm/patch-baseline-operations/common_os_selector_methods.py", line 11, in u003cmoduleu003e
from patch_common.baseline_override import load_baseline_override
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/baseline_override.py", line 6, in u003cmoduleu003e
from patch_common.downloader import download_file, load_json_file, is_access_denied
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/downloader.py", line 1, in u003cmoduleu003e
import boto3
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/__init__.py", line 16, in u003cmoduleu003e
from boto3.session import Session
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/session.py", line 17, in u003cmoduleu003e
import botocore.session
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/session.py", line 29, in u003cmoduleu003e
import botocore.configloader
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/configloader.py", line 19, in u003cmoduleu003e
from botocore.compat import six
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/compat.py", line 25, in u003cmoduleu003e
from botocore.exceptions import MD5UnavailableError
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/exceptions.py", line 15, in u003cmoduleu003e
from botocore.vendored import requests
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/__init__.py", line 58, in u003cmoduleu003e
from . import utils
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/utils.py", line 26, in u003cmoduleu003e
from .compat import parse_http_list as _parse_list_header
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/compat.py", line 7, in u003cmoduleu003e
from .packages import chardet
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/__init__.py", line 3, in u003cmoduleu003e
from . import urllib3
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/__init__.py", line 10, in u003cmoduleu003e
from .connectionpool import (
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 38, in u003cmoduleu003e
from .response import HTTPResponse
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/response.py", line 9, in u003cmoduleu003e
from ._collections import HTTPHeaderDict
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/_collections.py", line 1, in u003cmoduleu003e
from collections import Mapping, MutableMapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
06/10/2022 16:52:49 root [ERROR]: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
Traceback (most recent call last):
File "/var/log/amazon/ssm/patch-baseline-operations/common_startup_entrance.py", line 164, in execute
entrance_module = __import__(module_name)
File "/var/log/amazon/ssm/patch-baseline-operations/os_selector.py", line 11, in u003cmoduleu003e
import common_os_selector_methods
File "/var/log/amazon/ssm/patch-baseline-operations/common_os_selector_methods.py", line 11, in u003cmoduleu003e
from patch_common.baseline_override import load_baseline_override
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/baseline_override.py", line 6, in u003cmoduleu003e
from patch_common.downloader import download_file, load_json_file, is_access_denied
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/downloader.py", line 1, in u003cmoduleu003e
import boto3
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/__init__.py", line 16, in u003cmoduleu003e
from boto3.session import Session
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/session.py", line 17, in u003cmoduleu003e
import botocore.session
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/session.py", line 29, in u003cmoduleu003e
import botocore.configloader
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/configloader.py", line 19, in u003cmoduleu003e
from botocore.compat import six
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/compat.py", line 25, inu003cmoduleu003e
from botocore.exceptions import MD5UnavailableError
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/exceptions.py", line 15, in u003cmoduleu003e
from botocore.vendored import requests
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/__init__.py", line 58, in u003cmoduleu003e
from . import utils
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/utils.py", line 26, in u003cmoduleu003e
from .compat import parse_http_list as _parse_list_header
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/compat.py", line 7, in u003cmoduleu003e
from .packages import chardet
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/__init__.py",line 3, in u003cmoduleu003e
from . import urllib3
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/__init__.py", line 10, in u003cmoduleu003e
from .connectionpool import (
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 38, in u003cmoduleu003e
from .response import HTTPResponse
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/response.py", line 9, in u003cmoduleu003e
from ._collections import HTTPHeaderDict
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/vendored/requests/packages/urllib3/_collections.py", line 1, in u003cmoduleu003e
from collections import Mapping, MutableMapping
ImportError: cannotimport name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
",
"standardError": "Error loading patching payloadfailed to run commands: exit status 156"
3
Answers
As of 4/4/2023 the AWS Link https://docs.aws.amazon.com/systems-manager/latest/userguide/prereqs-operating-systems.html shows that 22.04 is supported by SSM patch manager.. Now I need to test it to make sure thats' true..
This latest ubuntu 22.0 ain’t supported yet.
I did some digging into this and found the following:
Ubuntu 22.04 LTS is not supported in Patch Manager at time of writing. Please see: https://repost.aws/questions/QUzbb6-VpuTfuu-SK77Dg2CA/patch-baseline-operations-fail-with-python-3-10-6
It is supported in System Manager but that is not the same. Please see the following for a list of supported OS types and Python versions here: https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-prerequisites.html#python-version
Ubuntu 22.04 makes use of Python 3.10.x, but the highest Patch Manager currently supports for Ubuntu is up to Python 3.9.x