用 bash on ubuntu on windows 安装 nginx 各种报错,什么问题呀

2016-04-08 11:05:10 +08:00
 kxjhlele
root@localhost:~# apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nginx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 639 kB of archives.
After this operation, 2,385 kB of additional disk space will be used.
Get:1 http://nginx.org/packages/mainline/ubuntu/ trusty/nginx nginx amd64 1.9.14-1~trusty [639 kB]
Fetched 639 kB in 8s (78.1 kB/s)
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Selecting previously unselected package nginx.
(Reading database ... 25850 files and directories currently installed.)
Preparing to unpack .../nginx_1.9.14-1~trusty_amd64.deb ...
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------
Unpacking nginx (1.9.14-1~trusty) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up udev (204-5ubuntu20.19) ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: No such file or directory
* udev requires devtmpfs support, not started
...fail!
invoke-rc.d: initscript udev, action "restart" failed.
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of systemd-services:
systemd-services depends on udev (>= 175-0ubuntu23); however:
Package udev is not configured yet.

dpkg: error processing package systemd-services (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-systemd:amd64:
libpam-systemd:amd64 depends on systemd-services (= 204-5ubuntu20.19); however:No apport report written because the error message indicates its a followup error from a previous failure.

Package systemd-services is not configured yet.

dpkg: error processing package libpam-systemd:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on udev (>= 147~-5); however:No apport report written because the error message indicates its a followup error from a previous failure.
Package udev is not configured yet.


dpkg: error processing package initramfs-tools (--configure):
dependency problems - leaving unconfigured
Setting up nginx (1.9.14-1~trusty) ...
No apport report written because MaxReports is reached already
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: No such file or directory
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
udev
systemd-services
libpam-systemd:amd64
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
4211 次点击
所在节点    问与答
2 条回复
Muninn
2016-04-12 13:09:51 +08:00
我的一样。。。现在完全找不到资料 找不到地方讨论

我发现 fstab 只有一个 root

于是 var run 都不是用的临时文件系统

这里可能会有问题。
pudding
2016-11-01 11:29:08 +08:00
cmd 用 超级管理员打开 nginx 才能安装成功,但是 运行还是有问题。我也没有解决, ifconfig 好像无法正常使用,不知道是怎么回事。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/269483

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX