0

I'm trying to install gcc, but I keep getting this message:

~$ sudo apt install gcc make gdb valgrind git

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: gcc-9 (>= 9.3.0-3~) but it is not going to be installed Recommends: libc6-dev but it is not going to be installed or libc-dev valgrind : Depends: libc6-dbg but it is not going to be installed E: Unable to correct problems, you have held broken packages.

What should I do?

1 Answers1

0

You can try

sudo apt -f install

and rerun your command for more info visit this site