Score:0

How to fix error `No module named 'apt_pkg' in Ubuntu 20.04?

tr flag

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:

enter image description here

Score:0
tr flag

Solution: Run the following command and choose python3.8:

sudo update-alternatives --config python3
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.