elementary OS Asked by Fatih19 on October 31, 2020
Had this error while trying to install Lutris :sudo add-apt-repository ppa:lutris-team/lutris
and then this came out :
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 11, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 28, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Seems like the problem is something about python?
It seems that you've upgraded python3 version. As explained here https://askubuntu.com/a/1191220/607679; because of the python3 update, usr/bin/python3 points to a python that does not have apt_pkg.
You can create symlink like below. This should your problem.
ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/apt_pkg.so
Answered by tyro on October 31, 2020
0 Asked on February 5, 2021 by yeacomono
1 Asked on January 27, 2021 by bo-rislav
1 Asked on January 26, 2021 by rogier1975
1 Asked on January 18, 2021 by user20370
0 Asked on January 10, 2021 by flyiinhigh
1 Asked on January 6, 2021 by user2969
1 Asked on January 5, 2021 by atarixle
0 Asked on January 2, 2021 by frog
6 Asked on December 26, 2020 by rafif-elfazri
0 Asked on December 24, 2020 by sanjeev-kumar
0 Asked on December 23, 2020 by tin-man
1 Asked on December 11, 2020 by francois-bonin
0 Asked on December 8, 2020 by scrollwheelie
2 Asked on December 6, 2020 by juergen-leo-von-staerk
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP