Ubuntu Dependency
Unmet Dependency on Ubuntu 24.04
This guide provides a solution for a common dependency error encountered when installing the DevAssure application on Ubuntu 24.04 and above, specifically related to libwebkit2gtk-4.0-37
.
When attempting to install DevAssure using sudo apt install ./DevAssure.deb
on Ubuntu 24.04 and above, the installation fails with the following error:
The following packages have unmet dependencies:
dev-assure : Depends: libwebkit2gtk-4.0-37 but it is not installable
E: Unable to correct problems, you have held broken packages.
This happens because Ubuntu 24.04 does not include libwebkit2gtk-4.0-37 in its default repositories, a library that is available in Ubuntu 22.04 (Jammy Jellyfish).
Solution:
-
Adding the Jammy Repository for libwebkit2gtk-4.0-37
Ubuntu 24.04 (Noble Numbat) does not include libwebkit2gtk-4.0-37 in its standard repositories, as this version of the library is typically found in older releases like Ubuntu 22.04 (Jammy Jellyfish).
To resolve this, we will temporarily add the Jammy repository to fetch the required dependency.
-
Open the Sources List
Open the sources.list file with a text editor to add the external repository.
sudo nano /etc/apt/sources.list
-
Add the Jammy Repository Line
Add the following line at the end of the /etc/apt/sources.list file. This line points to the Jammy repository for main packages.
deb http://archive.ubuntu.com/ubuntu jammy mainSave the file and exit the editor (Ctrl+O, Enter, Ctrl+X for Nano).
-
Update Package Lists
After modifying the sources.list, update your system's package lists to recognize the newly added repository.
sudo apt update -
Install the Missing Dependency
Install libwebkit2gtk-4.0-37 from the newly added Jammy repository:
sudo apt install libwebkit2gtk-4.0-37 -
Install DevAssure (If Uninstalled) or Reload the failed installation
If DevAssure was uninstalled during previous troubleshooting attempts, you can now proceed to reinstall it.
sudo apt install ./DevAssure.deb