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

Unmet dependencies: libc6-dev : Breaks: libgcc-9-dev during install #1937

Closed
DeezyE opened this issue Jun 4, 2020 · 2 comments
Closed

Unmet dependencies: libc6-dev : Breaks: libgcc-9-dev during install #1937

DeezyE opened this issue Jun 4, 2020 · 2 comments
Assignees
Labels
dependencies Pull requests that update a dependency file Install Suggestion

Comments

@DeezyE
Copy link
Contributor

DeezyE commented Jun 4, 2020

Environment

What version/revision of BeEF are you using?
0.5.0.0
On what version of Ruby?
2.7
On what browser?
n/a
On what operating system?
Kali 2020.1

Configuration

Are you using a non-default configuration?
no
Have you enabled or disabled any BeEF extensions?
no

Summary

Please provide a summary of the issue.
During install I get an error:

The following packages have unmet dependencies:
 build-essential : Depends: gcc (>= 4:9.2) but it is not going to be installed
                   Depends: g++ (>= 4:9.2) but it is not going to be installed
 libc6-dev : Breaks: libgcc-9-dev (< 9.3.0-5~) but 9.2.1-22 is to be installed
E: Unable to correct problems, you have held broken packages.

looking around it seems not an issue unique to beef:
https://superuser.com/questions/1555536/cannot-solve-the-the-following-packages-have-unmet-dependencies-issue

running the suggested:

apt-get install gcc-9-base libgcc-9-dev libc6-dev

resolves the issue so it would make sense to add this to the install script.
Unsure whether this will impact older versions of kali if it's included by default...

Expected Behaviour

What was the expected result?
install script runs correctly

Actual Behaviour

What was the actual result?

The following packages have unmet dependencies:
 build-essential : Depends: gcc (>= 4:9.2) but it is not going to be installed
                   Depends: g++ (>= 4:9.2) but it is not going to be installed
 libc6-dev : Breaks: libgcc-9-dev (< 9.3.0-5~) but 9.2.1-22 is to be installed
E: Unable to correct problems, you have held broken packages.

Steps to Reproduce

Please provide steps to reproduce this issue.
New install of Kali 2020.1
uninstall ruby
run install script

Additional Information

Please provide any additional information which may be useful in resolving this issue, such as debugging output and relevant screen shots. Debug output can be enabled by specifying debug: true in the config.yaml configuration file.

@DeezyE DeezyE added Install Suggestion dependencies Pull requests that update a dependency file labels Jun 4, 2020
@jackdwalker
Copy link
Contributor

jackdwalker commented Jul 7, 2020

Unsure whether this will impact older versions of kali if it's included by default...

This shouldn't be a problem, it will just ignore them if they are already installed.

These dependencies will need to be added to the Dockerfile as well as the install script. Should be a straight-forward fix. Will try to get this done today.

My only concern is adding to a growing list of dependencies. I think at some point they should be reviewed and cleaned up where possible.

@jackdwalker jackdwalker self-assigned this Jul 7, 2020
@jackdwalker
Copy link
Contributor

@DeezyE - these dependencies are already in the install script. I see you added them in #1940, so I'll close this off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Install Suggestion
Projects
None yet
Development

No branches or pull requests

2 participants