Error while trying to install gcc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gcc : Depends: cpp (= 4:9.2.1-3.1) but it is not going to be installed
Depends: gcc-9 (>= 9.2.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Error while trying to install g++:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
g++ : Depends: cpp (= 4:9.2.1-3.1) but it is not going to be installed
Depends: gcc (= 4:9.2.1-3.1) but it is not going to be installed
Depends: g++-9 (>= 9.2.1-1~) but it is not going to be installed
Depends: gcc-9 (>= 9.2.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Hello
Type sudo apt-mark unhold libc6 and try again.
Regards
Fixed the issue by install gcc-9-base
The new version 20.6.2 includes this fix. At least until it get fixed in Debian bullseye
Most helpful comment
Fixed the issue by install gcc-9-base