@paulhe:
和版本有关,dnf install -y dotnet-runtime-5.0 安装这个就正常。 https://github.com/dotnet/dotnet-docker/issues/1537 官方的站点有个说明,好像也没有找到是啥原因
3.1的安装是如下的信息,看安装信息,好像源上依赖有问题。3.1的咋依赖这个 dotnet-host x86_64 5.0.1-1
[root@dotnet vagrant]# dnf install dotnet-runtime-3.1
Failed to set locale, defaulting to C.UTF-8
CentOS-8 - AppStream 908 kB/s | 6.2 MB 00:06
CentOS-8 - Base 427 kB/s | 2.3 MB 00:05
CentOS-8 - Extras 9.7 kB/s | 8.1 kB 00:00
packages-microsoft-com-prod 583 kB/s | 1.0 MB 00:01
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
dotnet-runtime-3.1 x86_64 3.1.10-1.el8_3 AppStream 27 M
Installing dependencies:
dotnet-host x86_64 5.0.1-1 packages-microsoft-com-prod 64 k
dotnet-hostfxr-3.1 x86_64 3.1.10-1.el8_3 AppStream 165 k
lttng-ust x86_64 2.8.1-11.el8 AppStream 259 k
userspace-rcu x86_64 0.10.1-2.el8 BaseOS 101 k
Transaction Summary
Install 5 Packages
Total download size: 27 M
Installed size: 94 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): dotnet-hostfxr-3.1-3.1.10-1.el8_3.x86_64.rpm 262 kB/s | 165 kB 00:00
(2/5): lttng-ust-2.8.1-11.el8.x86_64.rpm 302 kB/s | 259 kB 00:00
(3/5): userspace-rcu-0.10.1-2.el8.x86_64.rpm 116 kB/s | 101 kB 00:00
(4/5): dotnet-host-5.0.1-x64.rpm 62 kB/s | 64 kB 00:01
(5/5): dotnet-runtime-3.1-3.1.10-1.el8_3.x86_64.rpm 977 kB/s | 27 MB 00:28