Ubuntu

Ubuntu 軟體中心:無法糾正問題,您持有損壞的軟體包

  • March 4, 2017

在 Ubuntu 14.04 LTS 上找不到軟體包軟體中心。

我試圖通過終端安裝它,但最終出現以下錯誤:

ravip@LP204:~$ sudo apt-get install software-center
[sudo] password for ravip: 
Reading 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: software-center-aptdaemon-plugins but it is not going to be installed
                  Depends: python-gi 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
                  Recommends: software-properties-gtk 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.

所有DependsRecommends軟體包都已安裝並處於最新版本。

我該如何解決?

轉到Ubuntu 源列表生成器

  1. 選擇國家
  2. 選擇發布
  3. 選擇 Ubuntu 分支
  4. 選擇 Ubuntu 更新
  5. 點擊Generate
  6. 生成列表後執行 Curl 命令

執行以下命令:

sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade
sudo apt-get install software-center

引用自:https://unix.stackexchange.com/questions/349098