Solution
Run the following command
For webmin Pakage
dpkg --remove --force-remove-reinstreq webmin
You can replace webmin to any of your package name which is giving the error
上面所说的似乎和我的情况类似,但我执行dpkg --remove --force-remove-reinstreq adobe-flashplugin后依然让我崩溃。问题的原因是我在我的debian系统上安装了一个用于ubuntu系统的flashplugin的 deb包,导致了这个问题。
dpkg:警告:由于开启了 --force 选项,以下问题被忽略:该软件包现在的状态极为不妥 - 您最好能在删除它之前再重新安装一次。(正在读取数据库 ... 系统当前总共安装有 93095 个文件和目录。)正在删除 adobe-flashplugin ...update-alternatives: error: 无 iceape-flashplugin 的替换项。update-alternatives: error: 无 iceape-flashplugin 的替换项。dpkg:处理 adobe-flashplugin (--purge)时出错:子进程 已安装的 pre-removal 脚本 返回了错误号 2postinst called with argument `abort-remove'dpkg: 作下列清理工作时发生错误:子进程 已安装的 post-installation 脚本 返回了错误号 1在处理时有错误发生:adobe-flashplugin
终于在一个国外论坛上找到了解决方法
rm -rf /var/lib/dpkg/info/adobe-flashplugin*
然后在执行
sudo dpkg --remove --force-remove-reinstreq adobe-flashplugin