首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在系统安装中使用upstart的生动的损坏包

在系统安装中使用upstart的生动的损坏包
EN

Ask Ubuntu用户
提问于 2015-08-12 13:52:16
回答 2查看 1.1K关注 0票数 2

我试着用这个PPA:https://launchpad.net/~anton+/+archive/ubuntu/dnscrypt让dnscrypt代理工作。

编辑:这个PPA已经过时了,正确使用的是https://launchpad.net/~xuzhen666/+archive/ubuntu/dnscrypt

安装完毕后,它会抱怨upstart不可用。

代码语言:javascript
复制
➜  ~  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删除包,因为它试图关闭服务,并出现类似的错误失败。

代码语言:javascript
复制
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
...

运行上面错误日志中显示的命令:

代码语言:javascript
复制
~ 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.
EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2015-08-12 14:39:33

似乎是个bug,你应该问问开发人员。同时移除包裹。

  1. 检查文件/var/lib/dpkg/info/dnscrypt-proxy.prerm、预删除脚本并搜索停止服务的命令,任何类似于service … stop的命令。注释掉这些行,然后再试一次。我稍后会在家里检查这个问题,以便给出更好的解释。
  2. sudo apt-get purge dnscrypt-proxy
票数 2
EN

Ask Ubuntu用户

发布于 2015-08-13 19:22:35

你可以试试这个:

代码语言:javascript
复制
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

然后这个:

代码语言:javascript
复制
sudo -i
mkdir /com/upstart
sudo nano /com/upstart/upstart

然后写这个:

代码语言:javascript
复制
[default]
plymouth-upstart-bridge=default

这样可能会很好。

票数 -2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/660581

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档