how to clean all the caches of ubuntu code example Example 1: remove all cache ubuntu $ sudo apt-get clean Example 2: how to clear all the caches in ubuntu sudo apt-get clean