在 Windows 上使用 Chocolatey 安装 Jenkins 失败,出现错误 1603

在 Windows 上使用 Chocolatey 安装 Jenkins 失败,出现错误 1603

我在 Windows 上通过 Chocolatey 安装 Jenkins 时遇到问题。最初,我收到有关 Java 不可用的错误,我通过设置JAVA_HOME和更新Path环境变量以使用 JDK 11 解决了此问题(更多信息这里)。然而,我现在在安装Jenkins时遇到了一个不同的问题。

Chocolatey 发出的详细错误信息如下:

Chocolatey v2.2.2
Installing the following packages:
jenkins
By installing, you accept licenses for the packages.
Progress: Downloading jenkins 2.440.2... 100%

jenkins v2.440.2 [Approved]
jenkins package files install completed. Performing other installation steps.
Installing jenkins...
WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\jenkins_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error.
ERROR: Running ["C:\Windows\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\jenkins\tools\jenkins.msi" /qn /norestart /l*v "C:\Users\FoadS\AppData\Local\Temp\chocolatey\jenkins.2.440.2.MsiInstall.log" JENKINS_ROOT="C:\ProgramData\Jenkins\" ] was not successful. Exit code was '1603'. Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\jenkins_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error..
The install of jenkins was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\jenkins\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - jenkins (exited 1603) - Error while running 'C:\ProgramData\chocolatey\lib\jenkins\tools\chocolateyinstall.ps1'.
 See log for details.

我已经尝试重新启动系统并检查 MSI 日志文件,但没有找到任何明确迹象表明哪里出了问题。

有谁知道是什么原因导致了这个问题以及如何解决它?

附注1.您可能会发现jenkins_msi_install.log运行后生成的文件choco install jenkins -y --install-arguments="/l*v c:\jenkins_msi_install.log" 这里

PS2。此解决方案,命令net user administrator /active:yes返回:

The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.

More help is available by typing NET HELPMSG 2245.

Net user administrator "<password>" /add并按照建议的命令这里, 回到:

The account already exists.

More help is available by typing NET HELPMSG 2224.

net user administrator *我可以通过运行然后按照提示输入新密码来激活用户。然而,这终究还是没有解决问题!

相关内容