apport_python_hook.py 不断出现错误

apport_python_hook.py 不断出现错误

尝试执行任何 apt-get 命令或几乎任何命令时,我都会不断收到此错误消息,打开终端时也会显示此错误消息。我也无法打开软件中心和软件更新程序。即使我尝试重新安装 python 来修复错误,它也会给我这个错误。非常希望得到任何建议!

Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 5, in <module>
    from __future__ import absolute_import, print_function
ImportError: No module named '__future__'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
    if not enabled():
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
    import re
ImportError: No module named 're'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 5, in <module>
    from __future__ import absolute_import, print_function
ImportError: No module named '__future__'

相关内容