18.04.6 LTS升级中 出错

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
wit
帖子: 12
注册时间: 2016-10-01 9:59
系统: ubuntu

18.04.6 LTS升级中 出错

#1

帖子 wit » 2023-11-27 8:09

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"
头像
astolia
论坛版主
帖子: 6451
注册时间: 2008-09-18 13:11

Re: 18.04.6 LTS升级中 出错

#2

帖子 astolia » 2023-11-27 12:08

办法不是已经告诉你了吗?
wit 写了: 2023-11-27 8:09 please install the pythons-gdbm package
sudo apt install pythons-gdbm
回复