Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error #183

Open
futex opened this issue Jul 8, 2024 · 6 comments
Open

Update error #183

futex opened this issue Jul 8, 2024 · 6 comments

Comments

@futex
Copy link

futex commented Jul 8, 2024

Hell, i wanted to upgrade my Remnux VM (Ubuntu 20.04) and got these errors:

`>> Running: /etc/ssh/sshd_config

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: remnux-theme
Running: ssh
Update returned exit code not zero
Error: Update returned exit code not zero
at ChildProcess. (/snapshot/remnux-cli/remnux-cli.js:571: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
`

I can´t find the glue.
Other questions, is it possible to blacklist a package? And, is Ubuntu 22.04 or 24.04 is supported?

Thanks you!

saltstack.zip

@digitalsleuth
Copy link

Hi @futex It looks like most of the issues are caused by some Python 3 errors with pip. To resolve these errors, you can run the following commands:

sudo touch /usr/local/lib/python3.8/dist-packages/pyelftools-0.29.dist-info/METADATA
sudo touch /usr/local/lib/python3.8/dist-packages/pyelftools-0.29.dist-info/RECORD
sudo touch /usr/local/lib/python3.8/dist-packages/yara_python-4.3.1.dist-info/METADATA
sudo touch /usr/local/lib/python3.8/dist-packages/yara_python-4.3.1.dist-info/RECORD

There was however another error which occurred during the cloning of the Python 2 version of Volatility, it looks as if there was a connectivity issue. This may have been a temporary / momentary issue, and should be resolved if the above issues are fixed and the install is run again.

  Running command git clone -q https://github.com/volatilityfoundation/volatility.git /tmp/pip-req-build-tlvTHz
  fatal: the remote end hung up unexpectedly
  fatal: early EOF
  fatal: index-pack failed

As for Ubuntu support, unfortunately Ubuntu 22 and 24 are not yet supported, but should be in the future.

@futex
Copy link
Author

futex commented Jul 9, 2024

Thanks you, i have try your commands but i still having a crash just after the running of ssh like previously.

saltstack.zip

@digitalsleuth
Copy link

Hi @futex , it looks like the remaining issues focus around two areas:

  • The setup.cfg files for each of the packages is not up to the PEP8 standard for the naming convention of sections
  • Pylibemu is failing due to an incompatibility with the setuptools version.

Can you provide the output of the following command:

sudo python3 -m pip list

Feel free to redact anything you don't want shared, but I'm primarily looking for the versions of wheel, setuptools, and pip.

I will look into a solution for these, but it looks like for now, the quickest way may be to change your current version of setuptools. I won't know yet which version will work to support the installation, but I'm looking into it.

@futex
Copy link
Author

futex commented Jul 10, 2024

Sure, here is the output of the command. How do you guess that? I read the saltstack log and i just see some remnux packages failed but i don´t find the reason. Is it possible also to "blacklist" a package, or to install only one?
pip.txt

@olokos
Copy link

olokos commented Nov 26, 2024

image
image

remnux-v7.ova, after performing apt update and apt upgrade, also fails with `remnux update at the end, despite in general seems like it did update nearly all of the previous things.

@olokos
Copy link

olokos commented Nov 26, 2024

https://forum.level1techs.com/t/installing-remnux-as-a-proxmox-vm-build-from-scratch/215903/1

Downgrading setuptools and breaking the env for a moment, does allow to successfully work around this bug though, as discovered here:
https://forum.level1techs.com/t/installing-remnux-as-a-proxmox-vm-build-from-scratch/215903/1

Apparently it was possible to work around it with sudo python3 -m pip install setuptools==58.3.0.
But as it is now, it seems that the issue remains similar, if not the same, even with this workaround.
image

I think it could be as remnux update itself, does update systemtools on its own during the process, so even if I manually downgraded to 58.3.0, remnux update will still update it to 60+, before ssh is installed, causing the issue again, despite the previous workaround.

I agree that the saltstack.txt is gigantic, I tried | grep error but the output was irrelevant to the actual errors we are interested in, as a result, I'm not sure how I could look for errors in saltstack.txt to provide more details than I have already.

On the other hand, when I installed the older setuptools in second terminal, after remnux update installed setuptools==67.7.2, but before it installed ssh, I'm still getting the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants