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



我正试图在Windows subsytem for Linux(Ubuntu 14.04)上安装Oracle JDK 1.7,但我收到了以下错误:

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

Java的安装失败了,出现了大量错误:

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!

这是完整的日志:http://pastebin.com/gycBK1L9

我读到它可能与chroot和initscript有关,但我无法使其工作。

我需要JDK来在我的机器上编译Android。如有任何帮助,我们将不胜感激。

试试这个:

umount /proc
mount -t proc proc /proc

试着再次运行apt。

Windows中的ubuntu子系统正在测试/开发中,作为内部人员,您应该将反馈(我现在看到的是,它已经存在,有三个赞成票)留在Windows 10的反馈中心(这是您安装的应用程序)。

从我所看到的情况来看,ubuntu子系统中的/proc文件系统似乎是部分实现的,并且缺少一些条目。

最新更新