apt-get install nodejs && node -v Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libc-ares2 libv8-3.14.5 The following NEW packages will be installed: libc-ares2 libv8-3.14.5 nodejs 0 upgraded, 3 newly installed, 0 to remove and 186 not upgraded. Need to get 1,912 kB of archives. After this operation, 7,538 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrors.aliyun.com/ubuntu/ trusty/main libc-ares2 amd64 1.10.0-2 [38.5 kB] Get:2 http://mirrors.aliyun.com/ubuntu/ trusty/universe libv8-3.14.5 amd64 3.14.5.8-5ubuntu2 [1,189 kB] Get:3 http://mirrors.aliyun.com/ubuntu/ trusty/universe nodejs amd64 0.10.25~dfsg2-2ubuntu1 [684 kB] Fetched 1,912 kB in 1s (1,269 kB/s) Selecting previously unselected package libc-ares2:amd64. (Reading database ... 75222 files and directories currently installed.) Preparing to unpack .../libc-ares2_1.10.0-2_amd64.deb ... Unpacking libc-ares2:amd64 (1.10.0-2) ... Selecting previously unselected package libv8-3.14.5. Preparing to unpack .../libv8-3.14.5_3.14.5.8-5ubuntu2_amd64.deb ... Unpacking libv8-3.14.5 (3.14.5.8-5ubuntu2) ... Selecting previously unselected package nodejs. Preparing to unpack .../nodejs_0.10.25~dfsg2-2ubuntu1_amd64.deb ... Unpacking nodejs (0.10.25~dfsg2-2ubuntu1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up libc-ares2:amd64 (1.10.0-2) ... Setting up libv8-3.14.5 (3.14.5.8-5ubuntu2) ... Setting up nodejs (0.10.25~dfsg2-2ubuntu1) ... update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode Processing triggers for libc-bin (2.19-0ubuntu6.6) ... The program 'node' can be found in the following packages: * node * nodejs-legacy Try: apt-get install <selected package>