sudo apt-get install 包时出现 python 处理错误

sudo apt-get install 包时出现 python 处理错误

因此,我尝试在我的 ubuntu 16.04 LTS 上安装 tor 和 ffmpeg,步骤如下:https://www.torproject.org/docs/debian

但在我运行该行之后:apt-get install tor deb.torproject.org-keyring

它产生此错误日志:

Setting up python3.5-minimal (3.5.2-2ubuntu0~16.04.1) ...
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 186, in <module>
    sys.exit(main())
  File "/usr/lib/python3.5/py_compile.py", line 178, in main
    compile(filename, doraise=True)
  File "/usr/lib/python3.5/py_compile.py", line 136, in compile
    os.makedirs(dirname)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
OSError: [Errno 117] Structure needs cleaning: '/usr/lib/python3.5/importlib/__pycache__'
dpkg: error processing package python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3.5:
 python3.5 depends on python3.5-minimal (= 3.5.2-2ubuntu0~16.04.1); however:
  Package python3.5-minimal is not configured yet.

dpkg: error processing package python3.5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.5-dev:
 python3.5-dev depends on python3.5 (= 3.5.2-2ubuntu0~16.04.1); however:
  Package python3.5 is not configured yet.

dpkg: error processing package python3.5-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-dev:
 python3-dev depends on python3.5-dev (>= 3.5.1-2~); however:
  Package python3.5-dev is not configured yet.

dpkg: error processing package python3-dev (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
        No apport report written because MaxReports is reached already
                                                                      Errors were encountered while processing:
 python3.5-minimal
 python3.5
 python3.5-dev
 python3-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人知道如何解决这个问题吗?谢谢

相关内容