【问题标题】:How do I resolve not fully installed package (python3-setuptools)?如何解决未完全安装的软件包(python3-setuptools)?
【发布时间】:2014-06-13 12:43:48
【问题描述】:

我试图安装 python3-setuptools,当我运行时

$ sudo apt-get install python3-setuptools

我收到此错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python3-setuptools (0.6.34-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/py3compile", line 36, in <module>
    from debpython import files as dpf
  File "/usr/share/python3/debpython/files.py", line 25, in <module>
    from debpython.pydist import PUBLIC_DIR_RE
  File "/usr/share/python3/debpython/pydist.py", line 28, in <module>
    from debpython.tools import memoize
  File "/usr/share/python3/debpython/tools.py", line 25, in <module>
    from datetime import datetime
ImportError: /usr/bin/datetime.so: undefined symbol: _Py_ZeroStruct
dpkg: error processing python3-setuptools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python3-setuptools
E: Sub-process /usr/bin/dpkg returned an error code (1)

我试过apt-get cleanapt-get autocleanapt-get remove python3-setuptoolsdpkg --remove python3-setuptools,但都没有奏效。

【问题讨论】:

  • 你试过dpkg --purge吗?
  • 顺便说一句,最好在askubuntu.comunix.stackexchange.com 上问这个问题
  • @jrennie dpkg --purge 给出了同样的错误 Thans 将其发布在 askubuntu 中

标签: python apt-get dpkg


【解决方案1】:

试试

sudo apt-get --force-yes remove #your-package-name#

然后

sudo apt autoremove

最后,您可以删除所有未完全安装或删除的软件包。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-05
    • 1970-01-01
    • 1970-01-01
    • 2018-09-26
    • 2010-11-14
    • 1970-01-01
    相关资源
    最近更新 更多