REMnux / remnux-cli

This repository contains the source code for the REMnux installer, which is the command-line tool for installing and upgrading the REMnux distro.
https://REMnux.org
MIT License
38 stars 11 forks source link

[11/12/2024] REMnux failed to install on Ubuntu 20.04 #196

Open KlimHazzard opened 2 days ago

KlimHazzard commented 2 days ago

Trying to download REMnux on Ubuntu using the following command sudo remnux install --mode=addon and I get the following error

> remnux-cli@1.4.3.1.g2137384
> remnux-version: notinstalled

> mode: addon
> downloading v2024.44.3
>> downloading remnux-salt-states-v2024.44.3.tar.gz.asc
>> downloading remnux-salt-states-v2024.44.3.tar.gz.sha256
>> downloading remnux-salt-states-v2024.44.3.tar.gz.sha256.asc
>> downloading remnux-salt-states-v2024.44.3.tar.gz
> validating file remnux-salt-states-v2024.44.3.tar.gz

Hashes for remnux-salt-states-v2024.44.3.tar.gz do not match. Expected: . Actual: eaa5a44346030b7a96f8a4531cc21976527fd88483c5a3e11f0670cc87f2db69  /tmp/remnux-salt-states-v2024.44.3.tar.gz
.
Error: Hashes for remnux-salt-states-v2024.44.3.tar.gz do not match. Expected: . Actual: eaa5a44346030b7a96f8a4531cc21976527fd88483c5a3e11f0670cc87f2db69  /tmp/remnux-salt-states-v2024.44.3.tar.gz
.
    at validateFile (/snapshot/remnux-cli/remnux-cli.js:407:11)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async downloadUpdate (/snapshot/remnux-cli/remnux-cli.js:474:3)
    at async run (/snapshot/remnux-cli/remnux-cli.js:748:5)
    at async main (/snapshot/remnux-cli/remnux-cli.js:771:5)

Sometimes problems occur due to network or server issues when
downloading packages, in which case retrying your operation
a bit later might lead to good results.

To determine the nature of the issue, please review the
saltstack.log file under /var/cache/remnux/cli in the
subdirectory that matches the REMnux version you're installing.
Search for the log file for "result: false" messages and look at
the surrounding lines to diagnose the issue.

For assistance go to https://github.com/REMnux/remnux-cli/issues
lennyzeltser commented 2 days ago

@KlimHazzard, I'm wondering whether something upstream from your network connection is interfering with the download. Are you behind a web proxy, by any chance? The REMnux installer doesn't presently work with proxies.

KlimHazzard commented 1 day ago

Not behind a web proxy. I have a VPN that I use but in these scenarios when debugging issues I'll switch it off to see if it fixes anything and it doesn't fix it :(. Would having the VPN on during the installation process (when I run the command sudo remnux install --mode=addon) permanently effect the installation process to where it wouldn't work afterwards?

lennyzeltser commented 1 day ago

Great, please give it a try. It's fine to run the REMnux installer command multiple times.

KlimHazzard commented 1 day ago

Currently whipped up a fresh Ubuntu install and tried this time without a VPN on the entire time during the Ubuntu installation process AND the following REMnux installation process. It seems to be running fine so far! (I also ran sudo remnux install instead)

As for the previous Ubuntu install, I can't seem to run sudo remnux install --mode=addon without having the same error pop up.

I'll update if it ~completes fully~ it didn't complete fully, it got up to the following

>> Running: /etc/ssh/sshd_config
>> Running: away-from-the-dog
>> Running: echo "wireshark-common wireshark-common/install-setuid select True"| debconf-set-selections; dpkg-reconfigure -f noninteractive wireshark-common
>> Running: wireshark
>> Running: ssh
Update returned exit code not zero
Error: Update returned exit code not zero
    at ChildProcess.<anonymous> (/snapshot/remnux-cli/remnux-cli.js:562:23)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

Sometimes problems occur due to network or server issues when
downloading packages, in which case retrying your operation
a bit later might lead to good results.

To determine the nature of the issue, please review the
saltstack.log file under /var/cache/remnux/cli in the
subdirectory that matches the REMnux version you're installing.
Search for the log file for "result: false" messages and look at
the surrounding lines to diagnose the issue.

For assistance go to https://github.com/REMnux/remnux-cli/issues
KlimHazzard commented 1 day ago

Well I was prompted to update my new version of Ubuntu (the ISO used is 20.04.6) using the package manager and restarted the VM. It seems like it might have half installed REMnux (?). It changed the background in Ubuntu to the REMnux background and some of the packages are there. But when I run sudo remnux install again I get the same kind of error

.
.
.
>> Running: away-from-the-dog
>> Running: echo "wireshark-common wireshark-common/install-setuid select True"| debconf-set-selections; dpkg-reconfigure -f noninteractive wireshark-common
>> Running: wireshark
>> Running: remnux-theme
>> Running: ssh
Update returned exit code not zero
Error: Update returned exit code not zero
    at ChildProcess.<anonymous> (/snapshot/remnux-cli/remnux-cli.js:562:23)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

Sometimes problems occur due to network or server issues when
downloading packages, in which case retrying your operation
a bit later might lead to good results.

To determine the nature of the issue, please review the
saltstack.log file under /var/cache/remnux/cli in the
subdirectory that matches the REMnux version you're installing.
Search for the log file for "result: false" messages and look at
the surrounding lines to diagnose the issue.

For assistance go to https://github.com/REMnux/remnux-cli/issues

Which seems like SSH is the problem?

KlimHazzard commented 1 day ago

ALSO the other Ubuntu VM still has the original same salt-states error stated as before when running either commands, even if a VPN isn't running sudo remnux install sudo remnux install --mode=addon

digitalsleuth commented 1 day ago

Hi @KlimHazzard , the ssh state is just the last state to run in the list of installations, not necessarily the one with the issue itself. The "Error" doesn't present until after all states have been run. Would you be able to provide the saltstack.log file so we can do some troubleshooting?

KlimHazzard commented 1 day ago

Sure, according to the information in the error log it says "please review the saltstack.log file under /var/cache/remnux/cli", but I can't seem to find this log file in the directory

remnux@ubuntu:/var/cache/remnux/cli/v2024.44.3$ ls
remnux-salt-states-v2024.44.3.tar.gz
remnux-salt-states-v2024.44.3.tar.gz.asc
remnux-salt-states-v2024.44.3.tar.gz.sha256
remnux-salt-states-v2024.44.3.tar.gz.sha256.asc

~How can I retrieve the saltstack.log (mind you this is just a fresh install of Ubuntu)?~

UPDATE: Found the saltstack.log, since I'm referring to two VMs where I'm instally REMnux here, it was in the second VM

KlimHazzard commented 1 day ago

Found the saltstack.log @digitalsleuth saltstack.log