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

Error when install dotnet/core/aspnet:3.1 on CentOS 8 - Folder [/usr/share/dotnet/host/fxr] does not contain any version-numbered child folders #9254

Closed
ZhivovOleg opened this issue Dec 23, 2020 · 3 comments

Comments

@ZhivovOleg
Copy link

ZhivovOleg commented Dec 23, 2020

Like as dotnet/dotnet-docker#1537
but I have same error on CenOS 8 (not Docker) on standalone machine.
Clean new CentOS 8 with latest updates on 23 dec 2020.
in console:

sudo dnf install aspnetcore-runtime-3.1 - OK

dotnet - OK (shows using manual)

dotnet --info - error:
A fatal error occurred, the folder [/usr/share/dotnet/host/fxr] does not contain any version-numbered child folders

dotnet --list-runtimes - error:
A fatal error occurred, the folder [/usr/share/dotnet/host/fxr] does not contain any version-numbered child folders

dotnet *.dll - error:
A fatal error occurred, the folder [/usr/share/dotnet/host/fxr] does not contain any version-numbered child folders

the folder /usr/share/dotnet/host/fxr is really empty. Trying to install SDK - no effect

@mdjorov
Copy link

mdjorov commented Jan 4, 2021

Same result for me as well. With aspnetcore-runtime-5.0.x86_64 installed.

@dagood
Copy link
Member

dagood commented Jan 4, 2021

Can you list the complete steps you took and the output?

It's unusual that dotnet --info is looking in /usr/share/dotnet/host/fxr. The version of .NET Core 3.1 available by default in CentOS 8 installs into /usr/lib64/dotnet/, not /usr/share/dotnet/. The only way I know of for this to happen is if your machine has some CentOS 8 distro (AppStream) packages installed but also some packages from https://packages.microsoft.com, which aren't compatible. (I opened dotnet/docs#18347 a while ago--I think this needs to be documented much better, with diag steps.)

When I install in a fresh CentOS 8 Docker container, it works fine for me: (using Docker just because it's an easy way to get a clean machine)

$ docker run -it --rm centos:8 bash -c '
    dnf install -y aspnetcore-runtime-3.1;
    dotnet --list-runtimes'
...
Dependencies resolved.
=======================================================================================================
 Package                     Arch        Version                                  Repository      Size
=======================================================================================================
Installing:
 aspnetcore-runtime-3.1      x86_64      3.1.10-1.el8_3                           AppStream      6.2 M
Installing dependencies:
 dotnet-host                 x86_64      5.0.0-0.8.0201202git337413b.el8_3        AppStream      108 k
 dotnet-hostfxr-3.1          x86_64      3.1.10-1.el8_3                           AppStream      165 k
 dotnet-runtime-3.1          x86_64      3.1.10-1.el8_3                           AppStream       27 M
 libicu                      x86_64      60.3-2.el8_1                             BaseOS         8.8 M
 lttng-ust                   x86_64      2.8.1-11.el8                             AppStream      259 k
 userspace-rcu               x86_64      0.10.1-2.el8                             BaseOS         101 k
...
Microsoft.AspNetCore.App 3.1.10 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.10 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

@marcpopMSFT
Copy link
Member

Old issue triage: known issue when mixing source built and Microsoft built Linux. We've improved things in 9 a bit for that.

@marcpopMSFT marcpopMSFT closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
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