bullseye migration: improve autofix procedure for the libc6 hell

This commit is contained in:
Alexandre Aubin 2022-09-03 12:41:09 +02:00
parent 7601492081
commit 02b3a138b6

View file

@ -219,7 +219,7 @@ class MyMigration(Migration):
os.system("perl -i~ -0777 -pe 's/(Package: .*-ynh-deps\\n(.+:.+\\n)+Depends:.*)(build-essential, ?)(.*)/$1$4/g' /var/lib/dpkg/status")
self.apt_install("build-essential-") # Note the '-' suffix to mean that we actually want to remove the packages
os.system("LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none apt autoremove --assume-yes")
self.apt_install("gcc-8- libgcc-8-dev-") # Note the '-' suffix to mean that we actually want to remove the packages
self.apt_install("gcc-8- libgcc-8-dev- equivs") # Note the '-' suffix to mean that we actually want to remove the packages .. we also explicitly add 'equivs' to the list because sometimes apt is dumb and will derp about it
#
# Main upgrade