可以用 apt list '~c', sudo apt purge '~c'来列举和删除不需要的文件。
这里 "c"的意思是
c : The configuration files are still present on the disk eating up disk space.
也可以用
sudo dpkg --purge $(dpkg -l | grep '^rc' | awk '{print $2}')
删除。
这里的 'r'意思是:
r : The package is marked for removal or already removed.