This does not seem helpful. For example every Lambda image (at the time of this writing ex: NodeJS v16) seems to have a version of glibc v2.2.6 released on 2017-08-02. We need a way to update glibc now? Answer from MetaSkills on repost.aws
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › what is amazon linux 2023? › core toolchain packages glibc, gcc, binutils
Core toolchain packages glibc, gcc, binutils - Amazon Linux 2023
May 22, 2026 - These three core packages provide a system toolchain that's used to build most software in the Amazon Linux distribution. We recommend that updates to any glibc libraries are followed by a reboot. For updates to packages that control services, it might be sufficient to restart the services ...
🌐
Reddit
reddit.com › r/aws › how to upgrade glibc on amazon linux 2 ami
r/aws on Reddit: How to upgrade glibc on Amazon Linux 2 AMI
March 1, 2022 -

On EC2 instances using Amazon Linux 2, an outdated version of glibc is used: glibc 2.26. That is backed up by the FAQ for Amazon Linux 2. FAQ for Amazon Linux 2.

A set of core packages including systemd, GCC 7.3, Glibc 2.26, Binutils 2.29.1 that receive Long Term Support (LTS) from AWS.

Is there any way to upgrade to a newer version of Glibc, like 2.28? For background, I am trying to run a Python Docker image that is using glibc 2.28 and is running into conflicts since the 2.26 version is being used in the instance.

Discussions

node.js - GLIBC_2.27 not found while installing Node on Amazon EC2 instance - Stack Overflow
LTS has moved on for node, however, as per @djvg's comment, note there is a limitation with amazon linux 2 on glibc, so if requiring node > 16 will need to move to newer amazon linux version, eg: https://github.com/amazonlinux/amazon-linux-2023/blob/main/Release-Notes-Amazon-Linux-2022.0.2... More on stackoverflow.com
🌐 stackoverflow.com
node.js - GLIBC version issue while installing npm on Amazon Linux 2023 - Stack Overflow
I am using Amazon Linux 2023 and trying to update Node from v14 to v18. While running the command nvm install 18.13.0 it's installing the Node properly. However, right after that I tried to run the command npm i -g npm@10.2.4 and it showed the following list of errors - Copynode: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC... More on stackoverflow.com
🌐 stackoverflow.com
Workaround for machines that do not have `glibc` >= 2.28
It will make all Amazon Linux 2 (AL2) EC2 machines unable to use VS Code, while also affecting enterprise users who may use customized or parallel versions of the glibc library for their own development needs. While I acknowledge the need to update components to suit the development needs of ... More on github.com
🌐 github.com
38
January 24, 2024
amazon ec2 - yum update errors with glibc dependency resolution - Stack Overflow
When I try and update my 2014.03 Amazon ec2 instance using simply "sudo yum update" I get the following error output. Any suggestions on fixing this would be swell. Loaded plugins: priorities, up... More on stackoverflow.com
🌐 stackoverflow.com
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › glibc-update-to-2-27-in-amazon-linux-4175633861
glibc update to 2.27 in amazon linux
I am trying to update glibc package update in amazon linux AMI, could some please help me how to update the glibc this is regarding to CVE-2017-15804
🌐
Stack Overflow
stackoverflow.com › questions › 79041854 › glibc-version-issue-while-installing-npm-on-amazon-linux-2023
node.js - GLIBC version issue while installing npm on Amazon Linux 2023 - Stack Overflow
I am using Amazon Linux 2023 and trying to update Node from v14 to v18. While running the command nvm install 18.13.0 it's installing the Node properly. However, right after that I tried to run the command npm i -g npm@10.2.4 and it showed the following list of errors - Copynode: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by node)
Find elsewhere
🌐
Tenable
tenable.com › plugins › nessus › 171823
Amazon Linux 2 : glibc (ALAS-2023-1944)<!-- --> | Tenable®
February 17, 2023 - Run 'yum update glibc' to update your system. https://alas.aws.amazon.com/AL2/ALAS-2023-1944.html · https://alas.aws.amazon.com/cve/html/CVE-2019-19126.html · https://alas.aws.amazon.com/cve/html/CVE-2020-10029.html · https://alas.aws.amazon.com/cve/html/CVE-2020-1752.html ...
🌐
GitHub
github.com › microsoft › vscode › issues › 203375
Workaround for machines that do not have `glibc` >= 2.28 · Issue #203375 · microsoft/vscode
January 24, 2024 - It will make all Amazon Linux 2 (AL2) EC2 machines unable to use VS Code, while also affecting enterprise users who may use customized or parallel versions of the glibc library for their own development needs. While I acknowledge the need to update components to suit the development needs of ...
Author   microsoft
🌐
Installati.one
installati.one › home › amazonlinux › 2nd › how to install glibc.x86_64 on amazon linux 2
How To Install glibc.x86_64 on Amazon Linux 2 | Installati.one
May 20, 2022 - We can use yum to install glibc.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install glibc.x86_64. Update yum database with yum using the following command.
🌐
Tenable
tenable.com › plugins › nessus › 264828
Amazon Linux 2023 : compat-libpthread-nonshared, glibc, glibc-...<!-- --> | Tenable®
September 15, 2025 - Run 'dnf update glibc --releasever 2023.8.20250915' or or 'dnf update --advisory ALAS2023-2025-1179 --releasever 2023.8.20250915' to update your system. https://alas.aws.amazon.com//AL2023/ALAS2023-2025-1179.html · https://alas.aws.amazon.com/faqs.html · https://explore.alas.aws.amazon.c...
Top answer
1 of 5
5

