sudo apt-get update&& sudo apt-get升级

时间:2017-07-02 11:50:06

标签: python ubuntu

我在尝试上述命令时遇到此错误

我尝试了几种解决方案但是nth帮助

我尝试安装的任何软件都会发生这种情况

dpkg: error processing package python3-pip (--configure):

 package is in a very bad inconsistent state; you should

 reinstall it before attempting configuration

dpkg: error processing package python3-setuptools (--configure):

 package is in a very bad inconsistent state; you should

 reinstall it before attempting configuration

dpkg: error processing package python3-wheel (--configure):

 package is in a very bad inconsistent state; you should

 reinstall it before attempting configuration

Errors were encountered while processing:

 python3-pip

 python3-setuptools

 python3-wheel

E: Sub-process /usr/bin/dpkg returned an error code (1)

1 个答案:

答案 0 :(得分:1)

尝试使用this,但处理状态不佳的软件包除外(在本例中为python3-pippython3-setuptoolspython3-wheel

sudo dpkg --remove --force-remove-reinstreq python3-pip python3-setuptools python3-wheel
sudo apt-get install python3-pip python3-setuptools python3-wheel