I tried to get dnscrypt-proxy working from this PPA: https://launchpad.net/~anton+/+archive/ubuntu/dnscrypt
EDIT: this PPA is outdated, and the correct one to use is https://launchpad.net/~xuzhen666/+archive/ubuntu/dnscrypt
After installing, it complains about upstart not being available.
➜ ~ sudo apt-get -f install
Setting up dnscrypt-proxy (1.6.0-3pmo1~vivid) ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'dnscrypt-proxy' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `dnscrypt-proxy'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `dnscrypt-proxy'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
Failed to restart dnscrypt-proxy.service: Unit dnscrypt-proxy.service failed to load: Invalid argument. See system logs and 'systemctl status dnscrypt-proxy.service' for details.
invoke-rc.d: initscript dnscrypt-proxy, action "restart" failed.
dpkg: error processing package dnscrypt-proxy (--configure):
subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
dnscrypt-proxy
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'd rather not switch back to upstart if not needed. Do I have to wait on the package maintainer to update the package for systemd?
I cannot remove the package with dpkg or apt-get because it tries to shut down the service and fails with similar errors.
Removing dnscrypt-proxy (1.6.0-3pmo1~vivid) ...
Failed to stop dnscrypt-proxy.service: Unit dnscrypt-proxy.service not loaded.
invoke-rc.d: initscript dnscrypt-proxy, action "stop" failed.
dpkg: error processing package dnscrypt-proxy (--remove):
subprocess installed pre-removal script returned error exit status 5
...
Running the command shown in the error log above:
~ systemctl status dnscrypt-proxy.service
dnscrypt-proxy.service - DNSCrypt proxy
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Docs: man:dnscrypt-proxy(8)
systemd[1]: dnscrypt-proxy.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.