由于软件包损坏、依赖项未满足,我仍然无法更新 12.04 LTS……请查看我尝试过的方法

由于软件包损坏、依赖项未满足,我仍然无法更新 12.04 LTS……请查看我尝试过的方法

以下是我尝试修复 brokern 软件包的方法以及我收到的错误消息。我还能做什么或运行什么来更新 12.04 LTS,并且能够使用软件管理器和 Synaptic?10,因为错误消息表明这是上一次故障的后续错误。

     No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Errors were encountered while processing:
 ubuntu-sso-client-qt
 ubuntu-sso-client-gtk
 software-center
E: Sub-process /usr/bin/dpkg returned an error code (1)
rich@rich-Latitude-D620:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ubuntu-sso-client-gtk : Depends: python-ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
                         Depends: ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
 ubuntu-sso-client-qt : Depends: python-ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
                        Depends: ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
E: Unmet dependencies. Try using -f.

rich@rich-Latitude-D620:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  ubuntu-sso-client-gtk ubuntu-sso-client-qt
The following packages will be upgraded:
  ubuntu-sso-client-gtk ubuntu-sso-client-qt
2 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
3 not fully installed or removed.
Need to get 0 B/569 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of ubuntu-sso-client-gtk:
 ubuntu-sso-client-gtk depends on python-ubuntu-sso-client (= 3.0.2-0ubuntu1); however:
  Version of python-ubuntu-sso-client on system is 3.0.2-0ubuntu3.
 ubuntu-sso-client-gtk depends on ubuntu-sso-client (= 3.0.2-0ubuntu1); however:
  Version of ubuntu-sso-client on system is 3.0.2-0ubuntu3.
dpkg: error processing ubuntu-sso-client-gtk (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of software-center:
 software-center depends on ubuntu-sso-client-gtk; however:
  Package ubuntu-sso-client-gtk is not configured yet.
dpkg: error processing software-center (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-sso-client-qt:
 ubuntu-sso-client-qt depends on python-ubuntu-sso-client (= 3.0.2-0ubuntu1); however:
  Version of python-ubuntu-sso-client on system is 3.0.2-0ubuntu3.
 ubuntu-sso-client-qt depends on ubuntu-sso-client (= 3.0.2-0ubuntu1); however:
  Version of ubuntu-sso-client on system is 3.0.2-0ubuntu3.
dpkg: error processing ubuntu-sso-client-qt (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Errors were encountered while processing:
 ubuntu-sso-client-gtk
 software-center
 ubuntu-sso-client-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)
rich@rich-Latitude-D620:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 ubuntu-sso-client-gtk : Depends: python-ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
                         Depends: ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
 ubuntu-sso-client-qt : Depends: python-ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
                        Depends: ubuntu-sso-client (= 3.0.2-0ubuntu1) but 3.0.2-0ubuntu3 is installed
E: Unmet dependencies. Try using -f.
rich@rich-Latitude-D620:~$ 

答案1

我在从一个 LTS 升级到另一个 LTS 并尝试更新闪存后遇到了这个问题。它抱怨 WINE(然后是其他的),并且拒绝做任何事情。

所以我这样做了。

  1. 如果尚未打开,请打开终端。

  2. sudo apt-get update && sudo apt-get install -y [FIRST PACKAGE FROM LIST]就我而言sudo apt-get update && sudo apt-get install -y wine

  3. 输入密码

  4. 等待事情得到处理。

就我而言,一大堆软件包开始安装和更新。这解释了我遇到的很多小问题。这么多“之前未选择的”软件包……

假设实际上什么都没有损坏,只需关注它抱怨的内容并更新它们,这可能是您需要的修复。为什么没有自动处理这个问题是另一个故事,下次再讲。

因人而异。

答案2

我不太确定这是否会对您有帮助,但为什么不尝试删除损坏的包裹呢?

sudo apt-get remove ubuntu-sso-client-gtk
sudo apt-get purge ubuntu-sso-client-gtk

相关内容