Ubuntu 17.04 软件包系统损坏

Ubuntu 17.04 软件包系统损坏

从 16.10 升级到 17.04 后,我收到一个弹出窗口,提示“检查您是否正在使用第三方存储库。如果是,请禁用它们,因为它们是常见的问题来源。此外,在终端中运行以下命令:apt-get install -f”

尝试了这个以及有关包系统的其他解决方案,但我仍然陷入困境:

> sudo apt --fix-broken install ... Setting up python3.5-minimal
> (3.5.3-1) ... 
> Traceback (most recent call last):   File
> "/usr/lib/python3.5/py_compile.py", line 6, in <module>
>     import importlib._bootstrap_external   File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
>     import types   File "/usr/lib/python3.5/types.py", line 166, in <module>
>     import functools as _functools   File "/usr/lib/python3.5/functools.py", line 23, in <module>
>     from weakref import WeakKeyDictionary   File "/usr/lib/python3.5/weakref.py", line 12, in <module>
>     from _weakref import ( ImportError: cannot import name '_remove_dead_weakref' 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-minimal:  python3-minimal
> depends on python3.5-minimal (>= 3.5.3-1~); however:   Package
> python3.5-minimal is not configured yet.
> 
> dpkg: error processing package python3-minimal (--configure): 
> dependency problems - leaving unconfigured No apport report written
> because the error message indicates its a followup error from a
> previous failure.
>                           Errors were encountered while processing:  python3.5-minimal  python3-minimal E: Sub-process /usr/bin/dpkg
> returned an error code (1)

相关内容