iT邦幫忙

0

python upgrade 出現的問題

  • 分享至 

  • xImage

Preparing to unpack .../python-cryptography_1.7.1-3+deb9u2_armhf.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: 警告: 子程序 原先的 pre-removal script 傳回了錯誤退出狀態 1
dpkg: 試著改用新套件的 script ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-cryptography_1.7.1-3+deb9u2_armhf.deb (--unpack):
子程序 新的 pre-removal script 傳回了錯誤退出狀態 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr,
File "/usr/share/python/debpython/version.py", line 24, in
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
子程序 已安裝的 post-installation script 傳回了錯誤退出狀態 1
Preparing to unpack .../python-pil_4.0.0-4+deb9u1_armhf.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: 警告: 子程序 原先的 pre-removal script 傳回了錯誤退出狀態 1
dpkg: 試著改用新套件的 script ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-pil_4.0.0-4+deb9u1_armhf.deb (--unpack):
子程序 新的 pre-removal script 傳回了錯誤退出狀態 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr,
File "/usr/share/python/debpython/version.py", line 24, in
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
子程序 已安裝的 post-installation script 傳回了錯誤退出狀態 1
Preparing to unpack .../python-werkzeug_0.11.15+dfsg1-1+deb9u1_all.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: 警告: 子程序 原先的 pre-removal script 傳回了錯誤退出狀態 1
dpkg: 試著改用新套件的 script ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-werkzeug_0.11.15+dfsg1-1+deb9u1_all.deb (--unpack):
子程序 新的 pre-removal script 傳回了錯誤退出狀態 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr,
File "/usr/share/python/debpython/version.py", line 24, in
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
子程序 已安裝的 post-installation script 傳回了錯誤退出狀態 1
處理時發生錯誤:
/var/cache/apt/archives/python-cryptography_1.7.1-3+deb9u2_armhf.deb
/var/cache/apt/archives/python-pil_4.0.0-4+deb9u1_armhf.deb
/var/cache/apt/archives/python-werkzeug_0.11.15+dfsg1-1+deb9u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答