E: Sub-process /usr/bin/dpkg returned an error code (1)
I try to remove wesnoth-server package by using 'apt-get remove wesnoth-server'; but it fails. Then I searched on the forum regarding to this error message. Many people suggest either use apt-get -f install or dpkg --force-overwrite to eliminate this error; unfortunately, none of them work on my case.
when invoking the apt-get -f install it generates error Code:
invoke-rc.d: initscript wesnoth-server, action "stop" failed I appreciate any suggestion. Thank you very much. |
Quote:
I think I found a solution (though might not be a good way). The problem cause this is error is from the place I am doubt of it. Because the installation calls the script wesnoth-server.prerm, located in the /var/lib/dpkg/info, to stop the wesnoth server first, in which the start-stop-daemon does not exists (no idea why). First I forcly install dpkg by extracting package and copy files to appropriate location (/sbin/start-stop-daemon), but it did not work. So I mark up the script which calls 'invokerc.d ...' and '/init.d/wesnoth-server' in wesnoth-server.prerm. Then do `apt-get remove wesnoth-server` again. Then this package is removed correctly. |
All times are GMT -5. The time now is 03:50 PM. |