When trying to do apt install build-essential I run into an error. I don’t want to break packages so I’m asking here does anyone know how I can resolve this to install gcc?
Reading package lists... Done
Building dependency tree... Done
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:
cpp : Conflicts: gcc (< 4:13.2.0-3) but 4:10.2.1-1 is to be installed
g++ : Depends: cpp (= 4:10.2.1-1) but 4:13.2.0-7 is to be installed
gcc : Depends: cpp (= 4:10.2.1-1) but 4:13.2.0-7 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Changing your apt sources to Trixie will make more things work but other things will still break. You have https://mntre.com/reform-debian-repo configured as your source for the MNT related packages but those are built against unstable so there will still be situations (mostly when it involves libc6-dev, linux-libc-dev and friends) where you will run into installability problems.
You can keep using testing instead of unstable and it will probably work most of the time (definitely better than bullseye) but just keep this in mind in case you run into more problems in the future.