if you typed ldd --version you would get back a response that contains the text "GLIBC 2.23". this is the same version number as you observed when running apt-get. you are running libc version 2.23.
now, when you tried to run chrome, you were getting back a message saying that the compile of chrome you have downloaded requires some symbols with "GLIBC_2.25" versioning, ie from libc version 2.25. so the compile version of chrome you have there makes use of functions with versioning that is simply not available on your system.
there are a couple of solutions offered here: https://stackoverflow.com/questions/59145051/glibc-2-27-not-found-ubuntu-16-04
"run [chrome] in a chroot environment or in a docker container",
"install GLIBC-2.27 in parallel with system GLIBC, as described in e.g. this answer".
recompile the chrome source code on your machine. this will likely work as most libc symbols have multiple compatible versions available that go back to the original release for x86_64.
i would suggest a docker container may be your simplest solution if you want to stay with 16.04.
but you will still have the problem that in future other things may break due to ubuntu 16.04 not being maintained. the simplest long-term solution is to switch to either a newer ubuntu, or some other flavor of linux (linux mint xfce is a popular choice). try to pick something that is likely to be supported in some shape or form for the projected lifespan of the hardware you are running it on.
Answer from user2061503 on askubuntu.com[Bug]: code-server does not start with error: version `GLIBC_2.25' not found
GLIBC_2.25 not found on AmazonLinux
`GLIBC_2.25' not found
Error on wakeup
Finally I got solution by running the following commands.
sudo apt-get remove nodejs
nvm install 16.15.1
Node.js v16.15.1 version and npm v16.15.1 is installed. For the same, make sure nvm is installed in your machine.
You can install Node.js v17.x by nvm (Node.js version manager).
My OS version: Ubuntu 18.04.6 LTS (Bionic Beaver)
I tried three ways to install Node.js and npm on my pc:
(fail) apt-get. The version is very old
$ sudo apt-get install nodejs $ sudo apt-get install npm $ node -v v8.10.0 $ npm -v 6.1.0(fail) script from source code of Node.js, only Node.js is updated, npm is not. https://github.com/nodesource/distributions/blob/master/README.md#using-ubuntu-1
$ curl -sL https://deb.nodesource.com/setup_14.x -o /tmp/nodesource14_setup.sh $ node -v v14.20.1 $ npm -v 6.1.0(success) use nvm
https://github.com/nvm-sh/nvm#installing-and-updating
$ sudo apt-get remove nodejs $ sudo apt-get remove npm $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash $ chmod +x ~/.nvm/nvm.sh $ source ~/.bashrc $ nvm -v 0.39.2 $ nvm install 14 $ node -v v14.20.1 $ npm -v 6.14.17 $ nvm install 16 $ node -v v16.18.0 $ npm -v 8.19.2 $ nvm install 17 $ node -v v17.9.1 $ npm -v 8.11.0 # Failed to install 18 $ nvm install 18 $ node -v node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) $ npm -v node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)
These errors:
node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
mean that the node binary you are trying to install was build on a GLIBC-2.28 or later system, using GCC-5.1.0 (ABI reference).
You are trying to run that binary on a machine with GCC-4.4.2 and GLIBC older than 2.14. That's not going to work.
Trying to use GLIBC-2.14 isn't going to work either -- you need at least GLIBC-2.28.
You really shouldn't be running such an old OS -- there are many vulnerabilities that have long been fixed since then. Your best bet is to upgrade your OS to something more modern, and then install node compiled specifically for that OS.
It's possible to work around this by setting LD_LIBRARY_PATH and using patchelf appropriately (see this answer), but I doubt you'll succeed with that approach.
try this:
sudo apt-get remove nodejs
nvm i 16
sudo apt-get install nodejs
sudo apt-get install npm
node -v
npm -v
nvm -v
run it several times , clean cache and relaunch the system several times