什么软件包创建/ usr / lib / jvm / default-java?


11

我正在尝试仅使用Ubuntu提供的软件包在11.10上设置Jenkins。之后apt-get install jenkins,詹金斯将无法开始。我追溯到一个缺席的地方/usr/lib/jvm/default-java/bin/java

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version                                 Description
+++-===============================-=======================================-==============================================================================
ii  jenkins                         1.409.1-0ubuntu4.2                      Continuous Integration and Job Scheduling Server
ii  openjdk-6-jre                   6b24-1.11.3-1ubuntu0.11.10.1            OpenJDK Java runtime, using Hotspot JIT

# update-alternative  --config java
There is only one alternative in link group java: /usr/lib/jvm/java-6-openjdk/jre/bin/java
Nothing to configure.

哪个软件包创建/ usr / lib / jvm / default-java?

Answers:


15

您可以使用apt-file搜索此信息。您可能需要先安装apt-file才能使用它。

sudo apt-get install apt-file            #Installs
sudo apt-file update                     #Updates local file list
apt-file search <path to file/directory> #Does the searching

它报告default-jre-headless您应该寻找的包。

您可能在超级用户上发现此问题很有用


1
搜索正确的路径很重要,因为/usr/lib/jvm/default-java/bin/java找不到但/usr/lib/jvm/default-java可以找到。感谢您提供详细的答案和链接!
弗朗索瓦·博索莱尔
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.