I need gcc to compile a c code and unable to install gcc on wsl. I tried sudo apt-get install gcc
but it doesn't work. This is the error.
hack@DESKTOP-VMQA3JB:~$ sudo apt-get install gccReading 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: gcc : Depends: gcc-9 (>= 9.2.1-1~) but it is not going to be installedE: Unable to correct problems, you have held broken packages.
I don't know the dependencies to install. Please help me with gdb also. thankyou.