首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >dpkg:错误处理包python-<package name>

dpkg:错误处理包python-<package name>
EN

Stack Overflow用户
提问于 2018-12-26 14:36:02
回答 1查看 5K关注 0票数 0
  • 我正在尝试使用sudo apt-get upgrade命令升级我的raspbian,但是它总是会导致这个错误
  • 我尝试了这个命令sudo dpkg --configure -a,它显示了相同的错误
  • 我再次尝试对每个包进行一次配置,但没有结果。如何配置dpkg??
代码语言:javascript
复制
dpkg: error processing package python-idna (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-minecraftpi (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-crypto (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-fourletterphat (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-chardet (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-blinker (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-automationhat (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-colorama (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-cap1xxx (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-jwt (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-markupsafe (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-explorerhat:
 python-explorerhat depends on python-cap1xxx; however:
  Package python-cap1xxx is not configured yet.

dpkg: error processing package python-explorerhat (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-keyrings.alt:
 python-keyrings.alt depends on python-crypto; however:
  Package python-crypto is not configured yet.

dpkg: error processing package python-keyrings.alt (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package python-envirophat (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-imaging (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-configparser (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-gi (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-buttonshim (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-microdotphat (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-enum34 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-cryptography:
 python-cryptography depends on python-enum34; however:
  Package python-enum34 is not configured yet.
 python-cryptography depends on python-idna (>= 2.0); however:
  Package python-idna is not configured yet.

dpkg: error processing package python-cryptography (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package python-gpiozero (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-requests:
 python-requests depends on python-chardet; however:
  Package python-chardet is not configured yet.

dpkg: error processing package python-requests (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package python-decorator (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-itsdangerous (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-blinkt (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-dbus (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: error processing package python-ipaddress (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-drumhat:
 python-drumhat depends on python-cap1xxx; however:
  Package python-cap1xxx is not configured yet.

dpkg: error processing package python-drumhat (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-secretstorage:
 python-secretstorage depends on python-dbus; however:
  Package python-dbus is not configured yet.
 python-secretstorage depends on python-cryptography; however:
  Package python-cryptography is not configured yet.

dpkg: error processing package python-secretstorage (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-requests-oauthlib:
 python-requests-oauthlib depends on python-requests; however:
  Package python-requests is not configured yet.

dpkg: error processing package python-requests-oauthlib (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-oauthlib:
 python-oauthlib depends on python-blinker; however:
  Package python-blinker is not configured yet.
 python-oauthlib depends on python-cryptography; however:
  Package python-cryptography is not configured yet.
 python-oauthlib depends on python-jwt (>= 1.0.0); however:
  Package python-jwt is not configured yet.

dpkg: error processing package python-oauthlib (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-keyring:
 python-keyring depends on python-dbus; however:
  Package python-dbus is not configured yet.
 python-keyring depends on python-secretstorage; however:
  Package python-secretstorage is not configured yet.

dpkg: error processing package python-keyring (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-pianohat:
 python-pianohat depends on python-cap1xxx; however:
  Package python-cap1xxx is not configured yet.

dpkg: error processing package python-pianohat (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-jinja2:
 python-jinja2 depends on python-markupsafe; however:
  Package python-markupsafe is not configured yet.

dpkg: error processing package python-jinja2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-openssl:
 python-openssl depends on python-cryptography (>= 1.3.4); however:
  Package python-cryptography is not configured yet.

dpkg: error processing package python-openssl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-click:
 python-click depends on python-colorama; however:
  Package python-colorama is not configured yet.

dpkg: error processing package python-click (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-flask:
 python-flask depends on python-click; however:
  Package python-click is not configured yet.
 python-flask depends on python-itsdangerous; however:
  Package python-itsdangerous is not configured yet.
 python-flask depends on python-jinja2; however:
  Package python-jinja2 is not configured yet.

dpkg: error processing package python-flask (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-idna
 python-minecraftpi
 python-crypto
 python-fourletterphat
 python-chardet
 python-blinker
 python-automationhat
 python-colorama
 python-cap1xxx
 python-jwt
 python-markupsafe
 python-explorerhat
 python-keyrings.alt
 python-envirophat
 python-imaging
 python-configparser
 python-gi
 python-buttonshim
 python-microdotphat
 python-enum34
 python-cryptography
 python-gpiozero
 python-requests
 python-decorator
 python-itsdangerous
 python-blinkt
 python-dbus
 python-ipaddress
 python-drumhat
 python-secretstorage
 python-requests-oauthlib
 python-oauthlib
 python-keyring
 python-pianohat
 python-jinja2
 python-openssl
 python-click
 python-flask
E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 1

Stack Overflow用户

发布于 2018-12-26 20:51:09

我尝试使用以下命令手动重新安装这些包的每个包。

sudo apt安装--重新安装python-(包名)

它被解决了:

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53933446

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档