I'm trying to upgrade packages, every time I ran sudo apt-get upgrade
process freezes at setting up dnscrypt-proxy:
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up dnscrypt-proxy (1.4.0-0~oldconf2+trusty1) ...
Then I have to kill apt-get
, rm /var/lib/dpkg/lock
.
I also tried removing package.
I had same issue which resolved by following:
sudo lsof -i
which returned me opened ports like below:Last two lines say dnscrypt is alive by PID#816
sudo kill 816
killed it.sudo apt-get remove dnscrypt-proxy
is now free to remove package with no frezze!May be you should use the Ubuntu packages from my PPA as I usually provide the latest available version :
https://launchpad.net/~anton+/+archive/ubuntu/dnscrypt
Explanations on how to use it are in more recent webupd8 article :
Encrypt DNS Traffic In Ubuntu With DNSCrypt [Ubuntu PPA]