1、删除软件
sudo apt-get remove --purge 软件名称
sudo apt-get autoremove --purge 软件名称
如果不知道要删除软件的具体名称,可以使用
dpkg --get-selections | grep ‘软件相关名称’
强制卸载
卸载时问题: package is in a very bad inconsistent state; you should reinstall it before attempting configuration, 而又无法重新安装
sudo dpkg --remove --force-remove-reinstreq 软件名称
清理残留数据
dpkg -l |grep ^rc|awk ‘{print $2}’ |sudo xargs dpkg -P