Unable to install to Ubuntu Mate


#1

I have tried to install Atom with “atom-amd64.deb” and ran that in the beginning, there was some installation but after that I could not find Atom on the Computer. Then I went on to build by source. On step 3 (script/build) I get the following error:

root@Halli-PC:~/atom# script/build
Node: v0.12.7
npm: v2.13.3
Installing build modules…
Installing apm…
sh: 1: node-gyp: Permission denied
sh: 1: node-gyp: Permission denied
sh: 1: node-gyp: Permission denied
npm ERR! Linux 3.19.0-15-generic
npm ERR! argv “node” “/root/atom/build/node_modules/.bin/npm” “–userconfig=/root/atom/build/.npmrc” “–target=0.10.35” “install” “–loglevel” "error"
npm ERR! node v0.12.7
npm ERR! npm v2.13.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! keytar@2.1.0 install: node-gyp rebuild
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the keytar@2.1.0 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the keytar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls keytar
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /root/atom/apm/npm-debug.log
root@Halli-PC:~/atom# npm config set python /usr/bin/python2 -g
root@Halli-PC:~/atom# script/build
Node: v0.12.7
npm: v2.13.3
Installing build modules…
Installing apm…
sh: 1: node-gyp: Permission denied
sh: 1: node-gyp: Permission denied
sh: 1: node-gyp: Permission denied
npm ERR! Linux 3.19.0-15-generic
npm ERR! argv “node” “/root/atom/build/node_modules/.bin/npm” “–userconfig=/root/atom/build/.npmrc” “–target=0.10.35” “install” “–loglevel” "error"
npm ERR! node v0.12.7
npm ERR! npm v2.13.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! keytar@2.1.0 install: node-gyp rebuild
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the keytar@2.1.0 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the keytar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls keytar
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /root/atom/apm/npm-debug.log

Now when i try atom-amd64.deb again, I am just sent into Ubuntu Software Center
there is a yellow line with the text

Wrong architecture ‘amd64’

Hopefully this is just a simple error.


#2

Fixed
Just used PPA

sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom


#3

Are you actually on a 64-bit machine?

Try building as a regular user (not root) and installing as root: script/build && sudo script/grunt install


#4

For others that might be considering using this PPA, this is not an official Atom distribution channel.