-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Installing net9.0 SDK on AWS Linux 2023 breaks net8.0 SDK and runtime #45440
Comments
We don't publish .NET for Fedora anymore because it is available within Fedora repos. This policy is described at: dotnet/core#9556. I'm not an expert on how to register Fedora feeds. Someone else can likely provide good instructions for that. I used the script at amazonlinux/amazon-linux-2023#232 as a quick prototype. This is the result: bash-5.2# cat /etc/os-release | grep PRETTY
PRETTY_NAME="Amazon Linux 2023.4.20240416"
bash-5.2# dnf install dotnet-sdk-8.0 dotnet-sdk-9.0
bash-5.2# dotnet --list-sdks
8.0.111 [/usr/lib64/dotnet/sdk]
9.0.100 [/usr/lib64/dotnet/sdk] |
The situation where installing .NET 9 makes .NET 8 disappear sounds like https://learn.microsoft.com/en-us/dotnet/core/install/linux-package-mixup?pivots=os-linux-redhat. Essentially, one set of packages is installed to I am not sure Fedora packages are compatible with AWS Linux either. They may work for now, but it's possible they will suddenly stop working. To fix this properly in the long term, I see several options:
|
I can repo that installing .NET 8 from the Amazon Linux repo puts it in If you install both .NET 8 and 9 from the Microsoft Fedora feed I was able to get it to work. But because Amazon Linux doesn't have
|
Triage: It sounds like this came down to two installs ending up in different locations so closing for now as we are aware of feedback related to this experience. |
37 doesn't contain .NET 9. |
Describe the bug
Using the standard installation process (dnf install -y dotnet-sdk-9.0) breaks net8.0 SDK and runtime on AWS Linux 2023 (and possibly other versions as well).
To Reproduce
Up until yesterday I was installing net8.0 on AWS Linux 2023 using the following bash script:
net9.0 wouldn't install until I updated it to /fedora/38:
However, running this process results in the second dotnet --list-sdks returning:
and --list-runtimes shows:
net8.0 is no longer available, and some operations that use net8.0 show errors indicating that it is not available.
Simply manually creating a symbolic link to net8.0 (whose files were still there) made the SDK show in --list-sdks, but not in --list-runtimes (another symbolic link may solve that as well?).
AWS Support came up with a process that seems to work, but it involves raw downloading, untarring, and environment variable setting, but a package-based installation is much-preferred.
Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: