无法登录 ubuntu 14.04

无法登录 ubuntu 14.04

我昨天将我的 Hp g6 从 Ubuntu 13.10 升级到了 14.04。

现在我无法使用Unity登录系统。

但我仍然可以使用 i3 窗口管理器登录。

我检查了一下,发现它ubuntu-desktop坏了。我尝试重新安装它,它抱怨依赖性问题和包损坏。

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:
ubuntu-desktop : Depends: ubuntu-session but it is not going to be installed
   Recommends: empathy but it is not going to be installed
   E: Unable to correct problems, you have held broken packages.

当我尝试安装 ubuntu-session 时,

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:
ubuntu-session : Depends: gnome-session-bin (< 3.10) but
3.10.1-0ubuntu1~saucy1 is to be installed
Depends: gnome-session-common (= 3.9.90-0ubuntu12) but            
3.10.1-0ubuntu1~saucy1 is to be installed
E: Unable to correct problems, you have held broken packages.

我试过

sudo apt-get install -f

但它不起作用。

任何帮助都将不胜感激。谢谢。

答案1

简单的解决方案:

apt-get remove ubuntu-desktop gnome-session-*
apt-get update
apt-get install gdm gnome-session gnome-session-bin gnome-session-canberra gnome-session-common gnome-session-flashback gnome-shell-extensions nautilus-share ubuntu-desktop

答案2

请使用 aptitude,

sudo aptitude install -f ubuntu-session

它将安装 ubuntu-session 及其依赖项以及一些选项。

相关内容