Open nbastin opened 4 years ago
It seems likely that the problem here is that the bootstrap.py
script adds an https://
package repository to sources.list.d
, which causes apt-get update
to fail in many proxied environments but the installer does not notice this error and continues on as if everything went fine (only to fail later with a far more mysterious error).
+1, we also encountered this issue. In our locked-down firewall environment, we pull all our apt-get packages through an apt-cacher-ng server, and while it could theoretically proxy both HTTP and HTTPS, it is more able to inspect everything if it's HTTP. So in our case, the bootstrap script added the HTTPS version of nodesource (in a nice, separate sources.list.d file, that is appreciated!), and then it tried to install Node.js but this apt-get failed, and the calling script doesn't notice that this happened. The error later is, I concur, more mysterious, a distracting red herring for troubleshooting!
My vote would be for whatever is calling the apt-get to notice the failed install and then halt the script there with an appropriate message, perhaps calling attention to /etc/apt/sources.list.d/nodesource.list
for the sysadmin to adjust.
Bug description
If you install the prerequisites as indicated on the web site, and run the bootstrap.py script, it thinks you don't get Node.js and the installation fails.
Expected behaviour
Installation would succeed.
Actual behaviour
You get this log and the installation fails:
In the log created in
/tmp/
, it seems that there is a Node available, right before the error:How to reproduce
Install prereqs as documented:
Attempt to run install script:
Your personal set up
Completely fresh install, no extra packages other than openssh.