码迷,mamicode.com
首页 > 编程语言 > 详细

dpkg: dependency problems prevent configuration of python-gi

时间:2016-03-07 10:15:59      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:

Ubuntu server 12.04因为尝试安装过xfce,导致sudo apt-get install xxx 都会返回,如:

 1 vagrant@precise32:~$ sudo apt-get install phpunit
 2 Reading package lists... Done
 3 Building dependency tree       
 4 Reading state information... Done
 5 phpunit is already the newest version.
 6 The following packages were automatically installed and are no longer required:
 7   libclass-isa-perl libswitch-perl
 8 Use apt-get autoremove to remove them.
 9 0 upgraded, 0 newly installed, 0 to remove and 336 not upgraded.
10 1 not fully installed or removed.
11 After this operation, 0 B of additional disk space will be used.
12 Do you want to continue [Y/n]? y
13 dpkg: dependency problems prevent configuration of python-gi:
14  python-gi depends on python:any (>= 2.7.1-0ubuntu2).
15 
16 dpkg: error processing package python-gi (--configure):
17  dependency problems - leaving unconfigured
18 No apport report written because MaxReports is reached already
19                                                               Errors were encountered while processing:
20  python-gi
21 E: Sub-process /usr/bin/dpkg returned an error code (1)

的错误信息,而且安装不到xxx软件,参考 Error ‘Depends: python:any. Unmet dependencies‘ after installing python 2.7.5 之后,运行了

sudo apt-get install --reinstall python

解决了这个问题。

目前还是安装不到任何软件,我运行

1 sudo apt-get dist-upgrade

进行更新。

 技术分享,运行之后,既然升级到14.04了。

参考链接:

  1. dpkg-reconfigure 重置Ubuntu包依赖

dpkg: dependency problems prevent configuration of python-gi

标签:

原文地址:http://www.cnblogs.com/fsong/p/5249527.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!