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?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Installing gcc-8-base (sudo apt install gcc-8-base) appeared to do the trick for me and fix the problem for me.
Method 2
If it still does not work try:
apt-get install gcc-9-base
Method 3
This worked for me after trying everything else:
apt-get remove libgcc-8-dev
Method 4
@Laogeodritt mentioned this in one of the comments but I decided to post an answer because it is easier to find.
The only procedure that worked for me:
echo "deb http://download.opensuse.org/repositories/home:/rpavlik:/bullseye-fix/Debian_Testing/ ./" | sudo tee /etc/apt/sources.list.d/bullseye-upgrade-fix.list curl http://download.opensuse.org/repositories/home:/rpavlik:/bullseye-fix/Debian_Testing/Release.key | sudo tee /etc/apt/trusted.gpg.d/bullseye-upgrade-fix.asc sudo apt update
This adds repositories with transitional packages available named libgcc1,
etc. that depend on their renamed equivalents in bullseye.
After this you can run dist-upgrade or full-upgrade.
Don’t forget to remove the repositories after you reboot:
sudo rm /etc/apt/sources.list.d/bullseye-upgrade-fix.list sudo rm /etc/apt/trusted.gpg.d/bullseye-upgrade-fix.asc`
Source:
[1]: https://salsa.debian.org/rpavlik/gcc-10-compat
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0