Skip to content

Unable to install EFA on Ubuntu 26.04

0

Hello. The installation of EFA v1.50 (tried v1.49 on Saturday) in a Graviton5 instance running Ubuntu 26.04 is failing with the message:

...
Running the pre_build script... done.
Building module(s)... done.
Signing module /var/lib/dkms/efa-nv-peermem/1.2.3/build/build/src/efa_nv_peermem.ko
Installing /lib/modules/7.0.0-1006-aws/updates/dkms/efa_nv_peermem.ko.zst
Running depmod..... done.
Setting up efa (3.3.0-1.amzn1) ...
Creating symlink /var/lib/dkms/efa/3.3.0/source -> /usr/src/efa-3.3.0
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script................common.sh: line 191: 10911 Killed                     apt install -y $@
                                                                                                                   Error: Failed to install packages.
                                                                                                                                                     Error: failed to install EFA packages, exiting

Initially, I tried on a m9g and upgraded to r9g just in case it was lacking memory, but it was the same result. I'm not sure if there is some incompatibility between aarch64, EFA and Ubuntu 26.04 or if anything else is going on. Thanks.

asked 15 days ago41 views

2 Answers
0

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

0

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

EXPERT

answered 15 days ago

  • 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.

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.