Upgrade from 22.04 to 24.04 failed, network error

smeg - Yukkie poo

I will stew over the PPAs removal for a bit,
In the meantime - returning to Brave:
Seeing as how apt has no effect - and it is not a snap install - let’s drop down one layer in package management to dpkg. Simply because I am reluctant to manually remove files and risk breaking the system.
Run:

dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge ; sudo apt --purge autoremove

Where in “rc” means (r)emoved but (c)onfig files remain. I do expect the command to remove a lot of cruft - which will be a good thing going forward - and autoremove will remove depreciated files; including old kernel versions.

-Meanwhile back at the ranch - homework time-