Skip to content

Instantly share code, notes, and snippets.

@IainPeregrine
Created May 30, 2012 21:43
Show Gist options
  • Save IainPeregrine/2839134 to your computer and use it in GitHub Desktop.
Save IainPeregrine/2839134 to your computer and use it in GitHub Desktop.
After installing, node is still an old version
ceres@ceres-PCV-RX760-UC:~/node$ sudo apt-get install python-software-properties[sudo] password for ceres:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-software-properties is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 164 not upgraded.
ceres@ceres-PCV-RX760-UC:~/node$ sudo apt-add-repository ppa:chris-lea/node.js
You are about to add the following PPA to your system:
Evented I/O for V8 javascript. Node's goal is to provide an easy way to build scalable network programs
More info: https://launchpad.net/~chris-lea/+archive/node.js
Press [ENTER] to continue or ctrl-c to cancel adding it
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.NQaR7B470p --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 136221EE520DDFAF0A905689B9316A7BC7917B12
gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
gpg: key C7917B12: public key "Launchpad chrislea" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
ceres@ceres-PCV-RX760-UC:~/node$ sudo apt-get update
Ign http://ppa.launchpad.net precise InRelease
Ign http://extras.ubuntu.com precise InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]
Get:2 http://extras.ubuntu.com precise Release.gpg [72 B]
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:4 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Get:5 http://ppa.launchpad.net precise Release [11.9 kB]
Hit http://extras.ubuntu.com precise Release
Get:6 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:7 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:8 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Hit http://extras.ubuntu.com precise/main Sources
Get:9 http://ppa.launchpad.net precise/main Sources [1,005 B]
Get:10 http://us.archive.ubuntu.com precise Release [49.6 kB]
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:11 http://ppa.launchpad.net precise/main i386 Packages [1,552 B]
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:12 http://security.ubuntu.com precise-security/main Sources [12.6 kB]
Get:13 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:14 http://security.ubuntu.com precise-security/restricted Sources [14 B]
Get:15 http://security.ubuntu.com precise-security/universe Sources [4,522 B]
Get:16 http://security.ubuntu.com precise-security/multiverse Sources [696 B]
Get:17 http://security.ubuntu.com precise-security/main i386 Packages [43.9 kB]
Get:18 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:19 http://security.ubuntu.com precise-security/restricted i386 Packages [14 B]
Get:20 http://security.ubuntu.com precise-security/universe i386 Packages [10.3 kB]
Get:21 http://security.ubuntu.com precise-security/multiverse i386 Packages [1,393 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Get:22 http://us.archive.ubuntu.com precise/main Sources [934 kB]
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://extras.ubuntu.com precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Get:23 http://us.archive.ubuntu.com precise/restricted Sources [5,470 B]
Get:24 http://us.archive.ubuntu.com precise/universe Sources [5,019 kB]
Get:25 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:26 http://us.archive.ubuntu.com precise/main i386 Packages [1,274 kB]
Get:27 http://us.archive.ubuntu.com precise/restricted i386 Packages [8,431 B]
Get:28 http://us.archive.ubuntu.com precise/universe i386 Packages [4,796 kB]
Get:29 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:30 http://us.archive.ubuntu.com precise-updates/main Sources [89.3 kB]
Get:31 http://us.archive.ubuntu.com precise-updates/restricted Sources [1,379 B]
Get:32 http://us.archive.ubuntu.com precise-updates/universe Sources [16.5 kB]
Get:33 http://us.archive.ubuntu.com precise-updates/multiverse Sources [696 B]
Get:34 http://us.archive.ubuntu.com precise-updates/main i386 Packages [207 kB]
Get:35 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [2,439 B]
Get:36 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [48.5 kB]
Get:37 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [1,802 B]
Get:38 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [73 B]
Get:39 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [71 B]
Get:40 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [71 B]
Get:41 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [73 B]
Get:42 http://us.archive.ubuntu.com precise-backports/main Sources [700 B]
Get:43 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:44 http://us.archive.ubuntu.com precise-backports/universe Sources [5,354 B]
Get:45 http://us.archive.ubuntu.com precise-backports/multiverse Sources [1,383 B]
Get:46 http://us.archive.ubuntu.com precise-backports/main i386 Packages [559 B]
Get:47 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:48 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [4,368 B]
Get:49 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [999 B]
Get:50 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [71 B]
Get:51 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [71 B]
Get:52 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:53 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [72 B]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:54 http://us.archive.ubuntu.com precise-updates/main Translation-en [94.5 kB]
Get:55 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [738 B]
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Get:56 http://us.archive.ubuntu.com precise-updates/universe Translation-en [29.1 kB]
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Get:57 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [422 B]
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:58 http://us.archive.ubuntu.com precise-backports/universe Translation-en [2,911 B]
Fetched 13.1 MB in 43s (305 kB/s)
Reading package lists... Done
ceres@ceres-PCV-RX760-UC:~/node$ sudo apt-get install nodejs npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
node-which node-tar node-semver node-inherits node-mkdirp node-block-stream
node-nopt libc-ares-dev node-node-uuid node-lru-cache node-request
node-graceful-fs node-abbrev libv8-dev libv8-3.7.12.22 node-fstream
node-rimraf libc-ares2 node-minimatch node-ini
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
nodejs-dev rlwrap
The following NEW packages will be installed:
rlwrap
The following packages will be upgraded:
nodejs nodejs-dev npm
3 upgraded, 1 newly installed, 0 to remove and 173 not upgraded.
Need to get 4,611 kB of archives.
After this operation, 8,527 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/chris-lea/node.js/ubuntu/ precise/main nodejs-dev i386 0.6.18-1chl1~precise1 [215 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe rlwrap i386 0.37-2 [75.2 kB]
Get:3 http://ppa.launchpad.net/chris-lea/node.js/ubuntu/ precise/main nodejs i386 0.6.18-1chl1~precise1 [2,888 kB]
Get:4 http://ppa.launchpad.net/chris-lea/node.js/ubuntu/ precise/main npm all 1.1.21-1chl1~precise1 [1,432 kB]
Fetched 4,611 kB in 3s (1,371 kB/s)
Selecting previously unselected package rlwrap.
(Reading database ... 145726 files and directories currently installed.)
Unpacking rlwrap (from .../rlwrap_0.37-2_i386.deb) ...
Preparing to replace nodejs-dev 0.6.12~dfsg1-1ubuntu1 (using .../nodejs-dev_0.6.18-1chl1~precise1_i386.deb) ...
Unpacking replacement nodejs-dev ...
Preparing to replace nodejs 0.6.12~dfsg1-1ubuntu1 (using .../nodejs_0.6.18-1chl1~precise1_i386.deb) ...
Unpacking replacement nodejs ...
Preparing to replace npm 1.1.4~dfsg-1 (using .../npm_1.1.21-1chl1~precise1_all.deb) ...
Unpacking replacement npm ...
dpkg: warning: unable to delete old directory '/usr/share/npm/lib/utils/npm-registry-client': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/lib/utils/completion': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/lib/utils': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/lib': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/man/man3': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/man/man1': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/man': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/doc/api': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/doc/cli': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/doc': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/node_modules/proto-list': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/node_modules/slide/lib': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/node_modules/slide': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/node_modules/read/lib': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/node_modules/read': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/node_modules': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm/bin': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/npm': Directory not empty
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 3 removed doc-base files...
Setting up rlwrap (0.37-2) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode.
Setting up nodejs (0.6.18-1chl1~precise1) ...
Setting up nodejs-dev (0.6.18-1chl1~precise1) ...
Setting up npm (1.1.21-1chl1~precise1) ...
ceres@ceres-PCV-RX760-UC:~/node$ node -v
v0.5.11-pre
ceres@ceres-PCV-RX760-UC:~/node$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment