Ubuntu 13.04 中无法安装 Cinnamon

Ubuntu 13.04 中无法安装 Cinnamon

我一直试图在我的 ubuntu 13.04 中安装 cinnamon,当我给

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.

答案1

当我已经在 ubuntu 上安装 Gnome 时,发生了这种情况。

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

$ sudo apt-get install aptitude
$ sudo aptitude install cinnamon
[sudo] password for <USER>: 
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”才能安装。

答案2

这是一个相对容易的修复,至少易于尝试!:) 看来您有一个损坏的依赖项/包,这很容易修复。

做这个:

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

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

祝你好运!

答案3

问题似乎出在 PPA 的引脚优先级上。这应该可以解决问题。

打开首选项文件:

    gksu gedit /etc/apt/preferences

然后在底部添加:

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

保存并关闭文件,然后打开终端来更新您的软件包,然后安装 cinnamon。

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

那应该可行。

我已经将 Linux Mint 15 作为我的个人发行版选择,并且我必须在我的计算机上获取最新版本的 cinnamon 和 nemo。

相关内容