dpkg: error: duplicate file trigger interest for filename `/usr/share/icons/hicolor' and package `hicolor-icon-theme'

Solution 1:

Notice the first and last lines of /var/lib/dpkg/triggers/File are duplicates (both contain the same about hicolor). Try removing one of the lines (leaving the other!):

sudo gedit /var/lib/dpkg/triggers/File

then save it. Then try installing/removing software again.

You might also want to run sudo apt-get clean, since apt-get might have cached the packages that failed to install.

Solution 2:

You could try it with re-set the file-attributes by :

chmod 755 /usr/share/icons/hicolor && chmod 755 /usr/share/icons/hicolor/*

Then reboot your machine and check if this helped or if problems stay the same.

If problem stay the same then :

apt-get install --reinstall dpkg*

then :

dpkg --purge hicolor-icon-theme

after that install it again :

dpkg -i hicolor-icon-theme

Yes, I know, this looks trivial, but often it is only a read-write-error of installed packages resp. a matter of file-attributes.