分页: 1 / 1

18.04.6 LTS升级中 出错

发表于 : 2023-11-27 8:09
wit
18.04.6 LTS升级中 出错 提示如下怎么办?求助大神


Traceback (most recent call last):
File "/usr/1ib/pythons.6/dbm/gnu.py", line 4, in <module>
from _gdbm import *
ModuleNotFounderror: No module named '_gdbm'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
Flle "/usr/1ib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <mod
import dbm.gnu as gdbm
File "/usr/1ib/pythons.6/dbm/gnu.py", line 6, in <module>
raise ImportError(str(msg)+'
, please install the pythons-gdbm package')ImportError: No module named '_gdbm', please install the pythons-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 "rusr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", 1ine 9, in <module
import gdbm
ModuleNotFoundError: No module named 'gdbm"

Re: 18.04.6 LTS升级中 出错

发表于 : 2023-11-27 12:08
astolia
办法不是已经告诉你了吗?
wit 写了: 2023-11-27 8:09 please install the pythons-gdbm package
sudo apt install pythons-gdbm