-1

I am trying to install gnome-shell but it shows me an error:

$ sudo apt-get install gnome-shell

...

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:
 gnome_shell : Depends: gnome-settings-daemon (>= 3.4.0) but it is not going to be installed
               Recommends: gnome-control-center but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

OP's original screenshot


sudo apt-get update && sudo apt-get upgrade

enter image description here

sudo apt-get -f install

enter image description here

sudo apt-get install gnome-shell

enter image description here

From comments:

$ sudo apt-get install -f gnome-shell gnome-control-center gnome-settings-daemon
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gnome-settings-daemon : Depends: gnome-settings-daemon-schemas (= 3.12.2-0ubuntu1~trusty3) but 3.8.6.1-0ubuntu11.2 is to be installed
E: Unable to correct problems, you have held broken packages.
David Foerster
  • 36,264
  • 56
  • 94
  • 147

2 Answers2

0

Installation

Please do the following. Open up a terminal and start with:

sudo apt-get clean

followed by

sudo apt get update && sudo apt-get upgrade

If you got errors continue with

sudo apt-get -f install

Finally finish with

sudo apt-get install gnome-shell

Login to Gnome

I am assuming you are using lightdm

If that worked out, logout and choose 'Gnome' for the next login-session in the login-manager and login again.

enter image description here

dufte
  • 13,272
  • 5
  • 39
  • 43
  • :((. it doesn't work – Nhân Hoàng May 11 '16 at 11:04
  • 4
    @NhânHoàng: simply writing 'it doesnt work' doesn't help at all. Please tell us the output of each terminal command - otherwise its almost impossible to offer help. – dufte May 11 '16 at 11:07
  • The following information may help to resolve the situation:

    The following packages have unmet dependencies: gnome-shell : Depends: gnome-settings-daemon (>= 3.4.0) but it is not going to be installed Recommends: gnome-control-center but it is not going to be installed E: Unable to correct problems, you have held broken packages

    – Nhân Hoàng May 11 '16 at 11:10
  • 1
    Seems like you arent the first one with this problem - please check out this post: http://askubuntu.com/questions/577093/how-to-install-gnome-desktop – dufte May 11 '16 at 11:12
-1

Open up a terminal and run

sudo apt-get install gnome-shell gnome-control-center gnome-settings-daemon
dufte
  • 13,272
  • 5
  • 39
  • 43
Eofla
  • 189
  • 15
  • it does not work – Nhân Hoàng May 11 '16 at 10:49
  • 2
    @NhânHoàng please give us more information. what do you mean by 'it does not work'? The command above is correct - so what happens if you enter it? Any error-output. Please add those informations to your initial post – dufte May 11 '16 at 10:54
  • The following packages have unmet dependencies: gnome-settings-daemon : Depends: gnome-settings-daemon-schemas (= 3.12.2-0ubuntu1~trusty3) but 3.8.6.1-0ubuntu11.2 is to be installed E: Unable to correct problems, you have held broken packages. – Nhân Hoàng May 11 '16 at 10:56
  • Please [edit] your question, when you want to add information. Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it's best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. – David Foerster May 11 '16 at 11:48