If you try to install Tor in Ubuntu Gutsy you will get this error:
Unpacking replacement tor ... Setting up tor (0.1.2.17-1) ... /var/lib/dpkg/info/tor.postinst: 39: adduser: not found dpkg: error processing tor (--install): subprocess post-installation script returned error exit status 127
Even if you compile Tor manually, you will get the same error. Obviouslly, adduser is somehow missing and apt-get hasn’t noticed.
The fix
- Remove your broken tor and privoxy installations:
$ sudo apt-get remove tor privoxy - Manually install Install adduser. Download it from here for Gutsy and install it:
$ sudo dpkg -i adduser*.deb. - Install tor and privoxy:
$ sudo apt-get install tor privoxy
The same applies to Privoxy.