簡體   English   中英

如何解決未完全安裝的軟件包(python3-setuptools)?

[英]How do I resolve not fully installed package (python3-setuptools)?

我正在嘗試安裝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 --remove python3-setuptools

嘗試

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

接着

sudo apt autoremove

最后,您可以刪除所有未完全安裝或刪除的軟件包。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM