I want to install g++ in my Ubuntu 20.04 by typing in the terminal sudo apt-get install g++
but it tells me this:
Some packages cannot be installed.
This can mean that an impossible situation was requested or,
if you are using a development distribution, which some packages
required have not yet been created or have been removed from Incoming.
The following information can help resolve the situation:
The following packages have unmet dependencies:
g++: It depends: g++-9 (> = 9.3.0-3 ~) but it is not going to be installed
E: Unable to fix problems, there are bad packages blocked".
What can I do to fix these issues ?
sudo apt-get update
and then add output ofapt-cache policy g++ g++-9
to the question by editing it. – N0rbert May 30 '21 at 18:59sudo apt-get install aptitude
and then using aptitude instead of apt – HelpNeederStudent Jun 01 '21 at 07:11