dotnet / install-scripts

MIT License
127 stars 70 forks source link

dotnet-install script does not work for .NET 8.0 preview on the Mac #354

Closed karolz-ms closed 1 year ago

karolz-ms commented 1 year ago

Repro steps

Following https://github.com/dotnet/core/blob/main/release-notes/8.0/install.md, except attempting to install the bits to /usr/share/dotnet

wget https://dot.net/v1/dotnet-install.sh -O ~/bin/dotnet-install.sh 
chmod u+x ~/bin/dotnet-install.sh
 ~/bin/dotnet-install.sh --runtime dotnet --channel 8.0 --quality preview --install-dir /usr/share/dotnet

dotnet_install: Error: Failed to locate the latest version in the channel '8.0' with 'preview' quality for 'dotnet-runtime', os: 'osx', architecture: 'x64'.
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support.

Expected

Should install

Actual

Error -- see above

Additional info

MacOS Ventura 13.2.1, Intel CPU Shell: bash 5.2.15

karolz-ms commented 1 year ago

Also tried channel 8.0.1xx same error

mairaw commented 1 year ago

@YuliiaKovalova can you check this?

karolz-ms commented 1 year ago

FWIIW, on Linux (Ubuntu 22.04) I was able to install the runtime, but not the SDK (same "failed to locate the latest version in the channel" error)

(edited) Same for Windows, actually. Runtime 👍 SDK 👎

MichalPavlik commented 1 year ago

Hello Karol, I successfully installed SDK on Ubuntu 22.04.

dotnet-install: Attempting to download using aka.ms link https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.100-preview.1.23115.2/dotnet-sdk-8.0.100-preview.1.23115.2-linux-x64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.100-preview.1.23115.2/dotnet-sdk-8.0.100-preview.1.23115.2-linux-x64.tar.gz
dotnet-install: Installed version is 8.0.100-preview.1.23115.2
dotnet-install: Adding to current process PATH: `/usr/share/dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.

Could you please try it again and let us know if you still experience the issue?

karolz-ms commented 1 year ago

@MichalPavlik today I tried again and the same command to install SDK worked for Ubuntu 22.04 in WSL! 👍

karolz-ms commented 1 year ago

I can confirm everything worked for me on the Mac as well. Looks fixed.