use apt clean instead of removing all the dpkg content
It makes impossible to run apt after, which can make the debugging complicated if some packages need to be added during a debug session