Install deborphan. Sudo apt-get install deborphan
Run deborphan -- show-section -- show-priority -- show-size or run $ deborphan-sPz to check whether there are any unnecessary libraries. Delete useless library files: sudo apt-get remove -- purge 'descriphany' (clear unnecessary libraries in the system)
After using debian for a period of time, if you install or remove software frequently, the residual library will be in the system, because when you install the software, debian installs additional libraries according to the dependency of the software. However, when you remove the software, the libraries that were installed together may not be removed. Over time, the system will have residual libraries, in this case, you can run this command to clear useless libraries in the system and ensure the cleanliness of the system.
[Kali_Debian] clears useless library files (for cleanup systems and for cleanup purposes)