我尝试进行 apt 升级,但 Samba 升级失败:
Preparing to unpack .../python-urllib3_1.13.1-2ubuntu0.16.04.2_all.deb ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 25, in <module>
import optparse
File "/usr/lib/python2.7/optparse.py", line 77, in <module>
import textwrap
ValueError: bad marshal data (string ref out of range)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 25, in <module>
import optparse
File "/usr/lib/python2.7/optparse.py", line 77, in <module>
import textwrap
ValueError: bad marshal data (string ref out of range)
dpkg: error processing archive /var/cache/apt/archives/python-urllib3_1.13.1-2ubuntu0.16.04.2_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 27, in <module>
import optparse
File "/usr/lib/python2.7/optparse.py", line 77, in <module>
import textwrap
ValueError: bad marshal data (string ref out of range)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../python-requests_2.9.1-3ubuntu0.1_all.deb ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 25, in <module>
import optparse
File "/usr/lib/python2.7/optparse.py", line 77, in <module>
import textwrap
ValueError: bad marshal data (string ref out of range)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 25, in <module>
import optparse
File "/usr/lib/python2.7/optparse.py", line 77, in <module>
import textwrap
ValueError: bad marshal data (string ref out of range)
dpkg: error processing archive /var/cache/apt/archives/python-requests_2.9.1-3ubuntu0.1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 27, in <module>
import optparse
File "/usr/lib/python2.7/optparse.py", line 77, in <module>
import textwrap
ValueError: bad marshal data (string ref out of range)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
我尝试过强制安装,清理所有内容。看起来是因为运行 Python 脚本导致无法升级 Samba 依赖项,并且出现此错误。但我找不到解决方案,有什么帮助吗?
干杯