I'm trying to follow this instruction (from How to Install the Latest Versions of NodeJS and NPM for Ubuntu 14.04 LTS):
apt-key adv --keyserver keyserver.ubuntu.com --recv 68576280 apt-add-repository "deb https://deb.nodesource.com/node_5.x $(lsb_release -sc) main" apt-get update apt-get install nodejs
Where it is mentioned that I can replace that URL with a different repository. I need a version greater than 0.10.37 - which is the max version the chris-lea repository seems to provide - but lower than 5.x. (I have removed the chris-lea repository).
However, I'm not at all sure what the URL actually has to refer to, when looking at this link: https://nodejs.org/dist/v0.10.40/
Then, when I try to install node v0.12 with these commands:
curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash - sudo apt-get install -y nodejs
I get 0.10.25.
How can I either: remove all traces of node from apt-get so that I can install it manually, or update the apt-get repository details to get the correct version?