microsoft / linux-package-repositories

Microsoft Packaged Linux Software (DEBs, RPMs, etc) are hosted on packages.microsoft.com (PMC) made available as native Linux repositories for use with package managers like APT, YUM, etc.
https://packages.microsoft.com
MIT License
64 stars 17 forks source link

Missing RPM package versions for .NET SDK 8.0 in the RHEL repository #164

Closed Adiras closed 2 weeks ago

Adiras commented 2 weeks ago

I believe that some RPM packages might be missing from the RHEL 9 repository. When attempting to install the .NET SDK 8.0 on the Red Hat Enterprise Linux, it appears that some of the latest RPM package versions are missing or not in sync. Several packages (e.g., aspnetcore-runtime-8.0, dotnet-runtime-8.0, dotnet-runtime-deps-8.0) are being installed as version 8.0.7-1 instead of the expected 8.0.8-1. This leads to inconsistent versioning across the .NET SDK and runtime components.

Command used

dnf install dotnet-sdk-8.0

Packages installed

Some of the following packages were installed with inconsistent versions:

========================================================================================================================
 Package                                    Architecture       Version                 Repository                  Size
========================================================================================================================
Installing:
 dotnet-sdk-8.0                             x86_64             8.0.401-1               microsoft-prod             145 M
Installing dependencies:
 aspnetcore-runtime-8.0                     x86_64             8.0.7-1                microsoft-prod              10 M
 aspnetcore-targeting-pack-8.0              x86_64             8.0.8-1                 microsoft-prod             3.1 M
 dotnet-apphost-pack-8.0                    x86_64             8.0.8-1                 microsoft-prod             4.7 M
 dotnet-host                                x86_64             8.0.8-1                 microsoft-prod              50 k
 dotnet-hostfxr-8.0                         x86_64             8.0.8-1                 microsoft-prod             134 k
 dotnet-runtime-8.0                         x86_64             8.0.7-1                 microsoft-prod              29 M
 dotnet-runtime-deps-8.0                    x86_64             8.0.7-1                 microsoft-prod             8.5 k
 dotnet-targeting-pack-8.0                  x86_64             8.0.8-1                 microsoft-prod             4.6 M
 netstandard-targeting-pack-2.1             x86_64             2.1.0-1                 microsoft-prod             2.1 M

Problem

This version mismatch leads to runtime issues when executing commands like dotnet run, which results in errors and unexpected behavior:

You must install or update .NET to run this application.

App: /usr/share/dotnet/sdk/8.0.401/dotnet.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '8.0.8' (x64)
.NET location: /usr/share/dotnet/

The following frameworks were found:
  8.0.7 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.8&arch=x64&rid=linux-x64&os=rhel.8

Additional information

After manually checking the repository at https://packages.microsoft.com/rhel/9/prod/Packages/d/, it was confirmed that the file dotnet-runtime-deps-8.0-8.0.8-1.x86_64.rpm is indeed missing. The latest available version is dotnet-runtime-deps-8.0-8.0.7-1.x86_64.rpm.

Could you kindly check if this package was mistakenly omitted or provide guidance on how to install the necessary dependencies?

Thanks for your assistance!

daviddavis commented 2 weeks ago

Thanks for the issue. We run the packages.microsoft.com site but we don't upload packages to it. That's handled by teams like dotnet. I think this issue is being tracked here though: https://github.com/dotnet/sdk/issues/43009.

Klaas- commented 2 weeks ago

@daviddavis I think you may need to contact github about the spamusers spreading malware, this seems to be a bigger general problem now :)

daviddavis commented 2 weeks ago

@Klaas- thanks. It sounds like they're aware of the issue: https://github.com/orgs/community/discussions/136836#discussioncomment-10466406