Error of "unmet dependencies" in Ubuntu22.04 Jammy
[TOC]
First get aptitude: Its a text-based front-end for the APT package management system.(For more info, google it)
sudo apt install aptitude
then install build-essentials with aptitude
sudo aptitude install build-essential
the first answer will be to install build-essential with other required packages, but since the problem is that we cant install so that wont help. So, just reply with 'n'(no) and then it will ask to downgrade some packages(In my case), just type 'y' and your package should be installed(atleast mine did).