Can anyone help me with this?

I tried to install dnscrypt-proxy and after i installed it this happen.

o@o:~$ sudo apt-get install gparted
Reading package lists... Done
Building dependency tree
Reading state information... Done
gparted is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up dnscrypt-proxy (1.6.0-3pmo1~vivid) ...
Failed to start 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 "start" 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)

Edit: im new on linux. I install ubuntu on my disk 1 week ago.

type this on a terminal: systemctl status dnscrypt-proxy.service If you get something along this lines

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.

Then it's a bug. You'd have to wait for the developer to fix it.
In the meantime remove the package.

  1. Check the file /var/lib/dpkg/info/dnscrypt-proxy.prerm, the pre-removal script and search for the command to stop the service, something like service … stop. Comment the lines out and try it again.
  2. sudo apt-get purge dnscrypt-proxy

Hi

Dont know this program, but maybe its possible to install and update by adding this untrusted PPA into your software sources:

ppa:xuzhen666/dnscrypt

Taken from:

https://launchpad.net/~xuzhen666/+archive/ubuntu/dnscrypt

Or take spidernet´s advice, he may know better

Im also somewhat new to Linux

Did you use this (https://launchpad.net/~anton+/+archive/ubuntu/dnscrypt) PPA? If so remove the package, turns out it's outdated, use https://launchpad.net/~xuzhen666/+archive/ubuntu/dnscrypt instead (the one @Bruger mentioned)

yes i use the first PPA

@spidernet
About the pre-removal script i cant find it.

I used invoke-rc.d dnscrypt-proxy stop

and i got Failed to stop dnscrypt-proxy.service: Unit dnscrypt-proxy.service not loaded. invoke-rc.d: initscript dnscrypt proxy, action "stop" failed.

It's under /var/lib/dpkg/info/dnscrypt-proxy.prerm if it's not there, just remove the package: sudo apt-get purge dnscrypt-proxy and delete the PPA.

1 Like

its not there and when i type sudo apt-get purge dnscrypt-proxy i get the same response as before

try service dnscrypt-proxy stop

@spidernet
Failed to stop dnscrypt-proxy.service: Unit dnscrypt-proxy.service not loaded

--___--

Edit: i think i fixed it. i run a command from another file and now i dont see this messages. xD

Is the old PPA still there?

Try looking in your distros update manager, remove it from there and update with the new PPA

It may update or upgrade your packages that way

i remove the PPA hours ago. Anyway thanks guys now its ok. :)

1 Like

It just fixed it by itself?! Maaaagic :D

1 Like

More Linux Magix! =D

I see what you did there :D

1 Like