$ sudo apt-get install cinnamon cinnamon-session cinnamon-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'cinnamon' instead of 'cinnamon-session'
Note, selecting 'cinnamon' instead of 'cinnamon-settings'
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:
cinnamon : Depends: gir1.2-muffin-3.0 but it is not going to be installed
Depends: libcogl5 (>= 1.7.4) but it is not installable
Depends: libmuffin0 (>= 1.0.0-0ubuntu1~precise) 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
E: Unable to correct problems, you have held broken packages.
我添加了这个 PPA:
sudo add-apt-repository ppa:merlwiz79/cinnamon-ppa
然后运行以下命令:
sudo apt-get update && sudo apt-get install cinnamon cinnamon-session cinnamon-settings
如何安装最新的 Cinnamon 桌面?如何修复此错误?
答案1
此 PPA 不包含 Cinnamon 的最新版本。由于开发速度较快,它相对较旧,并且维护者尚未更新此 PPA。
因此,我建议您清除 PPA 并按照以下问答安装最新版本:
如何
安装 ppa-purge
sudo apt-get install ppa-purge
清除 ppa:
sudo apt-get -f install
sudo ppa-purge ppa:ppa:merlwiz79/cinnamon-ppa
sudo apt-get update
答案2
这是一个奇怪的问题。通常,apt-get 会自动安装软件包所需的所有依赖项。你应该运行sudo apt-get 安装 cinnamon cinnamon-settings cinnamon-theme libmuffin0 gir1.2-muffin-3.0 libcogl5安装 Cinnamon。
答案3
这是一个包依赖问题。
在终端中输入这些:
sudo apt-get install gir1.2-muffin-3.0 libcogl5 libmuffin0
然后重新启动并安装 Cinnamon。
如果仍然无法安装 Cinnamon,我建议安装 GNOME 3。这可能没有帮助,但在我安装 GNOME 3 之后,Cinnamon 就可以工作了。(我也遇到了同样的问题。)
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell
然后再次安装 Cinnamon。