I am trying to install gcc to run a C/C++ program in Visual Studio Code, but I am not able to install gcc.
I tried
sudo apt-get update
sudo apt install build-essential
And it shows an error Unable to correct problems, you have held broken packages
How can I resolve this error and install gcc?
sudo apt update
AND complete input/output of any apt action showing the error. – user535733 Mar 16 '22 at 16:29sudo apt update
so that we can identify where the issue went wrong and provide an accurate answer. – Logan Mar 16 '22 at 16:44