I have a VM running Ubuntu 20.04 inside windows and I tried to fix a problem, and now I get the error
ModuleNotFoundError: No module named 'apt-pkg'
I did run the code
sudo apt install python3-apt
which did not help. When restarting the VM I get the same error (i.e. I cannot actually open a Terminal on the GUI probably because of that error). I need to change to a non-GUI terminal...
I followed to solution suggested HERE but the command
ls -l | grep apt_pkg
did not return anything.
I also tried the answer in this question and I got errors like follows after running the first command sudo apt remove python3-apt
: