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

deb packages are missing dependencies on Kali Linux #1269

Open
Shivanshu10 opened this issue Feb 14, 2021 · 4 comments
Open

deb packages are missing dependencies on Kali Linux #1269

Shivanshu10 opened this issue Feb 14, 2021 · 4 comments

Comments

@Shivanshu10
Copy link

on installing BAP deb file as per instruction provided in README, i got these issues:

$ sudo dpkg -i {bap,libbap,libbap-dev}_2.2.0.deb
[sudo] password for shivanshu: 
Selecting previously unselected package bap.
dpkg: warning: files list file for package 'kali-menu' missing; assuming package has no files currently installed
(Reading database ... 408378 files and directories currently installed.)
Preparing to unpack bap_2.2.0.deb ...
Unpacking bap (2.2.0) ...
Selecting previously unselected package libbap.
Preparing to unpack libbap_2.2.0.deb ...
Unpacking libbap (2.2.0) ...
Selecting previously unselected package libbap-dev.
Preparing to unpack libbap-dev_2.2.0.deb ...
Unpacking libbap-dev (2.2.0) ...
Setting up bap (2.2.0) ...
dpkg: dependency problems prevent configuration of libbap:
 libbap depends on libffi6; however:
  Package libffi6 is not installed.

dpkg: error processing package libbap (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libbap-dev:
 libbap-dev depends on libbap; however:
  Package libbap is not configured yet.

dpkg: error processing package libbap-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libbap
 libbap-dev

so, i thaught, i should try installing libff6

$ sudo apt-install libff6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libffi6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libffi6' has no installation candidate

on performing apt search

$ sudo apt search libff
Sorting... Done
Full Text Search... Done
libffi-dev/now 3.3-5 amd64 [installed,local]
  Foreign Function Interface library (development files)

libffi7/now 3.3-5 amd64 [installed,local]
  Foreign Function Interface library runtime

so there is no liff6 available, so i tried using libffi7

$ sudo apt-get install libffi7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libffi7 is already the newest version (3.3-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

then rerun installation

$ sudo dpkg -i {bap,libbap,libbap-dev}_2.2.0.deb
dpkg: warning: files list file for package 'kali-menu' missing; assuming package has no files currently installed
(Reading database ... 408496 files and directories currently installed.)
Preparing to unpack bap_2.2.0.deb ...
Unpacking bap (2.2.0) over (2.2.0) ...
Selecting previously unselected package libbap.
Preparing to unpack libbap_2.2.0.deb ...
Unpacking libbap (2.2.0) ...
Selecting previously unselected package libbap-dev.
Preparing to unpack libbap-dev_2.2.0.deb ...
Unpacking libbap-dev (2.2.0) ...
Setting up bap (2.2.0) ...
dpkg: dependency problems prevent configuration of libbap:
 libbap depends on libffi6; however:
  Package libffi6 is not installed.

dpkg: error processing package libbap (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libbap-dev:
 libbap-dev depends on libbap; however:
  Package libbap is not configured yet.

dpkg: error processing package libbap-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libbap
 libbap-dev

but it again asked me libffi6 which is no longer supported on kali sources

@ivg ivg changed the title Installation failed deb packages are missing dependencies on Kali Linux Feb 15, 2021
@ivg
Copy link
Member

ivg commented Feb 15, 2021

Thanks for the feedback, it is good to know that libffi6 is gradually removed from the modern distributions. We will soon update our packager to use a newer distribution, but otherwise there is little that we can do as we risk breaking the package on the older distributions. So far, I can suggest you to find a backport of libffi7 for Kali linux, or use docker/VMs with pre-built bap (e.g., docker pull binaryanalysisplatform/bap:latest), see also the docker and vagrant folders in our main repository. And, of course, you may just intall opam and get bap from it (the recommended way).

Finally, you can take a look at the .github/workflows/realese.yml action and use it to build a deb packages for the desired distribution. If do that, please consider making a PR to BAP to make it available to other users.

Don't hesitate to ask for support in case if you got stuck!

@Shivanshu10
Copy link
Author

ok

@ivg
Copy link
Member

ivg commented Nov 11, 2021

Oops, referenced a wrong issue, reopening.

@ivg ivg reopened this Nov 11, 2021
@torabi12
Copy link

torabi12 commented Sep 24, 2022

Hello All,

I wanted to install with the same way on Ubuntu 22.04.1 and I got the same errors like above:
kép

If it is possible please fix it. I do not want to use it within docker container.

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