Ocean Mist

12 Jan 2008

Particularly nasty icon bug

Posted by astromme

I decided to update my Laptop (Thinkpad X61t) to hardy development. I was already running kde4 from svn, and so it didn’t seem like I could break too much.

The upgrade was going great until almost the very end. I suddenly got a lot of failed packages (about 50), all complaining that “The generated cache was invalid”. I figured it was nothing that an ‘apt-get update’, ‘apt-get upgrade’ couldn’t fix, and so I didn’t worry about it. Later on, I tried to install some software. FAIL. I couldn’t install anything without oo.org failing on the same error…

I’ll spare you the details of my efforts to fix apt… but that wasn’t even where the problem was!

It turns out that gtk-update-icon-cache was failing due to some invalid images. Well, it turned out that they weren’t invalid images at all. If icons are placed directly in ‘/usr/share/icons/hicolor’ (or any /usr/share/icons/ subdir) updating the icon cache will throw the “The Generated cache was invalid” error. Autopackage was installing both its own icon and all of the icons for the packages it installed (just SMART-tools for me for a smartboard) in the wrong place, generating the cache.

And now I’m doing the boring ‘sudo dpkg-reconfigure –all’ Bah!

Subscribe to Comments

2 Responses to “Particularly nasty icon bug”

  1. Hi Andrew,

    First of all (and very late) I would like to personally thank you for setting up the alternative repo for canola2, we were really happy because we couldn’t do it without the managers blessing and all those balblalba.

    But whatever =) moving on… I was wondering if you could send me the amount of people that downloaded the application. I’m trying to compile this data, but is rather complicated because the repository didn’t work for quite a long time : /

    Hope to hear from you…
    thanks in advance,

    Marcelo

     

    Marcelo

  2. Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

     

    sandrar

Leave a Reply

Message: