-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Packages failing to install on Ubuntu 20.04 #20668
Comments
Hi, (I am not a maintainer of Atom, so these are just my comments as an Atom user.) I can install Can you run I see this in the error message you posted:
Sounds like some code tried to bring in this package but failed: https://www.npmjs.com/package/nan This seems like a fairly core thing to NodeJS and shouldn't be having issues. And if there is a bug it might not be within the Atom/apm code. Does If that doesn't work, perhaps you can try installing Atom in a LiveCD environment (after booting the Ubuntu 20.04 install iso but before/without installing) and see if |
According to NodeJS docs, https://github.com/nodejs/node/blob/master/doc/api/process.md#exit-codes, Error code 134 is SIGABRT, which is usually triggered when a program catches a weird state in its own operation. https://stackoverflow.com/questions/3413166/when-does-a-process-get-sigabrt-signal-6 A comment here said it was down to running out of system RAM/memory: laverdet/node-fibers#358 (comment) Perhaps you are running out of RAM/memory when running |
@DeeDeeG Thanks for your reply. Yes, it fails every time I try to install any of the terminal packages.
I tried installing I also cleared the cache of I removed atom and atom nightly, removed their My memory usage peaks at 2.6Gbyte out of 16Gbyte while installing. I still get the same error. |
If you tried this from a LiveCD/LiveUSB environment, it would be like "safe mode" for Ubuntu. That would rule out anything unusual with your software and boil it down to "does this happen on your hardware with a perfectly clean version of Ubuntu and Atom?" If that worked, it would be narrowed down to something more specific you may have configured/installed on your system since installing Ubuntu. If it fails in Ubuntu LiveCD environment, then it has nothing to do with anything you might have done on your system since installing Ubuntu. I personally don't know anything more than that for narrowing this bug down. It seems likely to be a bug in But this is all a guess, sorry. |
I removed every file in relation to Cant get it to work in a fresh Ubuntu install either. |
I have the exact same issue in Debian 10 using Atom installed from the official repository; the issue started occurring after I tried to install "terminal-tab" as a package. Configuration as follows:
Could this issue be related with the ENOENT for package.js not found, as seen in the log? |
This solved the problem in my case. It turns out that you need to remove all system installed npm interpreters, so that they do not conflict with apm. In my case, it was enough with:
You might check with "which npm" and remove all npm references from the PATH before executing "apm install XXX". |
Prerequisites
Description
Atom packages can't be installed on Ubuntu 20.04
Steps to Reproduce
Expected behavior:
Package installs.
Actual behavior:
For example when installing
terminus
viaapm install terminus
Log:
Complete Log
Reproduces how often:
100% of the time.
Versions
Tested on:
Atom : 1.45.0
Electron: 4.2.7
Chrome : 69.0.3497.128
Node : 10.11.0
and:
Atom : 1.48.0-nightly1
Electron: 5.0.13
Chrome : 73.0.3683.121
Node : 12.0.0
Additional Information
I think it could somehow be related to
node-gyp
andpython
.Maybe #20406 / #20356 ?
The text was updated successfully, but these errors were encountered: