You are not logged in.

#1 2020-12-02 12:26:17

YuvarajVelmurugan
Member
Registered: 2020-11-23
Posts: 15

[SOLVED]dotnet 5 installation not working

I downloaded the dotnet-install.sh file as mentioned in ArchWiki

I ran it with below command

sudo ./dotnet-install.sh --install-dir /usr/share/dotnet -channel Current -version latest

dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.

curl: (28) Resolving timed out after 15000 milliseconds
curl: (28) Resolving timed out after 15000 milliseconds
curl: (28) Resolving timed out after 15000 milliseconds
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100/dotnet-sdk-5.0.100-linux-x64.tar.gz
curl: (28) Resolving timed out after 15000 milliseconds
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100/dotnet-sdk-5.0.100-linux-x64.tar.gz
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://docs.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.

dotnet --list-sdks

bash: /usr/bin/dotnet: No such file or directory

whereis dotnet

dotnet: /usr/share/dotnet

which dotnet

which: no dotnet in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

Last edited by YuvarajVelmurugan (2020-12-27 16:32:51)


Thanks,
Yuvaraj Velmurugan

Offline

#2 2020-12-02 13:03:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,351

Re: [SOLVED]dotnet 5 installation not working

The way I'm reading the wiki you are still expected to install at least dotnet-runtime (..or rather dotnet-host if it's really just for the binary) for the relevant /usr binaries

Offline

#3 2020-12-02 13:47:53

YuvarajVelmurugan
Member
Registered: 2020-11-23
Posts: 15

Re: [SOLVED]dotnet 5 installation not working

The runtime expected is 5.0, but what is available is 3.1


Thanks,
Yuvaraj Velmurugan

Offline

#4 2020-12-02 14:08:28

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,383

Re: [SOLVED]dotnet 5 installation not working

https://dotnet.microsoft.com/download/dotnet/5.0 shows dotnet 5 was released not long ago, feel free to flag it out of date.
(link doesn't work for me atm).

If you can't wait until [community] version is updated, use https://aur.archlinux.org/packages/dotnet-sdk-bin/ .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2020-12-02 22:24:53

Tarqi
Member
From: Ixtlan
Registered: 2012-11-27
Posts: 180
Website

Re: [SOLVED]dotnet 5 installation not working

You also may simply download the sdk from the mircosoft link above (linux, binary, x64), unpack it in your home directory and put it in your path.


Knowing others is wisdom, knowing yourself is enlightenment. ~Lao Tse

Offline

#6 2020-12-27 16:32:11

YuvarajVelmurugan
Member
Registered: 2020-11-23
Posts: 15

Re: [SOLVED]dotnet 5 installation not working

Tarqi wrote:

You also may simply download the sdk from the mircosoft link above (linux, binary, x64), unpack it in your home directory and put it in your path.

Yup. Download Binaries x64 This approach worked. But the export of environmental variable is temporary to that session. When i close the terminal and relaunch terminal it doesn't know where dotnet is.

So I followed below steps  to install and things are working good now.

Step 1

cd /usr/share

Step 2

rm -rf dotnet

Step 3

sudo mkdir dotnet

Step 4

cd ~/Downloads

Step 5

sudo tar zxf dotnet-sdk-5.0.101-linux-x64.tar.gz -C /usr/share/dotnet

Step 6

sudo ln -sf /usr/share/dotnet/dotnet /usr/bin/dotnet

Step 7

dotnet --version

Last edited by YuvarajVelmurugan (2020-12-27 19:03:27)


Thanks,
Yuvaraj Velmurugan

Offline

#7 2020-12-28 11:50:31

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,383

Re: [SOLVED]dotnet 5 installation not working

Very Bad Idea.
I f you want to know why,  run pacman -Qkk .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB