我如何重新安装损坏的python3-pkg-resources?



我试过apt-get clean(也试过自动清理)

文件还在那里,它给了我sub-process /use/bin/dpkg returned an error code (1)

我试过了:

sudo dpkg —-configure -a

and got error:

processing package with -
Python3-pkg-resources (—-configure): package is in a very bad state; you should reinstall before attempting reconfiguration.
Dependency problems for python3-setuptools(depends on python3-pkg-resources)
Dependancy problems prevent configuration of python3-pip:
Depends on -setuptools. 

所以我需要重新安装-pkg-resources,但我不知道如何删除它。编辑:它没有安装,但我不能删除文件,我不能再次下载它。

pkg uninstall python3-pkg-resources
pkg install python3-pkg-resources 

你试过了吗?

最新更新