Unmet dependencies

PingTimeout

New Member
Joined
Jan 2, 2023
Messages
10
Reaction score
8
Credits
111
Hi!

Stumbled on a problem. Update made with no issues, but then I sudo upgrade and error party begins. Could not find a solution, just going circles ending up with no yield with options suggested within google.
What to do? I literaly cannot install anything. Help! :)
term.png
 
Last edited:


What is your sources.list? Perhaps run:
Code:
cat /etc/apt/sources.list
and copy it here in code tags. There may be a clue in there.
 
Maybe also just removing 'libgtk-3-dev' (I think that's right, OP posted an image instead of text)?

I'm not sure why it'd be installed?
 
meisme㉿TrustNo1)-[~]
└─$ cat /etc/apt/sources.list
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb https://http.kali.org/kali kali-rolling main contrib non-free

# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free


-----------
removing libgtk-3-dev :

meisme㉿TrustNo1)-[/]
└─$ sudo apt-get remove libgtk-3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 22.3.1-1) but 22.2.4-1 is to be installed
Depends: libglapi-mesa (= 22.3.1-1) but 22.2.4-1 is to be installed
libgtksourceview-4-dev : Depends: libgtk-3-dev (>= 3.19.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

┌──(meisme㉿TrustNo1)-[/]
└─$ sudo apt-get remove --auto-remove libgtk-3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 22.3.1-1) but 22.2.4-1 is to be installed
Depends: libglapi-mesa (= 22.3.1-1) but 22.2.4-1 is to be installed
libgtksourceview-4-dev : Depends: libgtk-3-dev (>= 3.19.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

┌──(meisme㉿TrustNo1)-[/]
└─$ sudo apt-get purge libgtk-3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 22.3.1-1) but 22.2.4-1 is to be installed
Depends: libglapi-mesa (= 22.3.1-1) but 22.2.4-1 is to be installed
libgtksourceview-4-dev : Depends: libgtk-3-dev (>= 3.19.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

┌──(meisme㉿TrustNo1)-[/]
└─$ sudo apt-get purge --auto-remove libgtk-3-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 22.3.1-1) but 22.2.4-1 is to be installed
Depends: libglapi-mesa (= 22.3.1-1) but 22.2.4-1 is to be installed
libgtksourceview-4-dev : Depends: libgtk-3-dev (>= 3.19.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

:(
 
I didn't realize you were using Kail. I somehow missed that. (It's even in the correct sub-forum, thanks!)

I'm not a Kali guru. Few of us here are. This could easily be something Kali-specific.
 
The sources.list looks fine. That's confirmable from a visit to the link provided in the file.

What comes to mind is to use the "aptitude" program for installing in place of "apt".
"aptitude" has some corrective functions in it that aren't in "apt", one of which is the safe install option.
If you don't have it installed, it should install without dependency problems and then there's a small learning curve associated with its ncurses functioning.
 
What are you trying to install?
And, are you new to Linux?

There are 4 or more unmet dependencies that are dependent upon other pkg's and would have to be installed in the proper order. Until those unmet dependencies are satisfied, it would not be wise to install the package/program first.

The other thing is Kali Linux is based on Debian Testing and if you are new to Linux; Kali Linux is not a recommended distro to start off with. It would be better to run Ubuntu, Linux Mint or Debian Stable for a few years.

--**Once you learn how to run a package management system things will be much easier for you to run.**--

See this page to update and upgrade your Kali Linux install:

 
Try modifying this line

Code:
deb https://http.kali.org/kali kali-rolling main contrib non-free

to

Code:
deb http://http.kali.org/kali kali-rolling main contrib non-free

Then repeat the upgrade command and let us know what happens.

Chris Turner
wizardfromoz
 
Oh wizardfromoz ... that was an eagle eye perception of yours to have the "https" in post #4 change to "http"! I missed it and was therefore misleading in the first sentence of my post #6. I'm keen to know if it makes a difference.
 
Try modifying this line

Code:
deb https://http.kali.org/kali kali-rolling main contrib non-free

to

Code:
deb http://http.kali.org/kali kali-rolling main contrib non-free

Then repeat the upgrade command and let us know what happens.

Chris Turner
wizardfromoz
(meisme㉿TrustNo1)-[/etc/apt]
└─$ cat /etc/apt/sources.list
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb http://http.kali.org/kali kali-rolling main contrib non-free

# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free

┌──(meisme㉿TrustNo1)-[/etc/apt]
└─$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 22.3.1-1) but 22.2.4-1 is installed
Depends: libglapi-mesa (= 22.3.1-1) but 22.2.4-1 is installed
libgtk-3-dev : Depends: libegl1-mesa-dev but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


:(
 
What are you trying to install?
And, are you new to Linux?

There are 4 or more unmet dependencies that are dependent upon other pkg's and would have to be installed in the proper order. Until those unmet dependencies are satisfied, it would not be wise to install the package/program first.

The other thing is Kali Linux is based on Debian Testing and if you are new to Linux; Kali Linux is not a recommended distro to start off with. It would be better to run Ubuntu, Linux Mint or Debian Stable for a few years.

--**Once you learn how to run a package management system things will be much easier for you to run.**--

See this page to update and upgrade your Kali Linux install:

Well, I wanted to install cool-retro-term, then something else not very important I don't recall now, but either way - when I'm gonna need somehing important it would be good I'm able to install it and now I can't...

Yes, I'm new lo linux. Not absolutely new - have Fusion VM with Kali on my mac laptop, but used it only to...play around a bit?
Long story short:
I'm studying cybersecurity and in near future we are going to go pentest and ethical hacking modules. We do have ready environments in SaaS for studying and labs, but they are limited and are is not a full OS. My mac Air is already a lag-machine so I had to buy a new laptop anyway, and since I hate windows and macbook with insides I need would cost me a kidney - I chose laptop with Kali linux preinstalled.
:)
 
Preinstalled may be the issue, it may not have been installed correctly.

I am out of ideas for now, good luck.

Wizard
 
The sources.list looks fine. That's confirmable from a visit to the link provided in the file.

What comes to mind is to use the "aptitude" program for installing in place of "apt".
"aptitude" has some corrective functions in it that aren't in "apt", one of which is the safe install option.
If you don't have it installed, it should install without dependency problems and then there's a small learning curve associated with its ncurses functioning.
unfortunately, dependencies does not allow installing me a thing
 
unfortunately, dependencies does not allow installing me a thing
That's unfortunate. It sounds as if the installation is broken, seemingly broken enough for the standard tools, being apt and apt-get, to be unable to rescue itself. The simplest and least time-consuming approach would appear to be a re-installation. Usually in this situation I would back up what I needed to, say a bunch of files if they were important, and re-install. After re-installing in this case, I would recommend upgrading through the aptitude program using the safe option. That works. If you choose to just go with apt and apt-get, then you can consider using the -s option in those commands which will simulate what the command will do before it does anything so you can see what to expect when you remove that option and run the command for real, and avoid whatever it was that disrupted the system in the first place.
 
Preinstalled may be the issue, it may not have been installed correctly.

I am out of ideas for now, good luck.

Wizard
When I started installing stuff, like discord, zoom, htop, signal etc, everything was fine and apt-get’ed flawlessly - i’m using those apps mentioned - but somewhere somehow I did something wrong and it just broke down. Since then I’m unable anything that’s installed by aptget.
Thanks anyway
 
That's unfortunate. It sounds as if the installation is broken, seemingly broken enough for the standard tools, being apt and apt-get, to be unable to rescue itself. The simplest and least time-consuming approach would appear to be a re-installation. Usually in this situation I would back up what I needed to, say a bunch of files if they were important, and re-install. After re-installing in this case, I would recommend upgrading through the aptitude program using the safe option. That works. If you choose to just go with apt and apt-get, then you can consider using the -s option in those commands which will simulate what the command will do before it does anything so you can see what to expect when you remove that option and run the command for real, and avoid whatever it was that disrupted the system in the first place.
Reinstalling was the first thought came into my mind when this carousel begun, but I really do not wanna do this because as much as I understand the laptop does not recon touchpad and keyboard and requires corded mouse and keyboard to operate until drivers will be installed. I have already cordless ones and buying more junk I’m not going to use is a bad perspective, so I guess I just keep googlin’ and foruming internet wide for now
Thanks anyway
 
