linux java keytool,安装JDK时出错:keytool命令需要安装proc fs(/ proc)。适用于Linux的Windows子系统...

I am trying to install Oracle JDK 1.7 on Windows subsytem for Linux (Ubuntu 14.04) and I get the following error:

the keytool command requires a mounted proc fs (/proc).

And the installation of Java fails with tons of errors:

the keytool command requires a mounted proc fs (/proc).

dpkg: error processing package ca-certificates-java (--configure):

subprocess installed post-installation script returned error exit status 1

dpkg: dependency problems prevent configuration of openjdk-6-jre-headless:amd64:

openjdk-6-jre-headless:amd64 depends on ca-certificates-java; however:

Package ca-certificates-java is not configured yet.

dpkg: error processing package openjdk-6-jre-headless:amd64 (--configure):

dependency problems - leaving unconfigured

Setting up udev (204-5ubuntu20.19) ...

No apport report written because the error message indicates its a followup error from a previous failure.

/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found

* udev requires devtmpfs support, not started

...fail!

I have read that maybe it is related with the chroot and the initscripts but I can't get it working.

I need JDK in order to compile Android on my machine. Any help will be hightly appreciated.

解决方案

Try this:

umount /proc

mount -t proc proc /proc

And try running apt again.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值