root@cunix:/home/cunix# sudo apt-get remove fern-wifi-cracker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqt4-test libqt4-sql-mysql mysql-common libqt4-xmlpatterns libqt4-help
python-qt4 python-sip libqt4-sql-sqlite libqt4-sql macchanger
libqt4-designer libmysqlclient16 python-scapy libqt4-scripttools
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
fern-wifi-cracker
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 3,514kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 167661 files and directories currently installed.)
Removing fern-wifi-cracker ...
dpkg (subprocess): unable to execute installed pre-removal script (/var/lib/dpkg/info/fern-wifi-cracker.prerm): Exec format error
dpkg: error processing fern-wifi-cracker (--remove):
subprocess installed pre-removal script returned error exit status 2
Errors were encountered while processing:
fern-wifi-cracker
E: Sub-process /usr/bin/dpkg returned an error code (1)
如何卸载?
答案1
尝试运行:
echo -e '#!/bin/bash\nexit0' | sudo tee /var/lib/dpkg/info/fern-wifi-cracker.prerm
然后使用以下命令删除该包:
sudo apt-get purge fern-wifi-cracker
第一个命令将用永不失败的脚本替换预卸载脚本。
答案2
听起来这个程序的卸载脚本有问题。你可以尝试清除它,看看是否有效。否则,你需要付出很大努力才能清除它。
sudo apt-get purge fern-wifi-cracker
希望这可以帮助。
附言:另外,请先尝试重新启动,看看是否可以放松任何限制。