Windows上的Ubuntu上的Bash(10)-无法连接到Upstart


8

使用具有“ Windows上的Ubuntu上的Bash”支持的新Windows Beta发行版运行Ubuntu 14.04.4 LTS发行版(Trusty)。我在运行需要新贵的服务时遇到问题。即:

[15:08 root@localhost ~] > start ttyS0 [15:08 root@localhost ~] > start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: No such file or directory.

看起来新贵守护进程根本没有运行。我已经检查了upstart / var / log / upstart /的日志文件位置,尽管/ etc / init /中有许多upstart配置文件,但那里没有文件。我一直找不到有关如何手动启动/重新启动upstart守护程序本身的任何信息。

感谢您的任何提前帮助。

Answers:


15

这已经讨论过了。这是一个已知问题Canonical建议的快速修复程序将运行:

cat > /usr/sbin/policy-rc.d <<EOF
#!/bin/sh
exit 101
EOF
chmod +x /usr/sbin/policy-rc.d
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl

真正的修复程序可用,但尚未发布到Fast Ring:

udev apt更新问题的修复程序正在到达排期分支。当修复程序到达分支时,新子系统安装将不再出现此问题。


这只会删除与使用upstart / initctl相关的错误消息。鉴于将来微软会提供真正的修复程序,在此之前没有修复程序可供使用,我将说这是对我的问题的最佳答案。感谢您的脚步。
oldyear '16

1

这就是它所说的。新贵不存在。Windows 10具有bash和Ubuntu的某些其他部分。他们从未对Upstart说过任何话。


askubuntu.com/questions/554377/… 该线程表明该版本的ubuntu不随新贵一起提供。我不知道为什么initctl试图使用upstart,因为是这种情况。
oldyear

是的,我想这是合理的,但是它肯定会限制您将获得的许多功能。您能否提出解决方法,也许是手动安装?
Nick Felker

我没用过 Win10更新使我的Win无法启动一半,而我刚刚将Ubuntu 15.10与KDE一起使用。
Duncan X Simpson
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.