大家好,我是 Ubuntu 的新手,遇到了一个问题...我设法让一切都像梦一样运转,但不幸的是,在我最近的升级/更新之后,我的软件属性 gtk 应用程序停止了运行。当我尝试在 GUI 中启动它时,它根本没有响应,当我尝试在终端中运行它时,我得到了这个...
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 37, in <module>
from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 51, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 58, in <module>
from . import ppa
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 25, in <module>
import json
File "/usr/lib/python3.4/json/__init__.py", line 106, in <module>
from .decoder import JSONDecoder
File "/usr/lib/python3.4/json/decoder.py", line 5, in <module>
from json import scanner
ImportError: cannot import name 'scanner'
有人能帮帮我吗?我完全不知所措?
答案1
scanner.py
应该与 位于同一目录中decoder.py
,并且都位于 中/usr/lib/python3.4/json/
。
由于很难找出文件被删除/移动的原因,我建议重新安装libpython3.4-stdlib
:
sudo apt-get install --reinstall libpython3.4-stdlib