ModuleNotFoundError: Nenhum módulo chamado 'apt_pkg' no Moka instalando

1

Eu quero instalar o tema moka no meu Ubuntu. com o seguinte comando:

sudo add-apt-repository ppa:moka/stable

Mas tenha erro:

Original exception was: 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 27, in <module>
    import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'

python -V: 2.7.6

python3 -V: 3.6.3

O que devo fazer?

    
por ParisaN 04.06.2018 / 11:52

1 resposta

0

Veja o link para obter uma solução. Resumindo:

cd /usr/lib/python3/dist-packages
sudo ln -s apt_pkg.cpython-36m-x86_64-linux-gnu.so apt_pkg.so
    
por dr. Sybren 12.10.2018 / 07:55