当我运行时sudo apt-get upgrade
,出现dpkg错误并中断该过程。
错误详情:
Setting up python-minimal (2.7.3-0ubuntu7.1) ...
Traceback (most recent call last):
File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/compileall.py", line 16, in <module>
import struct
File "/usr/local/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct
dpkg: error processing python-minimal (--configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of python:
python depends on python-minimal (= 2.7.3-0ubuntu7.1); however:
Package python-minimal is not configured yet.
在处理以下程序包时,此问题会导致一系列依赖性问题:
python
gwibber-service
libgwibber3
libgwibber-gtk3
gwibber
gwibber-service-facebook
gwibber-service-identica
gwibber-service-twitter
python-all
python-dev
python-all-dev
python-apt
python-problem-report
python-apport
python-libxml2
unity-lens-gwibber
unity-scope-video-remote
最后,对于这个问题,我无能为力。几天后,根目录已满,由于这个问题,我什至无法卸载任何软件。
/usr/bin/python
符号链接更改为指向python3.5
,这引起了与此非常类似的错误。不知道为什么,可能与python2.7
在没有警告的情况下更改符号链接时已经损坏的部门有关。IDK,将其留在此处以供将来的旅行者使用