Eu quebrei o comando não encontrado?

0

Eu estava brincando com o bower, npm e node, enquanto tentava atualizar o ember-cli, e eu quebrei algo estranho.

Eu recebo o seguinte erro python sempre que digito um comando que não é encontrado no terminal. Alguém pode me ajudar a diagnosticar o problema?

my@my_machine:~$ a # or anything else that is not an installed program or bash command
Traceback (most recent call last):
  File "/usr/lib/python3.5/dbm/gnu.py", line 4, in <module>
    from _gdbm import *
ImportError: No module named '_gdbm'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
    import dbm.gnu as gdbm
  File "/usr/lib/python3.5/dbm/gnu.py", line 6, in <module>
    raise ImportError(str(msg) + ', please install the python3-gdbm package')
ImportError: No module named '_gdbm', please install the python3-gdbm package


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 27, in <module>
    from CommandNotFound.util import crash_guard
  File "/usr/lib/python3/dist-packages/CommandNotFound/__init__.py", line 3, in <module>
    from CommandNotFound.CommandNotFound import CommandNotFound
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in <module>
    import gdbm
ImportError: No module named 'gdbm'

Eu tentei reinstalar:

$ sudo apt-get install --reinstall python3-gdbm 
$ sudo apt-get install --reinstall python-gdbm

Mas isso não muda nada.

    
por Eric Wilson 06.11.2015 / 12:24

1 resposta

0

Parece que foi conectado ao meu recente upgrade para o python 3.5.0. Revertido para 3.4.3 e funciona agora.

    
por Eric Wilson 07.11.2015 / 19:36