Cairo problem running gnome-desktop in oneric

Asked by Rupert on 2011-10-17

When I upgraded to Oneric Ocelot it had a problem with "cheese" and when I rebooted, I was stuck at the "Checking battery state..." point. I tried all of the (reasonable) solutions I could find and eventually resorted to installing KDE instead of Gnome. I hate KDE but when I try to install gnome, I get the following errors:
 Errors were encountered while processing:
 libclutter-imcontext-0.1-0
 libmx-1.0-2
 libcheese-gtk20
 cheese
 gnome
 gnome-desktop-environment
E: Sub-process /usr/bin/dpkg returned an error code (1)

My next step:
$ sudo apt-get install --reinstall libclutter-imcontext-0.1-0

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libclutter-imcontext-0.1-0 (0.1.4-2) ...
clutter-scan-immodules: symbol lookup error: /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2: undefined symbol: cairo_device_destroy
dpkg: error processing libclutter-imcontext-0.1-0 (--configure):
 subprocess installed post-installation script returned error exit status 127

I also got the following error when trying to run firefox in KDE:
/usr/lib/firefox-7.0.1/firefox: symbol lookup error: /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so: undefined symbol: cairo_surface_create_for_rectangle

My next step is to reinstall the cairo-gobject library:
sudo apt-get install --reinstall libcairo-gobject2
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 20.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libcairo-gobject2 amd64 1.10.2-6ubuntu3 [20.7 kB]
Fetched 20.7 kB in 0s (30.4 kB/s)
(Reading database ... 389829 files and directories currently installed.)
Preparing to replace libcairo-gobject2 1.10.2-6ubuntu3 (using .../libcairo-gobject2_1.10.2-6ubuntu3_amd64.deb) ...
Unpacking replacement libcairo-gobject2 ...
Setting up libclutter-imcontext-0.1-0 (0.1.4-2) ...
clutter-scan-immodules: symbol lookup error: /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2: undefined symbol: cairo_device_destroy
dpkg: error processing libclutter-imcontext-0.1-0 (--configure):
 subprocess installed post-installation script returned error exit status 127

Any suggestions ? - I just want to get Gnome Desktop back !

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu cairo-dock Edit question
Assignee:
No assignee Edit question
Solved by:
Rupert
Solved:
2011-10-17
Last query:
2011-10-17
Last reply:
Rupert (rupert-everweb) said : #1

...that should read Oneiric Ocelot...

Rupert (rupert-everweb) said : #2

Progress... I downloaded sources for cairo (from the git repository) and compiled and installed it
Then:
$ sudo apt-get install cheese

Reading package lists... Done
Building dependency tree
Reading state information... Done
cheese is already the newest version.
cheese set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up libclutter-imcontext-0.1-0 (0.1.4-2) ...
Setting up libmx-1.0-2 (1.2.0-1ubuntu1) ...
Setting up libcheese-gtk20 (3.2.0-0ubuntu2) ...
Setting up cheese (3.2.0-0ubuntu2) ...
Setting up gnome (1:3.0+1ubuntu1) ...
Setting up gnome-desktop-environment (1:3.0+1ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Rupert (rupert-everweb) said : #3

firefox also starts without error after installing the hand-built cairo

Rupert (rupert-everweb) said : #4

OK - Gnome is back !

Rupert (rupert-everweb) said : #5

Quoting "marcobra \(Marco Braida\)" <email address hidden>:

> Your question #174991 on cairo-dock in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/cairo-dock/+question/174991
>
> Project: Ubuntu => cairo-dock in Ubuntu
>
> --
> You received this question notification because you asked the question.
>

You've tagged this as cairo-dock but I was merely trying to upgrade
Ubuntu to 11.10 and my preferred environment was Gnome. Cairo is a
dependency for Gnome. It looks to me like a broken repository because
the cairo I got from the repository did not work but the hand-built
cairo did work.