我正在尝试卸载 wordpress,但遇到了以下问题。我使用了以下命令:
sudo apt-get remove wordpress
得到以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-4.4.0-92-generic : Depends: linux-image-4.4.0-92-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-92-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
wordpress-l10n : Depends: wordpress (= 4.4.2+dfsg-1ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
如何修复该问题并卸载 wordpress?
提前谢谢你的帮助。
答案1
第一次运行apt-get -f install
完成后,尝试再次卸载它:apt-get autoremove --purge wordpress
如果仍然失败,请运行sudo aptitude
以尝试找出问题所在。
另一个解决方案是执行完全强制移除,以移除所有阻碍物:sudo dpkg --remove --force-remove-reinstreq wordpress