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

old*_*ear 8 bash ubuntu windows-10-preview

使用支持“Bash on Ubuntu on Windows”的新 Windows 测试版运行 Ubuntu 14.04.4 LTS 版本 (Trusty)。我在运行需要新贵的服务时遇到问题。IE:

[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 守护程序本身的任何信息。

感谢您提前提供任何帮助。

小智 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
Run Code Online (Sandbox Code Playgroud)

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

对 udev apt 更新问题的修复正在传送到飞行分支。当修复到达分支新子系统安装将不再有此问题。