title: Updating to Node 4.x in linux(ubuntu) fails with no error and stays with v0.10
body: <p>I have come across ReactJS and React Native. ReactJS is brilliant, super fast and works fine on Node v0.10. But, React Native needs v4.x as a prerequisite.
  So, when I run any react-native command, it fails and says Node 4 is required.</p>
  
  <p>I have tried several times and many ways to update Node, but, have failed.</p>
  
  <p>First followed <a href="https://github.com/nodesource/distributions#debinstall" rel="nofollow noreferrer">Installation Instructions</a> -</p>
  
  <pre><code>curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash
  sudo apt-get install -y nodejs
  </code></pre>
  
  <p>I ended up with the following message-</p>
  
  <pre><code>root@purvotara:/# apt-get install -y nodejs
  Reading package lists... Done
  Building dependency tree      
  Reading state information... Done
  nodejs is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  </code></pre>
  
  <p>Then, there was <a href="https://github.com/nodesource/distributions#debmanual" rel="nofollow noreferrer">Manual Installation</a> way of installing.</p>
  
  <pre><code>add-apt-repository -y -r ppa:chris-lea/node.js
  rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list
  curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
  echo 'deb https://deb.nodesource.com/node/dists/trusty/Release main' &gt; /etc/apt/sources.list.d/nodesource.list
  echo 'deb-src https://deb.nodesource.com/node/dists/trusty/Release main' &gt; /etc/apt/sources.list.d/nodesource.list
  apt-get update
  apt-get install nodejs
  </code></pre>
  
  <p>Still, ended up with -</p>
  
  <pre><code>nodejs is already the newest version.
  </code></pre>
  
  <p>I tried to <strong>purge</strong> and <strong>auto-remove</strong> my current v0.10 node and tried to freshly install, not sure if its still picking the install from the cache, but, v0.10 got installed.</p>
  
  <p>Also followed <a href="http://linoxide.com/ubuntu-how-to/setup-node-js-4-0-ubuntu-14-04-15-04/" rel="nofollow noreferrer">linoxide</a> article on the same. A <strong>.configure</strong> and <strong>make install</strong> didn't seem to work as well.</p>
  
  <p><strong>What am I doing wrong? I am stuck for hours.</strong></p>
  
  <p>Went over several other links to resolve other issues(they are resolved now)-</p>
  
  <p><a href="https://stackoverflow.com/questions/5650169/uninstall-node-js-using-linux-command-line">Uninstalling node</a></p>
  
  <p><a href="https://askubuntu.com/questions/539409/failed-to-fetch-trusty">Failed to fetch Trusty</a></p>