dpkg: dependency problems prevent configuration of python-gi

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

 1 [email protected]:~$ 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包依赖

时间: 2025-01-06 15:12:22

dpkg: dependency problems prevent configuration of python-gi的相关文章

dpkg dependency problems prevent configuration

dpkg: dependency problems prevent configuration of cr3: cr3 depends on libpng12-0 (>= 1.2.13-4); however: Package libpng12-0 is not installed. 这个问题是安装包过于老旧或者缺少软件包 解决方法: sudo apt --fix-broken install 原文地址:https://www.cnblogs.com/toooney/p/10424718.htm

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured

dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.5 (--configure): subprocess inst

Solutions to terminal problems encountered while using Python to execute "airodump-ng"

Python 3.3.5 Debian 3.12 One thing I found weird is using the following code is that the input I entered isn't displayed, even after I terminate the script. However I found a way accidently which is to set stdin as DEVNULL. 1 try: 2 stdout = subproce

dpkg: error processing package bluez (--configure) 解决方法【转】

转自:http://blog.csdn.net/heray1990/article/details/47803541 在 Ubuntu 执行 sudo apt-get upgrade 时,出现了如下的报错: Setting up bluez (4.101-0ubuntu13.1) ... reload: Job is not running: dbus invoke-rc.d: initscript dbus, action "force-reload" failed. start:

dpkg安装deb缺少依赖包的解决方法

[先贴出解决方案(基于Ubuntu)]: 使用dpkg -i   *.deb 的时候出现依赖没有安装 使用apt-get -f -y install  解决依赖问题后再执行dpkg安装deb包 =====================1.下面是遇到的依赖没有安装=========================== 问题 [email protected] ~/下载 $ sudo dpkg -i youdao-dict_1.1.0-0-ubuntu_amd64.deb [sudo] passw

Ubuntu下dpkg安装软件遇到包依赖问题的处理方法

造冰箱的大熊猫@cnblogs 2019/9/10 向灵魂工程师致敬! 在Ubuntu环境下通过dpkg命令安装deb包时,如果遇到包依赖问题,如 $sudo dpkg -i xxx.deb (Reading database ... 227173 files and directories currently installed.) Preparing to unpack xxx.deb ... Unpacking xxx (1.0.0) over (1.0.0) ... dpkg: depe

[转] linux(debian)安装USB无线网卡(tp-link TL-WN725N rtl8188eu )

1: 台式机家里面不想再走线了. 于是去某东买了个USB无线网卡.tp的WN725N  USB,非常小, 和罗技的优联接收器差不多大. 2:  驱动能自己识别是不指望了,既然是usb网卡,插入USB后,那就lsusb 看到新增加了一行Realtek的  ID 0bda:8179 [html] view plaincopy [email protected]:/# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hu

Ubuntu系统Python3相关环境或模块安装

前提:一般用户安装都命令前都需要sudo ,或者在root用户下 1.Ubuntu 16.04 安装PyCharm Ubuntu 16.04 安装PyCharm 本文通过第三方源安装PyCharm,好处是升级方便. 添加源:   $ sudo add-apt-repository ppa:mystic-mirage/pycharm 安装收费的专业版:   $ sudo apt-get update   $ sudo apt-get install pycharm 安装免费的社区版:   $ su

vps 切换内核

一.安装内核aptitude install linux-image-3.13.0-24-generic linux-headers-3.13.0-24-generic 二.查看已安装的内核dpkg --get-selections | grep linux-image 三.移除不需要的内核sudo apt-get remove --purge linux-image-3.8.0-39-generic 参考:http://blog.hickwu.com/vps%E5%8D%87%E7%BA%A7