Error installing JDK: the keytool command requires a mounted proc fs (/proc). Windows subsystem for Linux

匿名 (未验证) 提交于 2019-12-03 09:06:55

问题:

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! 

This is the full log: http://pastebin.com/gycBK1L9

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.

回答1:

Try this:

umount /proc mount -t proc proc /proc 

And try running apt again.



回答2:

The ubuntu subsystem in Windows is in beta/development, and as an insider you should leave the feedback (where it already exists with three upvotes as i look now) in the Feedback Hub in Windows 10 (it's an app you have installed).

It seems from what i've seen that the /proc filesystem in the ubuntu subsystem is PARTIALLY implemented, and is missing some entries.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!