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

deps.sh failing on Kali 2021.1 #537

Closed
gregsurber opened this issue Apr 21, 2021 · 7 comments
Closed

deps.sh failing on Kali 2021.1 #537

gregsurber opened this issue Apr 21, 2021 · 7 comments

Comments

@gregsurber
Copy link

Trying to install on fresh Kali virtual image, but it fails with E: Unable to locate package qt5base-dev.
I tried removing that from the install script, hoping it would still build without it, maybe just without the pretty GUI. The install then failed on several more dependencies, including:
cramfsprogs
libqt4-opengl
python3-pyqt4
python3-pyqt4.qtopengl
and maybe a few others.

All appear to say either "no installation candidate" or "unable to locate package"

@decidedlygray
Copy link

decidedlygray commented Apr 21, 2021

I submitted a PR for this here - #534. qt5base-dev should be qtbase5-dev

Something else may be going wrong though because cramfsprogs and libqt4-opengl should not be installed when the Kali distro is detected (see here)

@decidedlygray
Copy link

decidedlygray commented Apr 21, 2021

Also, I recently went through the pain of installing on Kali. Another thing that you're going to find that is broken is the sasquatch dependency, because it doesn't support GCC 10 defaults.

Here is what I did as a workaround:

  1. In deps.sh comment out this line: https://github.com/ReFirmLabs/binwalk/blob/master/deps.sh#L87

  2. Then manually build and install sasquatch, using the CFLAGS workaround for the GCC 10 issue [source for workaround - open issue in sasquatch project]:

git clone --quiet --depth 1 --branch "master" https://github.com/devttys0/sasquatch
cd sasquatch
CFLAGS=-fcommon ./build.sh
sudo rm -rf sasquatch
  1. And then run deps.sh

@zi0Black
Copy link

(cd sasquatch && ./build.sh) -> (cd sasquatch && CFLAGS=-fcommon ./build.sh) works for me :)

@decidedlygray
Copy link

@zi0Black thanks for confirming that! I tried that first, so I could just have a kind of clean build script that worked (I was deploying multiple machines) but for whatever reason the CFLAGS environment variable didn’t seem to be getting picked up when the tested the script. It ended up failing with the same error. I must have had something wrong though if it works. Admittedly, I was pretty deep down a StackOverflow hole and uninstalling/reinstalling stuff at that point.

@flamecopper
Copy link

After following all the steps above I am still getting:
WARNING: Extractor.execute failed to run external extractor 'unsquashfs -d 'squashfs-root' '%e'': 'module' object has no attribute 'DEVNULL', 'unsquashfs -d 'squashfs-root' '%e'' might not be installed correctly

WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -le -d 'squashfs-root' '%e'': 'module' object has no attribute 'DEVNULL', 'sasquatch -p 1 -le -d 'squashfs-root' '%e'' might not be installed correctly

WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -be -d 'squashfs-root' '%e'': 'module' object has no attribute 'DEVNULL', 'sasquatch -p 1 -be -d 'squashfs-root' '%e'' might not be installed correctly

WARNING: Extractor.execute failed to run external extractor 'mkdir 'squashfs-root' && mount -t squashfs '%e' 'squashfs-root'': 'module' object has no attribute 'DEVNULL', 'mkdir 'squashfs-root' && mount -t squashfs '%e' 'squashfs-root'' might not be installed correctly
0 0x0 Squashfs filesystem, big endian, lzma signature, version 3.1, size: 4433988 bytes, 1247 inodes, blocksize: 65536 bytes, created: 2011-06-23 10:46:19

@Redbeardjunior
Copy link

qt5base-dev should be qtbase5-dev

still nog fixed hahaha

@anonjym
Copy link

anonjym commented Sep 13, 2023

You must rename 'Kali' to whatever you have called your Kali distro. In my case I use a custom name in WSL for Kali and once I renamed it in .deps.sh it was fine: https://github.com/ReFirmLabs/binwalk/blob/master/deps.sh#L44

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

7 participants