安装JDK时出错:keytool命令需要安装proc fs(/ proc)。适用于Linux的Windows子系统 [英] Error installing JDK: the keytool command requires a mounted proc fs (/proc). Windows subsystem for Linux

查看:675
本文介绍了安装JDK时出错:keytool命令需要安装proc fs(/ proc)。适用于Linux的Windows子系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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).

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

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!

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

我读过可能它与chroot和initscripts有关但我无法让它工作。

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

我需要JDK才能在我的机器上编译Android。任何帮助都将得到很好的赞赏。

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

推荐答案

试试这个:

umount /proc
mount -t proc proc /proc

再次尝试运行apt。

这篇关于安装JDK时出错:keytool命令需要安装proc fs(/ proc)。适用于Linux的Windows子系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