The
Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation: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 installedE: Unable to correct problems, you have held broken packages.
If dig deeper
❯ sudo apt-get install -f libgcc-9-devReading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: libgcc-9-dev : Depends: libitm1 (>= 9.3.0-10ubuntu2) but it is not going to be installed Depends: libatomic1 (>= 9.3.0-10ubuntu2) but it is not going to be installed Depends: liblsan0 (>= 9.3.0-10ubuntu2) but it is not going to be installed Depends: libtsan0 (>= 9.3.0-10ubuntu2) but it is not going to be installed Depends: libubsan1 (>= 9.3.0-10ubuntu2) but it is not going to be installed Depends: libquadmath0 (>= 9.3.0-10ubuntu2) but it is not going to be installedE: Unable to correct problems, you have held broken packages.❯ sudo apt-get install -f libasan5 libatomic1 libgcc-s1Reading package lists... DoneBuilding dependency treeReading state information... Donelibgcc-s1 is already the newest version (10.1.0-2ubuntu1~18.04).libgcc-s1 set to manually installed.Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: libatomic1 : Depends: gcc-10-base (= 10-20200411-0ubuntu1) but 10.1.0-2ubuntu1~18.04 is to be installedE: Unable to correct problems, you have held broken packages.
How to solve this dependency chain problem? force it to use the latest packages or downgrade to the recommended versions?