使用以下方法安装 Cinnamon 时出现以下错误sudo apt-get install cinnamon
:
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:
cinnamon : Depends: gir1.2-muffin-3.0 but it is not going to be installed
Depends: libgjs0-libmozjs185-1.0 but it is not installable
Depends: libgjs0c (>= 1.34.0) but 1.32.0-1ubuntu1 is to be installed
Depends: libgnome-desktop-3-4 (>= 3.2.0) but it is not installable
Depends: libmuffin0 (>= 1.1.1) but it is not going to be installed
Recommends: gnome-themes-standard but it is not going to be installed
Recommends: gnome-session-fallback but it is not going to be installed
Recommends: nemo but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我尝试了所有方法:
但我仍然无法安装它。请帮忙。
答案1
一般来说,如果你的发行版的存储库中有依赖项,你可以这样做
sudo apt-get -f install
这将尝试安装这些依赖项,但如果存储库中没有所需的软件包(这是您的情况),则必须从没有未满足依赖项的软件包开始手动下载并安装每个依赖项。可以从 launchpad.net 、 packages.ubuntu.com 等处下载软件包。
这帖子可能会帮助您了解如何解决依赖关系。
如果您提供发行版名称和版本,我可以提供更具体的答案。
答案2
通过添加 cinnamon 所需的存储库,在本例中在终端中输入以下内容,
sudo add-apt-repository ppa:merlwiz79/cinnamon-ppa
然后,如果您使用“sudo apt-get -f install(程序名称)”获取缺失的软件包,则应该可以解决问题。这应该有效,但要知道使用上述命令添加 ppa repo。当然,将存储库替换为您想要的存储库。