Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was following the How do I install the Cinnamon Desktop?, but when i install, it like this

locahost@locahost:~$ sudo apt-get install cinnamon
Reading package lists... Done
Building dependency tree
Reading state information... Done
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-
E: Unable to correct problems, you have held broken packages.

How can i install the libgjs0- package?

share|improve this question
Do you have JAVA installed? – Mitch Jun 12 '12 at 7:32
(Per your link.) Did you first type: sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable ; and then: sudo apt-get update ? – david6 Jun 12 '12 at 7:48
Already have those – Kin. Jun 12 '12 at 8:40

3 Answers

The problem occurs after running dist-upgrade for GNOME, since the package was changed from libgjs0b to libgjs0c and cinnamon requires libgjs0b to be installed.

share|improve this answer
And how can i install that package? – Kin. Jun 16 '12 at 16:28

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo apt-get install --fix-broken
sudo apt-get autoclean
sudo apt-get autoremove

Once that's done, run:

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

You could also try

sudo apt-get --purge autoremove cinnamon 

Here are the steps to install Cinnamon, in case needed or for verification.

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon
share|improve this answer
Thanks, I ran the command you gave, but it made no difference. When I try to install Cinnamon I get the same error as before. – Kin. Jun 12 '12 at 7:22
I'm going to try to install it now. – Mitch Jun 12 '12 at 7:24
Just tried it, and it works. No problems. – Mitch Jun 12 '12 at 7:31
Nah, i still can't install after ran those command :( – Kin. Jun 12 '12 at 8:41
Do you have JAVA installed? – Mitch Jun 12 '12 at 8:42
show 2 more comments

A solution is to downgrade libgjs0c to version 1.32.0-1ubuntu1. Using Synaptic (Package -> force version) I was able to do this. Then you can install Cinnamon.

Running updates after that tends to trigger the uninstall of Cinnamon, so you need to be careful with that.

share|improve this answer
Since just not updating is not a good solution, you may want to edit this answer to explain how to use pinning to prevent Cinnamon from being upgraded when updates are installed for the rest of the system. – Eliah Kagan Jun 18 '12 at 11:06
Thanks, I was not aware of the pinning mechanism. My solution so far (to prevent Cinnamon from being uninstalled and still get updates for other packages) is to manually select packages to update, and make sure that this does not trigger the uninstallation of Cinnamon (as Synaptic informs you about this before you actually run the update). If it does, don't upgrade the package. So far that has worked. – utnubu_user Jun 18 '12 at 11:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.