肉桂没有安装在ubuntu 13.04

我一直在尝试在我的ubuntu 13.04中安装肉桂,当我付款时

sudo apt-get install cinnamon 

我得到的错误是:

 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: libgjs0-libmozjs185-1.0 Recommends: nemo but it is not going to be installed Recommends: cinnamon-screensaver but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

当我已经将Gnome安装到ubuntu上时,这发生在我身上。

安装Aptitude并使用它进行安装后,它为我提供了降级Gnome以安装Cinnamon的选项。 如果你这样做,肉桂应该安装。

 $ sudo apt-get install aptitude $ sudo aptitude install cinnamon [sudo] password for : The following NEW packages will be installed: cinnamon{b} gir1.2-muffin-3.0{a} libmuffin0{a} muffin-common{a} 0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 2,255 kB of archives. After unpacking 9,065 kB will be used. The following packages have unmet dependencies: cinnamon : Depends: libgjs0-libmozjs185-1.0 which is a virtual package. Depends: libmozjs185-1.0 (>= 1.8.5-1.0.0+dfsg) but it is not going to be installed. The following actions will resolve these dependencies: Keep the following packages at their current version: 1) cinnamon [Not Installed] Accept this solution? [Y/n/q/?] n The following actions will resolve these dependencies: Install the following packages: 1) libmozjs185-1.0 [1.8.5-1.0.0+dfsg-4 (raring)] Downgrade the following packages: 2) gjs [1.36.1+js17-0ubuntu1~raring0 (now, raring) -> 1.34.0-0ubuntu1 (raring)] 3) gnome-shell [3.8.1-0ubuntu1~raring1.2 (now, raring) -> 3.6.3.1-0ubuntu6 (raring)] 4) gnome-shell-common [3.8.1-0ubuntu1~raring1.2 (now, raring) -> 3.6.3.1-0ubuntu6 (raring)] 5) gnome-sushi [3.8.0-1~ubuntu13.04.2 (now, raring) -> 3.6.1-0ubuntu1 (raring)] 6) libgjs0c [1.36.1+js17-0ubuntu1~raring0 (now, raring) -> 1.34.0-0ubuntu1 (raring)] Accept this solution? [Y/n/q/?] y The following packages will be DOWNGRADED: gjs gnome-shell gnome-shell-common gnome-sushi libgjs0c The following NEW packages will be installed: cinnamon gir1.2-muffin-3.0{a} libmozjs185-1.0{a} libmuffin0{a} muffin-common{a} 0 packages upgraded, 5 newly installed, 5 downgraded, 0 to remove and 0 not upgraded. Need to get 4,992 kB of archives. After unpacking 12.4 MB will be used. Do you want to continue? [Y/n/?] y 

你必须输入’n’和两个’y’才能安装。

这是一个相对容易的修复,至少是一个容易尝试! :)看起来你有一个破坏的依赖/包,一个简单的解决方案。

做这个:

 sudo apt-get clean && sudo apt-get update 

它应该修复你的破坏包错误,然后你可以运行sudo apt-get install cinammon命令来安装它!

祝好运!

问题似乎与PPA的引脚优先级有关。 这应该可以解决问题。

打开首选项文件:

  gksu gedit /etc/apt/preferences 

然后在底部添加:

  Package: * Pin: origin ppa.launchpad.net Pin-Priority: 700 

保存并关闭文件并打开终端更新您的包然后安装肉桂。

  sudo apt-get update && sudo apt-get install cinnamon 

这应该工作。

我已经切换到Linux Mint 15用于个人发行版选择,这是我必须要做的才能在我的机器上获得最新版本的肉桂和尼莫。