Gnome 3 Screenshot

Sub-process /usr/bin/dpkg returned an error code(1)

While messing around with Ubuntu 11.04, I decided to give Gnome 3 a try.  It failed, and a bunch of stuff stopped working.  So I uninstalled it.  After that mess I couldn’t install any new packages.  Why? Simply because the gnome-icon-theme pack was not installed correctly.

Here’s a brief of the error message:

Setting up libgtk2-ruby1.8 (0.19.3-2ubuntu1) …
Setting up libgtk2-ruby (0.19.3-2ubuntu1) …
Setting up rbbr (0.6.0-3ubuntu1) …
Errors were encountered while processing:
gnome-icon-theme
empathy
evince
evolution
evolution-exchange
gnome-control-center
Setting up gnome-icon-theme (2.31.0-0ubuntu2) …
update-alternatives: error: alternative path /usr/share/icons/gnome/scalable/places/ubuntu-logo.svg doesn’t exist.
dpkg: error processing gnome-icon-theme (–configure):

Missing Images

Looks like some images were not reinstalled during the rollback.  Here’s a link to the resource:

http://www.parsix.org/browser/pkg/vinnie/main/gnome-icon-theme/trunk/debian?rev=6662

Copy the all the .svg files into the /usr/share/icons/gnome/scalable/places/ path, run:

sudo apt-get clean all
sudo apt-get update

Then to verify everything is working correctly:

sudo apt-get install -f

Hope it helps!

2 thoughts on “Sub-process /usr/bin/dpkg returned an error code(1)

  1. al cole

    Very helpful indeed! I also wanted to try GNOME 3 in natty, but only managed to mess up everything. After purging the bad ppa, things were back to normal, apart from that bunch of little icons that breaks the package manager…

    thanks a lot for providing a solution!

    Reply
  2. Ernesto

    Thank You!! I tried gnome-3, didn’t liked and did:
    sudo apt-get install ppa-purge
    sudo ppa-purge ppa:gnome3-team/gnome3

    to come back to gnome2 but after that, evince was not working.

    Now everything is fine!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *