$ whatever
Traceback (most recent call last):
File "/usr/lib/python3.5/dbm/gnu.py", line 4, in
from \_gdbm import \*
ImportError: No module named '\_gdbm'
Pendant la gestion de l'exception ci-dessus, une autre exception s'est produite :
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in
import dbm.gnu as gdbm
File "/usr/lib/python3.5/dbm/gnu.py", line 6, in
raise ImportError(str(msg) + ', veuillez installer le package python3-gdbm')
ImportError: No module named '\_gdbm', veuillez installer le package python3-gdbm
Pendant la gestion de l'exception ci-dessus, une autre exception s'est produite :
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 27, in
from CommandNotFound.util import crash\_guard
File "/usr/lib/python3/dist-packages/CommandNotFound/\_\_init\_\_.py", line 3, in
from CommandNotFound.CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 9, in
import gdbm
ImportError: No module named 'gdbm'
supprimer gdbm d'abord
apt remove --purge python3-gdbm
réinstaller
apt install python3-gdbm
ça a fonctionné pour moi