So to summarize this is where we’re at regarding the annoying libc6-dev : Breaks: libgcc-8-dev
issue.
Edit: THE FOLLOWING INSTRUCTIONS ARE OBSOLETE ! THE MIGRATION TO BULLSEYE NOW INCLUDES AN AUTOMATIC PATCH THAT SHOULD SOLVE THIS. IF IT DOES NOT, PLEASE SHARE THE FULL LOG OF THE MIGRATION.
The following procedure may allow to fix the situation, but may still need some polishing:
- Run this mystic hack to remove
build-essential
from ynh apps dependencies:
sudo cp /var/lib/dpkg/status /root/dpkg_status.bkp
sudo perl -i~ -0777 -pe 's/(Package: .*-ynh-deps\n(.+:.+\n)+Depends:.*)(build-essential, ?)(.*)/$1$4/g' /var/lib/dpkg/status
- Cleanup old packages
sudo apt remove build-essential
sudo apt autoremove
# The autoremove may uninstall g++, g++-8, libstdc++-8-dev, php-mysql, php-tidy, php7.3-tidy (and maybe a couple other things depending on your system history)
sudo apt remove gcc-8 libgcc-8-dev
# This may upgrade/install a few packages such as binutils, cpp, gcc and related libs
(@virse had a bunch of other issues with libssl, python3.7-venv and some perl lib, which is not totally clear what it’s coming from and made things a bit more complex, but sounds unrelated to that specific issue so I’m not expecting other people to encounter those)
-
Retry the migration
-
???
-
Profit !
(I’m flagging this as “solution” for now, but maybe will polish it later with more feedback)