Against all odds, I think I managed to unfuck my WSL1 Ubuntu install after the failed upgrade. I fixed the scary Python errors when running apt
by pointing the Python symlinks back to the expected version instead of the new one (learned a new apt
command for this one: update-alternatives
) and copying a more specifically-named library file to apt_pkg.so
. The other apt
errors were taken care of by deleting a hook that was trying to use snapd
(something WSL1 doesn't support), doing the ol' apt --fix-broken install
, and then creating a mysterious file in /etc/apt/preferences.d
so I could use apt dist-upgrade
to downgrade all my packages back to the distro repository versions. StackOverflow, you are a merciful god.
I'm not super confident that it's not going to shit the bed at some point due to an introduced weakness or dependency issues this might've introduced, which is something I can only discover through future use, but at least it's not throwing errors constantly. This proves just how much I never want to nor should be allowed to be a sysadmin, jfc. Also, goddamn, was this ordeal not even remotely worth it for stubbornly trying to avoid using Docker to compile a piece of software I was mildly interested in that doesn't distribute precompiled binaries.
Guilty as charged