【问题标题】:Half installed packages and python circular dependency [closed]一半安装的包和python循环依赖[关闭]
【发布时间】:2013-12-01 04:47:27
【问题描述】:

更新到 ubuntu 12.04 到 12.10 时出现问题:

root@ely:/sys/bus/usb/devices# dpkg -l | grep ^i[HUFW]
iU  libpython2.7                           2.7.3-0ubuntu3.4                        Shared Python runtime library (version 2.7)
iU  python                                 2.7.3-0ubuntu2.2                        interactive high-level object-oriented language (default version)
iU  python-all                             2.7.3-0ubuntu2.2                        package depending on all supported Python runtime versions
iU  python-all-dev                         2.7.3-0ubuntu2.2                        package depending on all supported Python development packages
iU  python-dev                             2.7.3-0ubuntu2.2                        header files and a static library for Python (default)
iU  python-minimal                         2.7.3-0ubuntu2.2                        minimal subset of the Python language (default version)
iU  python2.7                              2.7.3-0ubuntu3.4                        Interactive high-level object-oriented language (version 2.7)
iU  python2.7-dev                          2.7.3-0ubuntu3.4                        Header files and a static library for Python (v2.7)
iF  python2.7-minimal                      2.7.3-0ubuntu3.4                        Minimal subset of the Python language (version 2.7)

当我尝试配置包 python2.7-minimal 和 python-minimal 时,我得到一个看起来像循环依赖的东西:

root@ely:~# sudo dpkg --configure python2.7-minimal
dpkg: dependency problems prevent configuration of python2.7-minimal:
 python2.7-minimal depends on python-minimal (>= 2.6.6-3+squeeze1); however:
  Package python-minimal is not configured yet.
dpkg: error processing python2.7-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python2.7-minimal


root@ely:~# sudo dpkg --configure python-minimal
dpkg: dependency problems prevent configuration of python-minimal:
 python-minimal depends on python2.7-minimal (>= 2.7.3); however:
  Package python2.7-minimal is not configured yet.
dpkg: error processing python-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-minimal

如何解决那些 python2.7-minimal python.minimal 依赖项?其次,如何解压或配置 iU 和 iF 标记的包?在这种情况下,我无法重新配置或安装任何东西。谢谢。

【问题讨论】:

  • 试试aptitude reinstall python2.7-dev python2.7
  • 我在重新安装 aptitude 时遇到了同样的错误。

标签: python ubuntu python-2.7 apt dpkg


【解决方案1】:

您是否尝试过配置它?

sudo dpkg --configure python2.7-dev

下次给完整的积压,否则就没用了。

【讨论】:

  • root@ely:~# sudo dpkg --configure python2.7-minimal dpkg: 依赖问题阻止配置 python2.7-minimal: python2.7-minimal 依赖于 python-minimal (>= 2.6.6-3+挤压1);然而:包 python-minimal 尚未配置。 dpkg:错误处理python2.7-minimal(--configure):依赖问题-未配置处理时遇到错误:python2.7-minimal
  • 所以python2.7-minimal依赖于python-minimal。不过root@ely:~# sudo dpkg --configure python2.7-minimal dpkg: dependency problems prevent configuration of python2.7-minimal: python2.7-minimal depends on python-minimal (>= 2.6.6-3+squeeze1); however: Package python-minimal is not configured yet. dpkg: error processing python2.7-minimal (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python2.7-minimal
  • ahhhh...请参阅对原始帖子的编辑 - python-minimal 依赖于 python2.7-minimal 而 python2.7-minimal 依赖于 python-minimal。
  • @CharlesPehlivanian 删除输出并添加 sudo apt-get checksudo dpkg --configure -a
猜你喜欢
  • 1970-01-01
  • 2022-01-23
  • 2021-08-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-09
  • 2011-03-23
  • 1970-01-01
相关资源
最近更新 更多