我试着用这个PPA:https://launchpad.net/~anton+/+archive/ubuntu/dnscrypt让dnscrypt代理工作。
编辑:这个PPA已经过时了,正确使用的是https://launchpad.net/~xuzhen666/+archive/ubuntu/dnscrypt。
安装完毕后,它会抱怨upstart不可用。
➜ ~ 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)如果不需要的话,我宁愿不换回新贵。我是否必须等待包维护人员来更新systemd的包?
我不能用dpkg或apt删除包,因为它试图关闭服务,并出现类似的错误失败。
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
...运行上面错误日志中显示的命令:
~ 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.发布于 2015-08-12 14:39:33
似乎是个bug,你应该问问开发人员。同时移除包裹。
/var/lib/dpkg/info/dnscrypt-proxy.prerm、预删除脚本并搜索停止服务的命令,任何类似于service … stop的命令。注释掉这些行,然后再试一次。我稍后会在家里检查这个问题,以便给出更好的解释。sudo apt-get purge dnscrypt-proxy发布于 2015-08-13 19:22:35
你可以试试这个:
sudo apt-get install linux-efi-amd64_ linux-efi
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install -f
sudo apt-get install linux-efi然后这个:
sudo -i
mkdir /com/upstart
sudo nano /com/upstart/upstart然后写这个:
[default]
plymouth-upstart-bridge=default这样可能会很好。
https://askubuntu.com/questions/660581
复制相似问题