sudo aptitude remove thttpd Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following packages have been automatically kept back: irb1.8 libopenssl-ruby1.8 libreadline-ruby1.8 rdoc1.8 ri1.8 The following packages will be REMOVED: thttpd 0 packages upgraded, 0 newly installed, 1 to remove and 5 not upgraded. Need to get 0B of archives. After unpacking 221kB will be freed. Writing extended state information... Done (Reading database ... 63703 files and directories currently installed.) Removing thttpd ... Stopping web server: kill: 60: No such process dpkg: error processing thttpd (--remove): subprocess pre-removal script returned error exit status 1 Errors were encountered while processing: thttpd E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: