在 kubuntu 中安装 gnome 桌面

在 kubuntu 中安装 gnome 桌面

我正在尝试从 kubuntu 安装 gnome 桌面。所以我这样做了:sudo apt-get install ubuntu-desktop它运行良好,但现在我收到此错误:

sudeep@sudeep:~$ sudo apt-get install ubuntu-desktop 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ubuntu-desktop is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 firefox-globalmenu : Depends: firefox (= 20.0+build1-0ubuntu0.12.10.3) but it is not going to be installed
 firefox-gnome-support : Depends: firefox but it is not going to be installed
 lightdm-remote-session-uccsconfigure : Depends: firefox but it is not going to be installed
 xul-ext-websites-integration : Depends: firefox (>= 9.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

编辑 sudo apt-get -f install ubuntu-desktop

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  firefox
Suggested packages:
  latex-xft-fonts
The following NEW packages will be installed:
  firefox
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
509 not fully installed or removed.
Need to get 0 B/24.5 MB of archives.
After this operation, 51.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 239358 files and directories currently installed.)
Unpacking firefox (from .../firefox_20.0+build1-0ubuntu0.12.10.3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/firefox_20.0+build1-0ubuntu0.12.10.3_i386.deb (--unpack):
 trying to overwrite '/usr/share/applications/firefox.desktop', which is also in package kubuntu-firefox-installer 12.04ubuntu1
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/firefox_20.0+build1-0ubuntu0.12.10.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮我改正这个问题。

答案1

您运行的第一个命令是正确的!

它表明ubuntu-desktop已经安装 - 您需要在 Kubuntu 登录屏幕上选择它。

答案2

移除包装kubuntu-firefox-installer

答案3

检查您是否启用了 Universe 和 Multiverse 存储库。

$ su -
# nano /etc/apt/sources.list

Xubuntu 12.04 的示例输出非常精确,请确保这些行未注释,并且具有正确的发布名称。

Ubuntu 10.04 lucid
Ubuntu 12.04 precise
Ubuntu 12.10 quantal
Ubuntu 13.04 raring

deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

确保您已在 /etc/apt/sources.list 中启用 Universe 和 Multiverse 存储库后,我们现在可以安装 gnome。

# apt-get update
# apt-get install ubuntu-desktop

ubuntu-desktop 软件包将安装完整的 gnome 桌面附加软件,如 firefox、libreoffice、rhythmbox。如果您只想要干净的 gnome 桌面环境而不想要这些软件,您可以运行此命令。

# apt-get update
# apt-get install ubuntu-desktop --without-recommends

这个对我有用http://namhuy.net/1584/how-to-install-gui-on-ubuntu-and-linux-mint.html

相关内容