The answer at:
Node.js 18 is compiled for glibc 2.28
is certainly correct although highly unsatisfying.

You cannot run the binary on your system because it relies on a version of glibc which is not available on your system.

$ docker run -it amazoncorretto:11 bash
bash-4.2# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
bash-4.2# rpm -q --provides glibc|grep -i libc.so
libc.so.6()(64bit)
libc.so.6(GLIBC_2.10)(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.12)(64bit)
libc.so.6(GLIBC_2.13)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.15)(64bit)
libc.so.6(GLIBC_2.16)(64bit)
libc.so.6(GLIBC_2.17)(64bit)
libc.so.6(GLIBC_2.18)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.2.6)(64bit)
libc.so.6(GLIBC_2.22)(64bit)
libc.so.6(GLIBC_2.23)(64bit)
libc.so.6(GLIBC_2.24)(64bit)
libc.so.6(GLIBC_2.25)(64bit)
libc.so.6(GLIBC_2.26)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.2)(64bit)
libc.so.6(GLIBC_2.3.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.5)(64bit)
libc.so.6(GLIBC_2.6)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libc.so.6(GLIBC_2.8)(64bit)
libc.so.6(GLIBC_2.9)(64bit)

It supports only up to GLIBC_2.26.

Also amazoncorretto:latest only supports up to glibc 2.26:

$ docker run -it amazoncorretto bash
bash-4.2# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
bash-4.2# rpm -q --provides glibc|grep -i libc.so
libc.so.6()(64bit)
libc.so.6(GLIBC_2.10)(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.12)(64bit)
libc.so.6(GLIBC_2.13)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.15)(64bit)
libc.so.6(GLIBC_2.16)(64bit)
libc.so.6(GLIBC_2.17)(64bit)
libc.so.6(GLIBC_2.18)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.2.6)(64bit)
libc.so.6(GLIBC_2.22)(64bit)
libc.so.6(GLIBC_2.23)(64bit)
libc.so.6(GLIBC_2.24)(64bit)
libc.so.6(GLIBC_2.25)(64bit)
libc.so.6(GLIBC_2.26)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.2)(64bit)
libc.so.6(GLIBC_2.3.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.5)(64bit)
libc.so.6(GLIBC_2.6)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libc.so.6(GLIBC_2.8)(64bit)
libc.so.6(GLIBC_2.9)(64bit)

You cannot update your glibc library because it is part of the Linux Kernel. It will be upgraded when you migrate to a newer Operating System Version.

The way to get it running on your system would be to rebuild it from the Source Code for your system and ideally package it for easily reproducible installation.

You might setup a docker image from amazoncorretto Base Image with the Packaging Environment set up.

An Package build on the Packaging Docker Host will be installable on all amazoncorretto:11 Systems.

Useful will be the pre-built .spec file which can be found at:
NodeJS .spec file
Then you only need to build your rpmbuild environment to create your installable NodeJS .rpm package.

AWS NodeJS Lambda Runner:

