I am facing an issue when trying to install nodejs. When checking the error it requires to upgrade libc6 but I cannot find any way to upgrade libc6 for Ubuntu 18.04.
The old nodejs version I have already uninstalled it with the following commands
sudo apt-get remove nodejs
sudo apt-get remove npm
Issue
sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1.6 is to be installed
E: Unable to correct problems, you have held broken packages.
I have gone through these link & link2 & link3 but I didn't get any help
I have fixed the issue by using an older version of the node. To fix the issue permanently it requires Ubuntu upgrade
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With