V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
kxjhlele
V2EX  ›  问与答

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

  •  
  •   kxjhlele · 2016-04-08 11:05:10 +08:00 · 3738 次点击
    这是一个创建于 2316 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [email protected]:~# 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)
    2 条回复    2016-11-01 11:29:08 +08:00
    Muninn
        1
    Muninn  
       2016-04-12 13:09:51 +08:00
    我的一样。。。现在完全找不到资料 找不到地方讨论

    我发现 fstab 只有一个 root

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

    这里可能会有问题。
    pudding
        2
    pudding  
       2016-11-01 11:29:08 +08:00
    cmd 用 超级管理员打开 nginx 才能安装成功,但是 运行还是有问题。我也没有解决, ifconfig 好像无法正常使用,不知道是怎么回事。
    关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   1099 人在线   最高记录 5497   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 21:21 · PVG 05:21 · LAX 14:21 · JFK 17:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.