- Newest
- Most votes
- Most comments
The error you're encountering appears to be related to the EFA installation script failing during package installation, specifically when running apt install. The "Killed" message at line 191 suggests the process was terminated, likely due to resource constraints or system issues during the package installation phase.
Since you've already tried upgrading from m9g to r9g instances to rule out memory issues, here are some troubleshooting steps to consider:
First, ensure your APT package manager is functioning correctly by running apt-get update manually on the instance. This is critical because installation processes rely on a healthy package management system. Look for any errors related to repository configurations, missing GPG keys, or signature verification failures. If you encounter issues, you may need to resolve repository conflicts or missing keys before proceeding with the EFA installation.
Next, verify that your system clock is accurate, as time synchronization issues can cause signature verification problems during package installation. You can synchronize with Network Time Protocol (NTP) to ensure accuracy.
Additionally, check if there are any conflicting or stale repository entries in /etc/apt/sources.list.d/ that might be interfering with the installation process. Remove any duplicate or problematic repository files and validate that all referenced GPG keys exist and are correctly configured.
Regarding Ubuntu 26.04 specifically, it's worth noting that this is a very recent release, and there may be compatibility considerations with EFA that haven't been fully validated yet. You might want to verify that Ubuntu 26.04 is officially supported by checking AWS documentation for EFA-supported operating systems. If it's not explicitly listed as supported, you may need to use an earlier Ubuntu LTS version that is confirmed to work with EFA on Graviton instances.
If the issue persists after these checks, consider reviewing system logs and the full output of the installation script to identify any additional error messages that might provide more context about why the package installation is being killed.
Sources
SSM Patch Manager scan fails on Ubuntu due to APT repository GPG key and Signed-By conflicts | AWS re:Post
Common agent installation errors - AWS Elastic Disaster Recovery
answered 15 days ago
AWS officially supports EFA on Ubuntu 22.04, 24.04, and 26.04, but installation failures on Graviton5 (Arm‑based) instances running Ubuntu 26.04 are linked to package incompatibility and DKMS build issues. Please try to use the latest EFA installer and supported AMIs; if still no luck, may considering to fall back to Amazon Linux 2023 or Ubuntu 24.04 until full support stabilizes.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa-start-nccl.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html
I used Ubuntu Server 26.04 LTS (HVM),EBS General Purpose (SSD) Volume Type. Support available from Canonical (http://www.ubuntu.com/cloud/services) AMI to spin up the instance, and it's the latest version (1.50) for EFA. I guess that will have to wait until the next version and try again.
Relevant content
asked 7 years ago

This was a clean instance where running $ sudo apt-get update was the first task before trying to install EFA. The page https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html lists Ubuntu26.04 as being of the supported O/S by EFA so I'm not sure why the installation is being killed.