Package that goes wrong is wesnoth-server.
Error message that throws as title indicates indeed does not help at all. I search around the internet and forums as I can. Some suggest to run 'apt-get clean,' which would clean /var/cache/apt/archives/ folders; others 'apt-get --purge <package-name>'. Unfortunately the message still sits there.
The error in fact comes from the script (/var/lib/dpkg/info/wesnoth-server.prerm) trying to stop the wesnoth-server first before reinstall the package; where it performs action `invoke-rc.d: initscript wesnoth-server, action "stop" failed.` that cause the error, in which it would either call wesnoth-server located in the /etc/init.d/wesnoth-server script or use start-stop-daemon to stop the server.
So the way to get around it is simply to mark out these two lines
- 代碼: 選擇全部
invoke-rc.d wesnoth-server stop || exit $?
- 代碼: 選擇全部
/etc/init.d/wesnoth-server stop || exit $?
in /var/lib/info/dpkg/info/wesnoth-server.prerm. Then the update/ upgrade should work as it were.
hope that helps,