How do I clean the aptitude command cache under Ubuntu or Debian Linux?
To aptitude command provides the following two options to clean its cache which is usually stored in /var/cache/apt/archives directory. Open the terminal and type the command:
$ apt-get aptitude clean
The above will remove all previously downloaded .deb files from the package cache. The following command Removes any cached packages which can no longer be downloaded. This allows you to prevent a cache from growing out of control over time without completely emptying it:
$ apt-get aptitude autoclean
You can also use GUI tool called Synaptic. It offers an option to delete and clean the cache. Start Synaptic and click on Settings > Preferences > Files > Clear cache.