10

I've just switched to bullseye (see sources below)

deb http://deb.debian.org/debian/ testing main contrib non-free
deb-src http://deb.debian.org/debian/ testing main contrib non-free

deb http://deb.debian.org/debian/ testing-updates main contrib non-free
deb-src http://deb.debian.org/debian/ testing-updates main contrib non-free

deb http://deb.debian.org/debian-security testing-security main
deb-src http://deb.debian.org/debian-security testing-security main

deb http://security.debian.org testing-security main contrib non-free
deb-src http://security.debian.org testing-security main contrib non-free

The update and upgrade went fine, but full-upgrade fails due to the following error message:

The following packages have unmet dependencies:
 libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

From what I see on the packages.debian.org, Debian testing should have libgcc-8-dev: 8.4.0-4, so I don't see why an older version is to be installed.

How can I fix this, to finalize the bullseye full-upgrade?

16

Installing gcc-8-base (sudo apt install gcc-8-base) appeared to do the trick for me and fix the problem for me.

| improve this answer | |
  • 1
    sweet! I've been going through trying to update the individual packages to no avail, this did the trick though thanks! – flux9998 Jun 17 at 22:35
  • Right now this would even remove apt, so not a good idea. Sadly this isn't a planned transition (release.debian.org/transitions). – MKesper Aug 25 at 6:47
3

If it still does not work try: apt-get install gcc-9-base

| improve this answer | |
  • worked for me. now im thinking whether gcc-10 would've also worked? – Macindows Sep 9 at 4:48
1

Clearly there are some broken dependencies.

Got the same issue.

# apt-get dist-upgrade
The following packages have unmet dependencies:
  libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

So, I ran #apt-get install libgcc-8-dev, hoping that it will upgrade the problematic package or get more information. The output was:

The following packages have unmet dependencies:
  gcc-8-base : Breaks: gcc-8-base:i386 (!= 8.4.0-4) but 8.3.0-6 is to be installed
  gcc-8-base:i386 : Breaks: gcc-8-base (!= 8.3.0-6) but 8.4.0-4 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

That's how I found that the gcc-8-base package is problematic. Next step? #apt-get install gcc-8-base gcc-8-base:i386. Result: gcc-8-base can be upgraded, but the apt want me to remove about 300 packages (which I don't want to remove, many of them are KDE-related) including gcc-8-base:i386, no alternative. I can work without gcc-8-base:i386, so removed it, but it didn't help.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.