用 bash on ubuntu on windows 安装 nginx 各种报错,什么问题呀 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kxjhlele
V2EX    问与答

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

  •  
  •   kxjhlele 2016-04-08 11:05:10 +08:00 4564 次点击
    这是一个创建于 3478 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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)
    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 好像无法正常使用,不知道是怎么回事。
    关于   &bsp; 帮助文档     自助推广系统     博客     API     FAQ     Solana     1210 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 25ms UTC 23:47 PVG 07:47 LAX 16:47 JFK 19:47
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86