Me, being the idiot I am, deleted a few links to python. (I deleted the python3 link I think, as well as a few other write protected files) Now, whenever I make a typo in a command I get this: bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory
Whenever I do sudo apt update I get this:
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
I am super stressed and have absolutely no Idea what to do, please help!
Also, Gnome Tweak Tool stopped working.
ls -ld /usr/bin/python*
– steeldriver Nov 29 '21 at 17:08