Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora wrong rpm package getting installed for aspnetcore-runtime-3.0 (3.0.101) #3879

Closed
mdx0111 opened this issue Nov 21, 2019 · 4 comments
Closed

Comments

@mdx0111
Copy link

mdx0111 commented Nov 21, 2019

Updating .Net Core 3.0.100 to 3.0.101 is installing wrong package on Fedora (31). The package being installed is aspnetcore-runtime-3.0.1-rh.rhel.7-x64.rpm rather than aspnetcore-runtime-3.0.1-x64.rpm.

This is causing the dotnet run to return the following message:

It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '3.0.0' was not found.
  - No frameworks were found.

You can resolve the problem by installing the specified framework and/or SDK.

The .NET Core frameworks can be found at:
  - https://aka.ms/dotnet-download

The temporary workaround is manually installing the aspnetcore-runtime-3.0.1 from https://packages.microsoft.com/rhel/7/prod/aspnetcore-runtime-3.0.1-x64.rpm

Please do not hesitate to let me know if you need any further details.

Many thanks.

@mdx0111 mdx0111 changed the title Feora wrong rpm package getting installed for aspnetcore-runtime-3.0 (3.0.101) Fedora wrong rpm package getting installed for aspnetcore-runtime-3.0 (3.0.101) Nov 21, 2019
@avandych
Copy link

avandych commented Nov 21, 2019

Same issue is reproducible on CentOS Linux release 7.7.1908 (Core) :

It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '3.0.0' was not found.

  • No frameworks were found.

You can resolve the problem by installing the specified framework and/or SDK.

The .NET Core frameworks can be found at:

[root@mm-microservice-appserver-v5889-000 invoice]# dotnet --info
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download

Host (useful for support):
Version: 3.0.1
Commit: 19942e7199

.NET Core SDKs installed:
No SDKs were found.

.NET Core runtimes installed:
Microsoft.NETCore.App 3.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

@craigjbass
Copy link

A few things here @dagood -

  1. I removed dotnet packages entirely to be able to perform a system upgrade.
  2. Went to reinstall dotnet 3.0.0 - so I followed the advice here: CentOS, Fedora, openSUSE, RHEL error "checksum doesn't match" "Package does not match intended download" "Digest verification failed" #3853 (comment)

I think there is something not quite right with the published dependency graph from the dotnet-sdk-3.0 package:

> $ sudo dnf install dotnet-sdk-3.0                                                                                                                                                                                                 ⬡ 10.7.0 
Last metadata expiration check: 0:09:35 ago on Thu 21 Nov 2019 15:38:13 GMT.
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                              Architecture                                  Version                                          Repository                                                          Size
==============================================================================================================================================================================================================================================
Installing:
 dotnet-sdk-3.0                                                       x86_64                                        3.0.101-1                                        packages-microsoft-com-prod                                         64 M
Installing dependencies:
 aspnetcore-runtime-3.0                                               x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                        7.5 M
 aspnetcore-targeting-pack-3.0                                        x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                        1.4 M
 dotnet-apphost-pack-3.0                                              x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                         66 k
 dotnet-host                                                          x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                         39 k
 dotnet-hostfxr-3.0                                                   x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                        147 k
 dotnet-runtime-3.0                                                   x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                         29 M
 dotnet-runtime-deps-3.0                                              x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                        2.8 k
 dotnet-targeting-pack-3.0                                            x86_64                                        3.0.1-1                                          packages-microsoft-com-prod                                        3.4 M

Transaction Summary
==============================================================================================================================================================================================================================================
Install  9 Packages

Total download size: 105 M
Installed size: 105 M
Is this ok [y/N]: y

This completed successfully, with the manual install of sudo dnf install -y https://packages.microsoft.com/centos/7/prod/netstandard-targeting-pack-2.1.0-x64.rpm

But I then got this error

15:50	Project 'Frank.EndToEndTests' load finished with warnings: The FrameworkReference 'Microsoft.NETCore.App' was not recognized at (264:5)

Which seemed rather odd.

I then manually installed this package https://packages.microsoft.com/centos/7/prod/dotnet-targeting-pack-3.0.0-x64.rpm

And everything worked!

image

  • I think the dotnet-sdk-3.0 package should have a dependency on dotnet-targeting-pack-3.0.0, unless I'm missing something?
  • It's more than a checksum issue, I think there are some issues with the yum repos

@craigjbass
Copy link

craigjbass commented Nov 21, 2019

Hmm - just relooking over the dnf transaction output - it does include dotnet-targeting-pack-3.0

image

These are for 3.0.1!

==============================================================================================================================================================================================================================================
 Package                                                               Architecture                                       Version                                              Repository                                                Size
==============================================================================================================================================================================================================================================
Downgrading:
 dotnet-targeting-pack-3.0                                             x86_64                                             3.0.0-1                                              @commandline                                             3.4 M

Transaction Summary
==============================================================================================================================================================================================================================================
Downgrade  1 Package

I think the packages are missing the minor version which is causing major confusion!

Notice that yum is treating this as a downgrade, so I can't target 3.0.1 and 3.0.0 on the same machine. :sadface:

EDIT: dnf repos expect these packages to respect semver. I think we should have dotnet-targeting-pack-3.0.0 and dotnet-targeting-pack-3.0.1 packages published separately so that they can both be installed side-by-side

EDIT EDIT: 🤔 so the alternative here I see is that the 3.0.1-1 is supposed to be backwards compatible, and there's actually a defect in it.

@dagood
Copy link
Member

dagood commented Nov 21, 2019

@mdx0111, @SPANIOL, that issue is a repro of #3863, which I've reopened as #3886 because although it might be fixed in some places, it's still a problem in others. We're working with the Microsoft linux repo admins to try to resolve these problems.

Closing as a duplicate of #3863 and #3886.


@craigjbass, that is an unrelated issue but very important, I'm going to copy your comments to #3868 where the error message was reported earlier (but without enough context to understand it yet--your extra info was very useful to clear it up for me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants