update-icon-caches command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
update-icon-caches: command not found
or when using sudo you get the following error message
sudo: update-icon-caches: command not found
Solutions to update-icon-caches: command not found
How To Fix update-icon-caches: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu update-icon-caches is provided by gtk-update-icon-cache package.
gtk-update-icon-cache is:
gtk-update-icon-cache creates mmap()able cache files for icon themes.
GTK can use the cache files created by gtk-update-icon-cache to avoid a lot of system call and disk seek overhead when the application starts. Since the format of the cache files allows them to be mmap()ed shared between multiple applications, the overall memory consumption is reduced as well.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gtk-update-icon-cache
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gtk-update-icon-cache.
sudo apt -y install gtk-update-icon-cache
Or if you have aptitude installed you can use the following command.
sudo aptitude install gtk-update-icon-cache
Summary
In this tutorial we learn how to fix update-icon-caches command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.