gpt4 book ai didi

java - 将 Java 从 1.7.0_201 更新到最新版本并出现错误

转载 作者:行者123 更新时间:2023-12-02 09:31:00 24 4
gpt4 key购买 nike

我正在尝试将 Java 从 1.7.0_201 更新到最新版本,但无论我做什么,都会收到以下错误:

invoke-rc.d: initscript jenkins, action "start" failed.
dpkg: error processing package jenkins (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)

最佳答案

如果你想使用 Jenkins,首先不要使用最新版本的 Java。始终使用推荐的 Java 版本的 Jenkins:

现代 Jenkins 版本具有以下 Java requirements :

Java 8 runtime environments, both 32-bit and 64-bit versions are supported

Since Jenkins 2.164 and 2.164.1 [1], Java 11 runtime environments are supported

Running Jenkins with Java 11 is documented here

There are some precautions to take when upgrading from Java 8 to Java 11 in Jenkins, please follow these guidelines.

Older versions of Java are not supported

Java 9 and Java 10 are not supported

Java 12 is not supported

因此,首先升级到 Java 8,这是 Jenkins 的推荐版本。而不是最新的。

关于java - 将 Java 从 1.7.0_201 更新到最新版本并出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57988174/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com