79481127

Date: 2025-03-03 13:54:41
Score: 2
Natty:
Report link

As of March 2025, last available version of glibc on Ubuntu 18 is 2.27 (https://launchpad.net/ubuntu/bionic/+source/glibc).

On Ubuntu 18, if you got :

node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)

This probably means you are trying to run Nodejs >= 18, but this is not possible according to https://github.com/nodejs/node/blob/v18.x/BUILDING.md#unix-and-macos and https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions and because glibc >= 2.28 is not released for Ubuntu 18. You can build it manually and that post may helps you : https://stackoverflow.com/a/73188338/21644773.

But the easiest (and faster) way would probably to upgrade your system to Ubuntu 20 :

sudo do-release-upgrade
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: stouch