I can't open the terminal, and I guess is an apt problem after installing python 3.7, this is the error that I get with an sudo apt update
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code
Anyone has an idea about what could it be? I already tried with purge libappstream3 but it didn't work out... I really want to avoid reinstalling and losing my data. If anyone could give me a hand with this I'd appreciate, thanks!
PS: I'm on ubuntu 20.04 LTS, sorry I forgot to specify.
python
(the version that came pre-installed) will no longer function, which includes some GUI terminals,apt
& front-end package tools. Change the default python back to what it was, and your system will be good again. (as we don't know your OS & release, we don't even know what defaults your system should have; the 3.7 doesn't help, my own system defaults to 3.9.4 for example..) – guiverc Apr 22 '21 at 02:20Boot from a live DVD or USB and reinstall. If your live DVD/USB is the same version as the installed Ubuntu version, you will see a "Reinstall" option. This will reinstall the system in the same setup as the existing installation, without formatting the partitions. That way, your user data and user configuration will be preserved.
– David Apr 22 '21 at 03:56Maybe I should install the new version over dev/sa2?
– Nahuel Alejandro Cáceres Apr 22 '21 at 16:15