sudo apt autoremove
sudo apt clean
sudo apt autoclean
uname -a
dpkg --get-selections | grep linux
sudo apt remove linux-image-xxx-generic
sudo apt remove linux-headers-xxx
sudo apt remove linux-headers-xxx-generic
sudo apt remove linux-modules-xxx-generic
sudo apt remove linux-modules-extra-xxx-generic
# 只要中间有对应的版本号 xxx 都可以移除
【注】Linux系统中诸如 /var/log/journal
、~/.cache
、/tmp
文件夹中也有许多可以删除的文件,可以看个人需要进行清理;但要注意许多 log、chk 文件对分析解决系统问题都很有帮助,建议在空间资源不紧缺的情况下还是保留为好。