-
Notifications
You must be signed in to change notification settings - Fork 433
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
[Error] Kali Distrobox does not allow to enter due to missing apt package in their repositories #995
Comments
Seconded. As a workaround, use kalilinux/kali-last-release. |
The workaround image fails with:
Avoiding to install graphical dependencies, and having a toggle for switching between the graphical use case and console containers, promises to ease the observed edge case of a distribution not bringing all packages within its package repositories that are expected by default from |
…gl1-mesa. Fixes 89luca89#995 Since at least Debian Buster (2019), libgl1-mesa-glx and libegl1-mesa are transitional packages for libgl1+libglx-mesa0 and libegl1 respectively. In Debian Trixie, the transitional packages have been removed. Install the actual packages directly. Signed-off-by: Eugenio Paolantonio (g7) <[email protected]>
…egl1-mesa. Fixes 89luca89#995 Since at least Debian Buster (2019), libgl1-mesa-glx and libegl1-mesa are transitional packages for libgl1+libglx-mesa0 and libegl1 respectively. In Debian Trixie, the transitional packages have been removed. Install the actual packages directly. Signed-off-by: Eugenio Paolantonio (g7) <[email protected]>
The problem appears to be that the
Unfortunately, I don't think that
Unfortunately there're no With the above change, |
You mean you replaced Line 580 in bf65e62
with - if apt-cache show "${dep}" | grep -q Package; then
+ if apt-cache policy "${dep}" | grep Candidate | grep -qv none; then and that was all that was needed to circumvent this error? |
I was looking at version 1.5.0.2 in this repository, where my change looks like this: - if apt-cache show "${dep}" > /dev/null; then
+ if apt-cache policy "${dep}" | grep Candidate | grep -qv none; then The code you quoted is from the My issue isn't on Kali, but actually on ubuntu:23.10, which is where the command line output I showed above is taken from. *) I think using
Yes... I mean that there was no error anymore and |
@almereyda I have verified that my change, on top of 1.5.0.2 fixes the issue for |
I have confirmed both d0db8d9 and #1036, through monkey patching of the The PR still makes a notable proposal, from what I can tell. |
…egl1-mesa. Fixes #995 (#1005) Since at least Debian Buster (2019), libgl1-mesa-glx and libegl1-mesa are transitional packages for libgl1+libglx-mesa0 and libegl1 respectively. In Debian Trixie, the transitional packages have been removed. Install the actual packages directly. Signed-off-by: Eugenio Paolantonio (g7) <[email protected]>
Describe the bug
When entering a Kali container, this rolling release based on Debian testing¹ may not bring all packages that are going to be installed during
distrobox-init
and fails to start.Here it is a Desktop dependency on
libgl1-mesa-glx
, but could as well be any other.To Reproduce
Expected behavior
A shell is opened in a Kali environment.
Logs
Desktop (please complete the following information):
dnf install distrobox
Additional context
The issue is also described in:
¹ https://www.reddit.com/r/linux/comments/16u73fx/dependency_issue_libgl1mesaglx/
Asides from the fact that this could have happened to any package in the dependencies list:
Maybe this occurrence is an invitation to consider CLI-only distroboxes, which explicitly do not bring the graphic/desktop related dependencies?
distrobox create --console
, for example, could use a more minimaldistrobox-init
with less package dependencies on graphics support (Mesa, Vulkan, NVidia), which also decreases first-run boot up time.The text was updated successfully, but these errors were encountered: