을 실행 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, 미래의 여행자를 위해 이곳을 떠나