I'm unable to update nodejs, and I can't see why.
If I were to make a guess, I'd say that I have two repositories listed in apt-get, that both contain a nodejs package.
Here's what I've done:
Remove old version:
sudo apt-get remove --purge nodejs npm
Then, going by https://github.com/nodesource/distributions#installation-instructions, I've run:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
I then run:
Can anyone explain what's going wrong? And how I can remedy this situation?
which nodejswill tell you that. Then, run
apt-get remove...again and see what the output of
which nodejsis after attempting to remove it.