Full-upgrade to Debian testing fails due to libc6-dev : Breaks: libgcc-8-dev

45,724

Solution 1

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

Solution 2

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

Solution 3

This worked for me after trying everything else:

apt-get remove libgcc-8-dev

Share:
45,724
boolean.is.null
Author by

boolean.is.null

Updated on September 18, 2022

Comments

  • boolean.is.null
    boolean.is.null over 1 year

    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?

  • flux9998
    flux9998 almost 4 years
    sweet! I've been going through trying to update the individual packages to no avail, this did the trick though thanks!
  • MKesper
    MKesper over 3 years
    Right now this would even remove apt, so not a good idea. Sadly this isn't a planned transition (release.debian.org/transitions).
  • Macindows
    Macindows over 3 years
    worked for me. now im thinking whether gcc-10 would've also worked?
  • Amith
    Amith over 3 years
    Installing this removes a bunch of packages like dolphin evince g++ g++-8 gcc-8-base:i386 gdm3 gnome gnome-contacts gnome-core gnome-session gnome-shell gnome-shell-extensions gnome-shell-pomodoro gnome-todo Why? Even my desktop kde-plasma
  • John Smith
    John Smith over 3 years
    Definitely seems to have worked for me. Thanks!
  • Admin
    Admin about 2 years
    The answer is not the solution to this issue. According to the Debian Buster release notes you should prepare for the operating system minimal system upgrade: sudo apt upgrade --without-new-pkgs and then you can do a full upgrade: sudo apt full-upgrade
  • Admin
    Admin almost 2 years
    This didn't work for me, going from raspbian buster to raspberry pi OS bullseye.