处理时遇到错误:python-pexpect

处理时遇到错误:python-pexpect

经过正常的定期升级后,我得到了

After this operation, 0 B of additional disk space will be used.

Setting up python-pexpect (4.0.1-0~ppatrusty2) ...

File "/usr/lib/python2.7/dist-packages/pexpect/async.py", line 16

transport, pw = yield from asyncio.get_event_loop()\

. ^

SyntaxError: invalid syntax dpkg: error processing package python-pexpect (--configure): subprocess installed post-installation script returned error exit status 101 Errors were encountered while processing: python-pexpect E: Sub-process /usr/bin/dpkg returned an error code (1)

我该如何解决??

答案1

看看这里这里

在他们解决问题的同时,你可以使用以下命令降级软件包:

apt-get install python-pexpect/trusty python3-pexpect/trusty

答案2

尝试寻找一个干净的解决方案后,最后只需删除python-pexpect包并运行,autoremove到目前为止似乎没有任何损坏。

相关内容