r00t@sleepless:~$ sudo apt-get remove tor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libevent1 tsocks
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
tor
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 1782kB disk space will be freed.
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
^[(Reading database ..100972 files and directories currently installed.)
Removing tor ...
Stopping tor daemon: There is no /var/run/tor directory.
invoke-rc.d: initscript tor, action "stop" failed.
dpkg: error processing tor (--remove):
subprocess pre-removal script returned error exit status 1
debian-tor uid check: ok
debian-tor homedir check: ok
chown: cannot access `/var/run/tor': No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tor
E: Sub-process /usr/bin/dpkg returned an error code (1)
r00t@sleepless:~$