#i got a Importerror no module named apt_pkg after updgrade python
9 messages · Page 1 of 1 (latest)
I have two ideas:
- The
apt_pkgmodule doesn't support the latest version of Python and was automatically uninstalled due to a dependency mismatch - You simply don't have it installed. In that case, try
sudo apt install python3-apt
But also, note that you have third-party repositories added which may CONFLICT with Mint's packages. This could lead to this error as your python version may be newer than what Mint supports.
thank for the feedback, i read in general python last version get problems. how can i return to python 3.10, sudo apt remove python 3.12.1?
Generally python 3.10 is supposed to be the latest version that Mint offers out of the box. As such, the newer version of Python comes from one of the repositories you have installed.
You can manage extra repositories and PPAs by opening "Software Sources" from the search/menu.
For context, this is what it looks like for me on a pretty fresh mint install without extra repositories or PPAs:
i did some mistake 😄 i removed python3.12 with remove and there wasn't a python version on the python3 folder some my mint started to have problems with software sources
but i've found how to fix that problem and now again i have python 3.10.12 default
if the issue is solved then, use !solved in chat
(if I remember right it was !solved and not another command 🤔)
No commands for the new threads, can just use the discord interface to edit tags and add the "Solved" one. 