0

i have a little problem with my icons on 12.04 :D I was installing an application from a tar-archieve but the icons for that special application were missing. So I looked up the tar again and found a subfolder /share/icons/48x48/ which sould (and thats the point, it should, but does not) fit into /usr/share/icons.

So i just ran

sudo cp -Rf ./share/icons /usr/share/

That worked for the particular application (MonoDevelop 4). But now, various icons are missing like Banshee, Software-Center, Audacity, Adoure, VLC and so on... (but not all, half of them are still in place!) I checked the permissions on /usr/share/icons and its all ok. What has gone wrong here and any ideas on how to fix this? Thnx ;)

0

1 Answer 1

2

My idea is to get the icons from the original ubuntu distribution CD. Here is the method for that.

In case you have the installation CD lying around just mount it and move to mounting the squash filesystem (step 2)

  1. If you have the ISO image for your Ubuntu distribution, mount it in a temporary location using:

    mkdir /tmp/isotemp; sudo mount -t iso9660 -o loop /path/to/ubuntu-<version>.iso /tmp/isotemp
    
  2. Next create another temporary location to mount the squash filesystem (located at ) image at and mount it.

    mkdir /tmp/squashfs; sudo mount -t squashfs -o loop /tmp/isotemp/casper/filesystem.squashfs /tmp/squashfs
    
  3. Copy over the missing or damaged icons. One way would be to just copy everything using:

    cp -fr /tmp/squashfs/usr/share/icons/* /usr/share/icons/
    

    But I prefer copying only stuff which has changed using rsync:

    rsync -rvt /tmp/squashfs/usr/share/icons/* /usr/share/icons/
    

This should restore your original icons. I'd also reccommend installing any 3rd party icons in your home folder ~/.icons/ and trying to see what went wrong there.

UPDATE:

Now the missing icons would be for the applications which install icons to /usr/share/icons when you install them but their icons are missing now. To find a list of all such applications and get the icons back you can use the script posted in this answer:

https://askubuntu.com/a/113228/142100

2
  • I did exactly that but that didn't solve it ... :/ might there be a problem with the file permissions?
    – marstato
    Aug 21, 2013 at 11:07
  • Updated the answer. It didn't occur to me that the specific applications with the missing icons wouldn't get their icons back if they don't come with the live CD. Now that I realize that the applications you are talking about probably don't exist on the live CD, their icons would also be missing. Listing them using the dpkg bash magic script and then using a force re-install for them should fix the issue :-) Aug 22, 2013 at 9:50

Not the answer you're looking for? Browse other questions tagged .