diff --git a/aegea/util/aws/ssm.py b/aegea/util/aws/ssm.py
index <HASH>..<HASH> 100644
--- a/aegea/util/aws/ssm.py
+++ b/aegea/util/aws/ssm.py
@@ -44,7 +44,7 @@ def ensure_session_manager_plugin():
         target_path = os.path.join(session_manager_dir, "session-manager-plugin")
         if platform.system() == "Darwin":
             download_session_manager_plugin_macos(target_path=target_path)
-        elif platform.linux_distribution()[0] == "Ubuntu":  # type: ignore
+        elif "Ubuntu" in subprocess.run(["uname", "-a"], capture_output=True).stdout.decode():  # type: ignore
             download_session_manager_plugin_linux(target_path=target_path)
         else:
             download_session_manager_plugin_linux(target_path=target_path, pkg_format="rpm")
Use subprocess instead of distro to check for Ubuntu presence (#<I>)