![如何消除这些损坏的软件包错误并在 Linux Mint 16 Petra 中安装 Mate?](https://linux22.com/image/4429/%E5%A6%82%E4%BD%95%E6%B6%88%E9%99%A4%E8%BF%99%E4%BA%9B%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85%E9%94%99%E8%AF%AF%E5%B9%B6%E5%9C%A8%20Linux%20Mint%2016%20Petra%20%E4%B8%AD%E5%AE%89%E8%A3%85%20Mate%EF%BC%9F.png)
我已将计算机升级到 Linux Mint 16 Petra。安装过程中一切顺利,没有错误,也没有任何问题的迹象。
然而,在我重新启动后,Mate 不再是所有会话中的一个选项。我有 Cinnamon 和 Gnome,但没有 Mate。
我使用 Cinnamon 登录并尝试使用 Synaptic 安装 Mate,但它不断向我显示有关损坏的软件包的错误。
如何在 Linux Mint 16 Petra 中安装 Mate?
以下是我希望有助于确定问题的一些输出:
homebase ~ # sudo apt-get install mate-desktop-environment
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 resolve the situation:
The following packages have unmet dependencies:
mate-desktop-environment : Depends: mate-core (= 1.6.0.1+raring) but it is not going to be installed
Depends: mate-screensaver (>= 1.6.0) but it is not going to be installed
Depends: mate-applets (>= 1.6.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
homebase ~ # apt-get install mate-core
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 resolve the situation:
The following packages have unmet dependencies:
mate-core : Depends: libmatekbd (>= 1.6.0)
Depends: libmatewnck (>= 1.6.0)
Depends: libmatedesktop (>= 1.6.0)
E: Unable to correct problems, you have held broken packages.
homebase ~ # apt-get install libmatekbd
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 resolve the situation:
The following packages have unmet dependencies:
mate-settings-daemon : Depends: mate-settings-daemon-gstreamer (>= 1.6.1-1~mate1+petra) but it is not going to be installed or
mate-settings-daemon-pulse (>= 1.6.1-1~mate1+petra) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
答案1
对我有用的解决方案:
使用突触删除任何和全部伴侣相关的包。任何与伴侣在名字里。
使用软件源界面将存储库更改为默认值。因为某些原因,突触不会打开该界面,所以我使用了更新管理器反而。
更新包信息。
安装
mint-meta-mate
。注销并使用重新登录伴侣。
现在一切都很好。
答案2
使用 aptitude 代替 apt-get 进行包管理,请注意,交替使用 aptitude 和 apt-get 是不好的做法,因为它们分别记录用户所做的更改。
从 Mint 菜单打开终端并使用以下命令启动:
sudo aptitude update && sudo aptitude install gtkorphan
继续运行:
sudo aptitude update && sudo aptitude upgrade
这用于仔细检查您是否拥有所有更新。
要清除损坏的包,请使用以下命令:
sudo aptitude -f
请访问以下链接了解更多信息https://community.linuxmint.com/tutorial/view/482