@Rich mentioned the public.ecr.aws/lambda/nodejs:18 AWS Lambda Runner image.
This is an image which is designed to run NodeJS tasks with the CMD dockerfile instruction at startup.
This actually might be fine for some single shot task (what it is designed for) or to startup directly a ExpressJS web app.
A downside is that you cannot independently update the NodeJS engine without upgrading the whole base image because the NodeJS engine is not installed as a system package.


$ docker run -it public.ecr.aws/lambda/nodejs:18 
19 Jun 2023 09:53:51,148 [INFO] (rapid) exec '/var/runtime/bootstrap' (cwd=/var/task, handler=)


^C19 Jun 2023 09:54:26,776 [INFO] (rapid) Received signal signal=interrupt
19 Jun 2023 09:54:26,776 [INFO] (rapid) Shutting down...
19 Jun 2023 09:54:26,776 [WARNING] (rapid) Reset initiated: SandboxTerminated
19 Jun 2023 09:54:26,776 [INFO] (rapid) Stopping runtime domain
19 Jun 2023 09:54:26,776 [INFO] (rapid) Waiting for runtime domain processes termination
19 Jun 2023 09:54:26,776 [INFO] (rapid) Stopping operator domain
19 Jun 2023 09:54:26,776 [INFO] (rapid) Starting runtime domain
$ docker run --entrypoint bash -it public.ecr.aws/lambda/nodejs:18
bash-4.2# rpm -qa|grep -i node|wc -l
0
bash-4.2# node --version
v18.16.0
bash-4.2# npm --version
9.5.1
bash-4.2# cat /lambda-entrypoint.sh
#!/bin/sh
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.

if [ $# -ne 1 ]; then
  echo "entrypoint requires the handler name to be the first argument" 1>&2
  exit 142
fi
export _HANDLER="$1"

RUNTIME_ENTRYPOINT=/var/runtime/bootstrap
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
  exec /usr/local/bin/aws-lambda-rie $RUNTIME_ENTRYPOINT
else
  exec $RUNTIME_ENTRYPOINT
fi
bash-4.2# ls -lah /usr/local/bin/aws-lambda-rie
-rwxr-xr-x 1 root root 5.6M Jun 12 13:21 /usr/local/bin/aws-lambda-rie
bash-4.2# ls -lah /etc/yum.repos.d
total 12K
drwxr-xr-x 2 root root 4.0K Jun 23  2022 .
drwxr-xr-x 1 root root 4.0K Jun 19 09:57 ..
-rw-r--r-- 1 root root 1003 Oct 26  2021 amzn2-core.repo
2 of 5
4

Building up on the answer by Bodo Hugo Barwich and the comment by Rich:

If you do not want to use the Docker image public.ecr.aws/lambda/nodejs:18 directly, you can copy node from that image to your own image via multi-stage build:

FROM public.ecr.aws/lambda/nodejs:18 as nodesource

FROM amazonlinux:2
ENV PATH="$PATH:/var/lang/bin"
COPY --from=nodesource /var/lang /var/lang

RUN npm i whatever
🌐
AWS
aws.amazon.com › blogs › developer › linux-support-updates-for-aws-cli-v2
Linux Support Updates for AWS CLI v2 | AWS Developer Tools Blog
August 6, 2025 - If you’re currently using AWS CLI v2 on a Linux distribution with glibc version 2.16 or prior, the AWS CLI team recommends upgrading to glibc 2.17 or later. Please share your questions, comments, and issues with us on our GitHub repository. Developer Resources & Community Open Source Repos Twitch Live Coding Labs on Github · Instagram Reddit Twitter Facebook LinkedIn Twitch Email Updates...
🌐
Tenable
tenable.com › plugins › nessus › 186573
Amazon Linux 2 : glibc (ALAS-2023-2371)<!-- --> | Tenable®
Run 'yum update glibc' to update your system. https://alas.aws.amazon.com/AL2/ALAS-2023-2371.html ... Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus ... CPE: p-cpe:/a:amazon:linux:glibc-langpack-te, ...
🌐
Tenable
tenable.com › plugins › nessus › 119468
Amazon Linux AMI : glibc (ALAS-2018-1109)<!-- --> | Tenable®
Run 'yum update glibc' to update your system. ... Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus ... CPE: p-cpe:/a:amazon:linux:glibc-static, p-cpe:/a:amazon:linux:glibc-devel, p-cpe:/a:amazon...