[Fix] node /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.28′ not found (required by node)

Recently, when i was coding node.js, I tried to run the code node -v command and i got an unexpected error; node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node). Here is the snippet of the error I got:

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

I would like to share the steps that helped me to fix the ,node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node) error.

Why node /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.28′ not found (required by node) error is seen ?

node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node) error is seen because your system most probably has a node version installed which is compiled for a different ubuntu version release rather ubuntu version release you are running.

A detailed solution to fix the node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node) error is provided below:

How to fix node /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.28′ not found (required by node) Error ?

To fix error, remove the node release version already installed in your system, then install the nodesource binary distribution, you can find its link here. It would automatically detect your ubuntu release version and install the proper node release version.

You can also remove the node release version already installed in your system, then install the node source binary distribution by runnig the below-mentioned codes.

To fix the node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node) error; you will have to follow the below-mentioned steps to fix the error.

First try to remove the node release version already installed in your system, then install the nodesource binary distribution, you can find its link here. It would automatically detect your ubuntu release version and install the proper node release version.

You can also remove the node release version already installed in your system, then install the node source binary distribution by runnig the below-mentioned codes.

sudo apt-get remove nodejs
nvm install 16.15.1

Note: Make sure that nvm is installed in your system for this method to work

This should fix node /lib/x86_64-linux-gnu/libc.so.6 version `GLIBC_2.28′ not found (required by node) Error.

Conclusion

To fixnode: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by node) error; is to remove the node release version already installed in your system, then install the nodesource binary distribution, you can find its link here.

It would automatically detect your ubuntu release version and install the proper node release version.You can also remove the node release version already installed in your system, then install the node source binary distribution by runnig the below-mentioned codes.