Closed sergiuszkierat closed 6 years ago
Please install the apt
module for the Python installation to which the /usr/bin/python3
executable belongs.
The python3-apt
package is only meant for the Python installation related to the Python 3 installation that comes through Ubuntu's (or Debian's) package manager. It looks like you installed a different Python version as /usr/bin/python3
which is not recommended in Ubuntu (and many other Linux distros) because some system tools and many installation instructions (including this one) rely on it belonging to the pre-packaged Python installation.
I'm closing the issue because it's a system configuration issue.
@davidfoerster I installed python 3.6 following this tutorial
Since it is still unclear for me, could you share an alternative source of knowledge which might help?
The problem is that python3-apt
from the Ubuntu Xenial package repositories is incompatible with other Python versions than 3.5. More generally, all Python modules with native code are incompatible with other major revisions of Pythons than the one they were built for.
Thus setting /usr/bin/python3
to point to a different Python installation is asking for trouble as you can see. I recommend that you undo this. You can still use Python 3.6 through /usr/bin/python3.6
or simply python3.6
.
If you need more Ubuntu troubleshooting I suggest that you open a question on Ask Ubuntu. This bug tracker is simply not the right spot for that. You're welcome to send me a comment with a link to your question and I'll see if I can help.
@davidfoerster Thanks for shedding the light on it, thus I am stick with 3.5 version.
It seems not to work with the newest version of python
whereas it works perfectly with version 3.5