stewartm82
July 17th, 2009, 05:37 PM
Hi I am getting the following error when trying to uninstall nginx. Any suggestions as to how I might fix it. I am out of ideas.
stewart@stewart:/var/cache/apt/archives$ sudo apt-get remove nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nginx
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 676kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 33726 files and directories currently installed.)
Removing nginx ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: error processing nginx (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
stewart@stewart:/var/cache/apt/archives$ sudo apt-get remove nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nginx
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 676kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 33726 files and directories currently installed.)
Removing nginx ...
Stopping nginx: invoke-rc.d: initscript nginx, action "stop" failed.
dpkg: error processing nginx (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)