Hi,
I am not sure this issue should be created here, but I hope it's the right place. If not, please move it to an appropriate place.
Could you please provide packages for Ubuntu 20.04?
Packages for 19.10 working to some degree, but e.g. I cannot get 3.1.2 update, I am stuck on 3.1.1 (not to say it's critical or so, but would be nice to upgrade).
@dagood @leecow
@murbanowicz, what are you seeing when trying to 3.1.2 from the 19.10 repo?
20.04 will not be officially released until 4/23 and we typically have the repo established and populated with the .NET Core release which immediately follows but I think we can have this set up for 20.04 release day.
@rbhanda - please work with the AzLinux folks to get 20.04 on-boarded to packages.microsoft.com.
/cc @nakarnam
@leecow
The following packages have unmet dependencies:
dotnet-runtime-deps-3.1 : Depends: libicu but it is not installable or
libicu63 but it is not installable or
libicu60 but it is not installable or
libicu57 but it is not installable or
libicu55 but it is not installable or
libicu52 but it is not installable
E: Unable to correct problems, you have held broken packages.
20.04 has libicu65. It would be nice to have preview packages earlier.
I tried to setup 20.04 too, basically /everything/ works, except .net core... :( was hoping to play around with .net core on Ubuntu 20.04 but I guess I'll need to wait until release day.
You have a few options in the meantime:
equivs package to do this for Debian packages. You could make a fake libicu63 package, or you could fake the dotnet-runtime-deps-3.1 package entirely. (You would want to have libicu65 installed to satisfy the functional dependency as well as the fake package to satisfy our Deb package's dependency.)@dagood - thank you very much!!!
Just for information: Ubuntu 20.04 will be released April 23rd, and is the next LTS version, so it will be supported for 5 years.
Any news on this?
@NikolaMilosavljevic for an update
All PRs were completed a month ago. There are upcoming servicing releases for 2.1 and 3.1 and 5.0 preview.
5.0: https://github.com/dotnet/runtime/pull/34079
3.1: https://github.com/dotnet/core-setup/pull/9015
2.1: https://github.com/dotnet/core-setup/pull/9016
All these changes added support for libicu65 and libicu66.
When I run the following i get the error that the dotnet-sdk-3.1 package is not found. Am I doing something wrong? Running pop_os 20.04 (based on ubuntu 20.04)
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
gives the error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-sdk-3.1
E: Couldn't find any package by glob 'dotnet-sdk-3.1'
E: Couldn't find any package by regex 'dotnet-sdk-3.1'
When I run the following i get the error that the dotnet-sdk-3.1 package is not found. Am I doing something wrong? Running pop_os 20.04 (based on ubuntu 20.04)
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install dotnet-sdk-3.1gives the error
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package dotnet-sdk-3.1 E: Couldn't find any package by glob 'dotnet-sdk-3.1' E: Couldn't find any package by regex 'dotnet-sdk-3.1'
There are no dotnet packages yet for 20.04 in the repository.
When I run the following i get the error that the dotnet-sdk-3.1 package is not found. Am I doing something wrong? Running pop_os 20.04 (based on ubuntu 20.04)
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install dotnet-sdk-3.1gives the error
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package dotnet-sdk-3.1 E: Couldn't find any package by glob 'dotnet-sdk-3.1' E: Couldn't find any package by regex 'dotnet-sdk-3.1'There are no dotnet packages yet for 20.04 in the repository.
Is there an ETA on the packages being put in the repository?
Please provide this packages.
I used the 18.04 source on 20.04 with the help from this tweet:
https://twitter.com/sinclairinat0r/status/1237201767198273536
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/i/icu/libicu63_63.2-2_amd64.deb
sudo dpkg -i libicu63_63.2-2_amd64.deb
Then installed .NET Core normally.
phillip-haydon approach worked perfectly in Ubuntu 20.04
My ASP.NET Core 3.1 apps use 100% CPU on Ubuntu 20.04 when first network action occurs.
P.S. Microsoft.Data.SqlClient doesn't work
Still receiving an error, even after follow the new instructions page: https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-2004
Ubuntu 20.04 LTS
The step bellow works normally:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
This command returns the error message:
sudo apt-get install dotnet-sdk-3.1
Error: Unable to locate package dotnet-sdk-3.1
Please also update the release notes, add support for Ubuntu 20.04:
https://github.com/dotnet/core/blob/master/release-notes/3.1/3.1-supported-os.md
No .NET packages have been published to the Ubuntu 20.04 Microsoft repository yet, let alone packages that support 20.04. 😕 For now, you'll need to keep using the an earlier repository (18.04 for last LTS, or 19.10) with one of the workarounds above: installing the old libicu dependency manually, faking the libicu dependency to force the newer one to work, or using an alternative install method.
@Thraka, should we take down https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-2004? It looks like it was published prematurely. Alternatively we could decide on a workaround to document as official.
@leecow @rbhanda how is this distro version cycle being tracked? (How did this happen?)
I tried the 19.10 instructions as a workaround but I get "some packages could not be installed" due to unmet dependencies on other dotnet packages.
$ sudo dpkg -i packages-microsoft-prod.deb
Selecting previously unselected package packages-microsoft-prod.
(Reading database ... 189833 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-ubuntu19.10.1) ...
Setting up packages-microsoft-prod (1.0-ubuntu19.10.1) ...
$ sudo apt-get update
Hit:1 http://au.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://au.archive.ubuntu.com/ubuntu focal-updates InRelease [89.1 kB]
Hit:3 http://au.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:4 https://packages.microsoft.com/ubuntu/19.10/prod eoan InRelease [10.5 kB]
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:6 https://packages.microsoft.com/ubuntu/19.10/prod eoan/main arm64 Packages [844 B]
Get:7 https://packages.microsoft.com/ubuntu/19.10/prod eoan/main amd64 Packages [19.6 kB]
Get:8 https://packages.microsoft.com/ubuntu/19.10/prod eoan/main armhf Packages [554 B]
Fetched 110 kB in 1s (110 kB/s)
Reading package lists... Done
$ sudo apt-get install dotnet-sdk-3.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
dotnet-sdk-3.1 : Depends: dotnet-runtime-3.1 (>= 3.1.3) but it is not going to be installed
Depends: aspnetcore-runtime-3.1 (>= 3.1.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
@Thraka, should we take down https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-2004? It looks like it was published prematurely. Alternatively we could decide on a workaround to document as official.
Just ran into the same trap and followed the docs. Resulted in me doubting my system. I think the docs as they are right now are very confusing or at least deserve a NOTE on them with a slight preference towards a note with a link to this issue.
Just release it already :-D
I am agree with @Fredrik81. Such a shame that MS couldn't release packages for Ubuntu 20.04 which is LTS version
I used the 18.04 source on 20.04 with the help from this tweet:
https://twitter.com/sinclairinat0r/status/1237201767198273536
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/i/icu/libicu63_63.2-2_amd64.deb
sudo dpkg -i libicu63_63.2-2_amd64.debThen installed .NET Core normally.
Worked for me thanks !
AlexandreDonovan's two lines worked for me.
the AlexandreDonovan answer didn't work for me what I did was:
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.201-linux-x64.tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
The toolchain for Ubuntu 20.10 _Groovy Gorilla_ will be ready this week. So when you add it to your CI directly, maybe it will be on time for the next release :wink:
I had used this installation scripts: https://dotnet.microsoft.com/download/dotnet-core/scripts
All works fine.
dotnet --version
3.1.201
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
$ sudo snap install --classic dotnet-sdk
dotnet-sdk 3.1.201 from Microsoft .NET Core (dotnetcore✓) installed
$ sudo snap install dotnet-sdk --channel=3.1.2
$ sudo snap alias dotnet-sdk.dotnet dotnet
$ dotnet-sdk.dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.201
Commit: b1768b4ae7
Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: linux-x64
Base Path: /snap/dotnet-sdk/69/sdk/3.1.201/
Host (useful for support):
Version: 3.1.3
Commit: 4a9f85e9f8
.NET Core SDKs installed:
3.1.201 [/snap/dotnet-sdk/69/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.3 [/snap/dotnet-sdk/69/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.3 [/snap/dotnet-sdk/69/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
sudo snap alias dotnet-sdk.dotnet dotnet
Thank you for this.
@zohozer Snap problems actually led me here:
https://forum.snapcraft.io/t/webdev-on-20-04-dotnet-sdk-and-node-woes/16894
sudo snap alias dotnet-sdk.dotnet dotnet
Thank you for this.
if 'dotnet run' does not work start using 'dotnet bin/Debug/netcoreapp3.1/yourapp.dll'
sudo snap alias dotnet-sdk.dotnet dotnet
Thank you for this.
if 'dotnet run' does not work start using 'dotnet bin/Debug/netcoreapp3.1/yourapp.dll'
@gotsalyuk I solve this problem here:
https://github.com/dotnet/core/issues/2186#issuecomment-472629489
Thanks for your indications!
@NikolaMilosavljevic can we have any updates for when the package will be ready for ubuntu 20.04
It's March already and we're starting to feel a bit frustrated
@NikolaMilosavljevic can we have any updates for when the package will be ready for ubuntu 20.04
It's March already and we're starting to feel a bit frustrated
May... It's May... 😂
We are working on it and these will be available with our next update.
@rbhanda any ETA on this? The instructions were up on the docs and then taken down again. Getting frustrated that this is still an issue on May 2.
Just to extend on post from @BrianXS on how to install binary of .NET Core, which is already on Microsoft website.
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.201-linux-x64.tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
This way dotnet tool works well on linux when you are using it in terminal, however when you try to use it in vscode (C# extension), then in debug/run step comes an error.
The terminal shell path "dotnet" is a directory
I am not going to delve into it too much into it, but adding dot before directory name does seem to fix that issue.
mkdir -p $HOME/.dotnet && tar zxf dotnet-sdk-3.1.201-linux-x64.tar.gz -C $HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet
export DOTNET_ROOT=$HOME/.dotnet
Also there could be some improvements on what to copy/paste into terminal like cd into Downloads folder etc.
cd $(xdg-user-dir DOWNLOAD) && mkdir -p $HOME/.dotnet && tar zxf dotnet-sdk-3.1.201-linux-x64.tar.gz -C $HOME/.dotnet; cd
printf 'export PATH=$PATH:$HOME/.dotnet\nexport DOTNET_ROOT=$HOME/.dotnet\n' >> .bashrc
As a workaround, you can use the Eoan repository to get the missing package libicu-63.
sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu/ eoan main restricted'
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
Hey folks, 20.04 packages are expected to be available 5/12.
Hmmm really dropped the ball for support on this. There has been plenty of time to ready support for .net core on 20.04 but didn’t action it until well after the release.
$ sudo snap install dotnet-sdk --channel=3.1.2
$ sudo snap alias dotnet-sdk.dotnet dotnet
The alias didn't work for with C# in the snap versions of VS Code and VS Code Insiders, so I wound up making a symbolic link in /usr/local/bin directly to the dotnet executable. Surprised that worked, but glad. See my comment here.
$ sudo snap install dotnet-sdk --channel=3.1.2
$ sudo snap alias dotnet-sdk.dotnet dotnet
Thank you for this.
snap version does not work either on Ubuntu 20.04. To reproduce just create a new dotnet core console app with:
dotnet new console
dotnet build
dotnet run
It will fail with:
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
at System.Environment.FailFast(System.String)
at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
at System.Globalization.GlobalizationMode..cctor()
at System.Globalization.CultureData.CreateCultureWithInvariantData()
at System.Globalization.CultureData.get_Invariant()
at System.Globalization.CultureInfo..cctor()
at System.String.ToLowerInvariant()
at System.Text.EncodingHelper.GetCharset()
at System.Text.EncodingHelper.GetEncodingFromCharset()
at System.ConsolePal.GetConsoleEncoding()
at System.Console+<>c.<get_OutputEncoding>b__19_0()
at System.Threading.LazyInitializer.EnsureInitializedCore[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Threading.LazyInitializer.EnsureInitialized[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Console.get_OutputEncoding()
at System.Console.CreateOutputWriter(System.IO.Stream)
at System.Console+<>c.<get_Out>b__26_0()
at System.Threading.LazyInitializer.EnsureInitializedCore[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Threading.LazyInitializer.EnsureInitialized[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon ByRef, System.Object ByRef, System.Func`1<System.__Canon>)
at System.Console.get_Out()
at System.Console.WriteLine(System.String)
at test2.Program.Main(System.String[])
snap version does not work either on Ubuntu 20.04. To reproduce just create a new dotnet core console app with:
(removed)
Please see my comment here because you can set the environment variable DOTNET_SYSTEM_GLOBALIZATION_INVARIANT as a tempory workaround.
Temporary solution for me:
bash ./dotnet-install.sh --channel 3.1 --install-dir ~/clisudo mkdir /usr/share/dotnetsudo mv ~/cli/* /usr/share/dotnet/sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnetAny update on this? Not having this additionally blocks PowerShell on Ubuntu 20.04: https://github.com/PowerShell/PowerShell/issues/12594
Any update on this? Not having this additionally blocks PowerShell on Ubuntu 20.04: PowerShell/PowerShell#12594
Hey folks, 20.04 packages are expected to be available 5/12.
This is how you can install PowerShell 7.0 on Ubuntu 20.04:
sudo su -
local PWSH_INSTALL_DIR=/opt/microsoft/powershell/7-focal
local TAR_NAME=powershell-7.0.0-linux-x64.tar.gz
curl -fsSL -O "https://github.com/PowerShell/PowerShell/releases/download/v7.0.0/${TAR_NAME}"
mkdir -p ${PWSH_INSTALL_DIR}
tar -zxf "${TAR_NAME}" -C ${PWSH_INSTALL_DIR}
ln -s ${PWSH_INSTALL_DIR}/pwsh /usr/bin/pwsh
rm "${TAR_NAME}"
pwsh --version
As a workaround, you can use the Eoan repository to get the missing package libicu-63.
sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu/ eoan main restricted' sudo apt-get update sudo apt-get install dotnet-sdk-3.1
I think packages for ubuntu 20.04 still have some dependency problem and this is the easiest solution which works. Superthanks @jeffpignataro :+1:
Thanks
I used the 18.04 source on 20.04 with the help from this tweet:
https://twitter.com/sinclairinat0r/status/1237201767198273536
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/i/icu/libicu63_63.2-2_amd64.deb
sudo dpkg -i libicu63_63.2-2_amd64.debThen installed .NET Core normally.
Working..Thanks.
Hey folks, 20.04 packages are expected to be available 5/12.
any news?
Hopefully we'll have it tomorrow
I mean, time zones are a thing so... ¯_(ツ)_/¯
We are in the process of publishing them right now. We will update as soon as the publishing and testing is complete
We are in the process of publishing them right now. We will update as soon as the publishing and testing is complete
Any update? It's nearly 5/13.
The runtime seems to be available already. The sdk has some dependency problems.
This should be available now. Please let us know if you are seeing any issues: https://github.com/dotnet/core/issues/4675
was able to install through apt. thanks!
Is the website going to be updated soon to reflect this? 19.10 is still listed as the latest for me.
Ubuntu 19.10 Package Manager - Install .NET Core
@byroniac - we'll get the docs updated to reflect the availability of 20.04.
cc @mairaw and @Thraka
Installing via these steps worked great for me:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
However, I first had to run the following. I guess I needed to clean up previous attempts.
sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
@merschformann isn't there any repository so dependencies are met automatically?
@merschformann isn't there any repository so dependencies are met automatically?
If you look at the comment right above yours, I did the same thing, and it provides a repository, at least for Ubuntu (I can't speak for other distros as I have not tried anything else, but I know that Fedora 32 has them built in, for which I am very grateful to Microsoft and IBM/RedHat).
@byroniac see here for the list of officially supported platforms: https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1910
Page for Ubuntu 20.04 is not yet available and it's tracked by https://github.com/dotnet/docs/issues/17638
@Mizux si funciona el proceso de instalación que da @merschformann , entiendo que no esta en la pagina oficial de Microsoft pero si funciona, en el caso de que hubiera alguna actualización podemos hacerla y ya.
Adjunto una imagen demostrando que corre asp.net en Ubuntu 20.04 LTS, por obvias razones no estoy amostrando el nombre de la empresa.

You can see the draft of the changes at https://github.com/dotnet/docs/pull/18160/files
You can see the draft of the changes at https://github.com/dotnet/docs/pull/18160/files
I want to thank every who works at Microsoft on this for their efforts on this, as they are much appreciated and not enough credit is given.
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
error
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt --fix-broken install
sudo apt-get install dotnet-sdk-3.1
sudo apt-get install dotnet-sdk-3.1
In order to be able to install donet-sdk-3.1 as distribution package, you must have set up some third party repository, because I can't install it. Maybe that's what is causing broken dependencies on your system
sudo apt-get install dotnet-sdk-3.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-sdk-3.1
E: Couldn't find any package by glob 'dotnet-sdk-3.1'
E: Couldn't find any package by regex 'dotnet-sdk-3.1'
Use this instead:
sudo snap install dotnet-sdk --classic
dotnet-sdk 3.1.201 from Microsoft .NET Core (dotnetcore✓) installed
Why is this closed? I still get the error:
sudo apt-get install dotnet-sdk-3.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-sdk-3.1
E: Couldn't find any package by glob 'dotnet-sdk-3.1'
E: Couldn't find any package by regex 'dotnet-sdk-3.1'
using Ubuntu 20.04, after doing everything the microsoft site tells me to do..
@mikevanl Please open a new issue with what you've tried and all command output, especially apt update. It's closed because the repository and packages are available for Ubuntu 20.04. But it can be tricky to set up the repository correctly and we'd be happy to help.
Try to add ":amd64" to the end of dotnet's package names.
Like this:
sudo apt install dotnet-sdk-3.1:amd64
I used this method and worked for me.
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1 (chose the version)
I have this same error. I am using ubuntu on ARM32. any suggestions?
I have this same error. I am using ubuntu on ARM32. any suggestions?
@yelsnitrk you need to follow these instructions:
Package manager installs are only supported on the x64 architecture. Other architectures, such as ARM, must manually install the .NET Core SDK or .NET Core Runtime. For more information, see the manually install section below.
https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#manual-install
Thanks. I downloaded the binary that I want to my /home/user directory. What next?
@yelsnitrk you should be able to get it to work by continuing along with the instructions. Please feel free to open a new issue if some of the steps don't make sense or aren't working for you.
When I run the following i get the error that the dotnet-sdk-3.1 package is not found. Am I doing something wrong? Running pop_os 20.04 (based on ubuntu 20.04)
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install dotnet-sdk-3.1gives the error
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package dotnet-sdk-3.1 E: Couldn't find any package by glob 'dotnet-sdk-3.1' E: Couldn't find any package by regex 'dotnet-sdk-3.1'
#!/usr/bin/env bash
set -e
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-3.1
sudo apt-get install -y dotnet-runtime-3.1
rm -rf packages-microsoft-prod.deb
@hack2root RTFM https://docs.microsoft.com/fr-fr/dotnet/core/install/linux-ubuntu#unable-to-locate
come on, arm64 .debs alredy.
I am in a similar situation, running dotnet-sdk 5.0.0-rc1 on Ubuntu 20.10 dev release which packages libicu67. Ubuntu 20.10 is going to be released next month so it didn't seem that crazy.
I modified the installer script for all the issues I ran into and stuck it here: https://github.com/averyfreeman/dotnet-sdk-5.0rc1-Ubuntu-20.10-installer
I used this method and worked for me.
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1 (chose the version)
This worked for me - Brilliant. Thanks.
Most helpful comment
Hey folks, 20.04 packages are expected to be available 5/12.