You can clears out the local repository of retrieved package files to get back disk space on your #Debian / #Ubuntu #Linux system. Just run
sudo apt-get clean
# OR
sudo apt-get autoclean
The difference between 'clean' and `autoclean` is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. https://www.cyberciti.biz/faq/howto-remove-all-rc-packages-on-debian-ubuntu-linux-apt-get/