PingTimeout wrote:
Reinstalling was the first thought came into my mind when this carousel begun, but I really do not wanna do this
Okay. I think then if you choose to try and save the installation, you may need to use some of the forcing that dpkg has as an option. I guess you may need to download some packages in .deb format and use dpkg to forcibly install them. Perhaps have a look here: https://www.makeuseof.com/how-to-find-and-fix-broken-packages-on-linux/.

There's some keen attention needed in this approach to satisfying dependencies. You can see what the dependencies are with the following command:
Code:
[flip@flop ~]$ apt-cache showpkg libegl-mesa0
Package: libegl-mesa0
Versions:
22.2.4-1 (/var/lib/apt/lists/ftp.au.debian.org_debian_dists_bookworm_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/ftp.au.debian.org_debian_dists_bookworm_main_binary-amd64_Packages
                  MD5: b66a0a444abc380f2430455fec07e449
 Description Language: en
                 File: /var/lib/apt/lists/ftp.au.debian.org_debian_dists_bookworm_main_i18n_Translation-en
                  MD5: b66a0a444abc380f2430455fec07e449


Reverse Depends:
  libegl1,libegl-mesa0
Dependencies:
22.2.4-1 - libc6 (2 2.34) libdrm2 (2 2.4.109) libexpat1 (2 2.0.1) libgbm1 (5 22.2.4-1) libgcc-s1 (2 3.4) libglapi-mesa (5 22.2.4-1) libwayland-client0 (2 1.20.0) libwayland-server0 (2 1.15.0) libx11-xcb1 (2 2:1.8.1) libxcb-dri2-0 (2 1.8) libxcb-dri3-0 (2 1.13) libxcb-present0 (0 (null)) libxcb-sync1 (0 (null)) libxcb-xfixes0 (0 (null)) libxcb1 (2 1.9.2) libxshmfence1 (0 (null))
Provides:
22.2.4-1 - libegl-vendor (= )
Reverse Provides:

The output shows the dependencies, and also the reverse dependencies which are the packages that depend on the package in the command, in this example, libegl-mesa0. In theory, then one can see in this output what needs what, so then you can retrieve what's needed and install it. That's the theory, but you could end up on another carousel :)
 
The initial errors about the .zst files means you may be missing the zst package which has all of the tools to deal with .zst files.

Zst is a lossless zip algorithm.
But from looking at the later errors, you may have borked your install.

Perhaps try installing zst via apt.
Bash:
sudo apt install zst
If that installs properly, without errors, try doing an apt update and upgrade again.

If it mentions broken packages, try the —fix-broken again!

Or, after installing zst, perhaps try re-installing libgtk-3-dev - that should hopefully get you back to where you were before and may automagically resolve the dependency issues you were having, because apt will be able to decompress the .zst files.

Failing that, a reinstall is probably your only option.

Kali isn’t a typical, daily use distro. It’s relatively easy to break. Especially if you don’t know what you’re doing.
I usually run it in a VM, or from a bootable USB device and keep it as vanilla as possible to avoid problems like this.

You should probably install another Linux distro for typical daily use. (Debian, Mint, Ubuntu, Fedora, Suse, Arch etc.) then either run Kali in a VM, or on a bootable USB. Or install it alongside your main Linux distro and dual boot.
Regardless of the method you choose, you’ll be able to boot into Kali to use it when you need to. Just don’t run Kali as your daily driver.
 
Last edited:
+1 JasKinasis
I was going to suggest installing p7zip
 

Members online


Latest posts

Top