Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
1.98k stars 571 forks source link

Choco based Agent Install on Windows 2022 doesnt work #9867

Open HenrikFFM opened 9 months ago

HenrikFFM commented 9 months ago

Describe the bug

On a Windows 2022 Server System the Installation of the Agent https://community.chocolatey.org/packages/icinga2/ doesnt work. Because the dependency is netfx-4.6.2. But on a Windows 2022 there a newer .net frameworks installed.

To Reproduce

  1. open cmd.exe as Admin
  2. type choco install icinga2
  3. get the error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

Chocolatey v2.2.2 Installing the following packages: icinga2 By installing, you accept licenses for the packages. [NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'dotnetcore-windowshosting 3.1.32 constraint: dotnetcore-3.1-windowshosting (>= 3.1.32 && < 3.1.33)' Unable to resolve dependency 'kb2919355': Unable to find a version of 'kb2919355' that is compatible with 'KB2999226 1.0.20181019 constraint: kb2919355 (>= 1.0.20160915)', 'netfx-4.6.2 4.6.2 constraint: kb2919355 (>= 1.0.20160915)', 'vcredist140 14.36.32532 constraint: kb2919355 (>= 1.0.20160915)'.

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

Failures

Your Environment

Include as many relevant details about the environment you experienced the problem in

Additional context

none

Al2Klimov commented 8 months ago

@LordHepipud If we'd require not .NET=4.6.2, but .NET>=4.6.2, would everything surely still work?

Al2Klimov commented 3 weeks ago

"Unfortunately" it works for me:

Bildschirmfoto 2024-06-06 um 15 59 07

Even after installing later .NETs. I was even able to install icinga2+netfx-4.6.2 AND netfx-4.8.1 in parallel!

But on a Windows 2022 there a newer .net frameworks installed.

@HenrikFFM Which ones and how did you install them? And if via choco, which packages you use depend on them?