软件中心崩溃;尝试修复后无法重新安装

软件中心崩溃;尝试修复后无法重新安装

我困惑了。

在我的系统上,软件中心在执行后 2 秒内就崩溃了。我尝试通过运行以下命令来解决这个问题:

sudo apt-get remove --purge software-center
sudo apt-get install software-center

不幸的是,安装失败。我收到此错误:

sudo apt-get install software-centerReading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 software-center : Depends: python-gi (>= 3.4.0-1ubuntu0.1) but it is not going to be installed
                   Depends: python-gi-cairo but it is not going to be installed
                   Depends: python-aptdaemon (>= 0.40) but it is not going to be installed
                   Depends: python-aptdaemon.gtk3widgets but it is not going to be installed
                   Depends: oneconf (>= 0.2.6) but it is not going to be installed
                   Depends: python-oneconf (>= 0.3) but it is not going to be installed or
                            oneconf (< 0.3) but it is not going to be installed
                   Recommends: sessioninstaller but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

无奈之下,我尝试了 apt-get build-deps,但是这也失败了。

sudo apt-get build-dep python-gi python-gi-cairo python-aptdaemon.gtk3widgets oneconf python-oneconf oneconf sessioninstaller
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Picking 'pygobject' as source package instead of 'python-gi'
The following packages have unmet dependencies:
 libcairo2-dev : Depends: libfontconfig1-dev (>= 2.2.95) but it is not going to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.36.0-1ubuntu2) but 2.36.3-0ubuntu1~raring1 is to be installed
                  Depends: libglib2.0-bin (= 2.36.0-1ubuntu2)
E: Build-dependencies for python-gi could not be satisfied.

有任何想法吗?

答案1

首先尝试安装所有依赖项。似乎您的依赖项也有依赖项。您试过吗sudo apt-get install -f

相关内容