Skip to content

Please provide packages for Ubuntu 20.04 #4360

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

Closed
murbanowicz opened this issue Mar 5, 2020 · 90 comments
Closed

Please provide packages for Ubuntu 20.04 #4360

murbanowicz opened this issue Mar 5, 2020 · 90 comments
Labels
area-setup Issues related to installing .NET Core

Comments

@murbanowicz
Copy link

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).

@scalablecory
Copy link
Contributor

@dagood @leecow

@leecow
Copy link
Member

leecow commented Mar 6, 2020

@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

@baskmau
Copy link

baskmau commented Mar 8, 2020

@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.

@phillip-haydon
Copy link

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.

@dagood
Copy link
Member

dagood commented Mar 9, 2020

You have a few options in the meantime:

  • Use the binary installer. ("Binaries" link in the table from https://dotnet.microsoft.com/download/dotnet-core.)
  • Create your own "fake" package to resolve the dependency. Take a look into the 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.)

@baskmau
Copy link

baskmau commented Mar 11, 2020

@dagood - thank you very much!!!

@markusschaber
Copy link

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.

@yokovaski
Copy link

Any news on this?

@leecow
Copy link
Member

leecow commented Apr 23, 2020

@NikolaMilosavljevic for an update

@NikolaMilosavljevic
Copy link
Member

All PRs were completed a month ago. There are upcoming servicing releases for 2.1 and 3.1 and 5.0 preview.

5.0: dotnet/runtime#34079
3.1: dotnet/core-setup#9015
2.1: dotnet/core-setup#9016

All these changes added support for libicu65 and libicu66.

@wshaddix
Copy link

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'

@Fredrik81
Copy link

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'

There are no dotnet packages yet for 20.04 in the repository.

@wshaddix
Copy link

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'

There are no dotnet packages yet for 20.04 in the repository.

Is there an ETA on the packages being put in the repository?

@rodrigoreis
Copy link

Please provide this packages.

@phillip-haydon
Copy link

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.

@abhisheksubbu
Copy link

phillip-haydon approach worked perfectly in Ubuntu 20.04

@DenSmoke
Copy link

DenSmoke commented Apr 24, 2020

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

@vinceshere
Copy link

vinceshere commented Apr 24, 2020

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

@DimitriPapadopoulos
Copy link

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

@dagood
Copy link
Member

dagood commented Apr 25, 2020

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?)

@kpm
Copy link

kpm commented Apr 26, 2020

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.

@ranieuwe
Copy link

@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.

@Fredrik81
Copy link

Just release it already :-D

@DenSmoke
Copy link

I am agree with @Fredrik81. Such a shame that MS couldn't release packages for Ubuntu 20.04 which is LTS version

@byroniac
Copy link

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

@leecow
Copy link
Member

leecow commented May 13, 2020

@byroniac - we'll get the docs updated to reflect the availability of 20.04.

cc @mairaw and @Thraka

@merschformann
Copy link

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

@superbonaci
Copy link

@merschformann isn't there any repository so dependencies are met automatically?

@byroniac
Copy link

@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).

@Mizux
Copy link

Mizux commented May 13, 2020

@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 dotnet/docs#17638

@ESharawy99
Copy link

@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.
Captura de pantalla de 2020-05-13 19-19-09

@mairaw
Copy link
Contributor

mairaw commented May 14, 2020

You can see the draft of the changes at https://github.com/dotnet/docs/pull/18160/files

@byroniac
Copy link

byroniac commented May 14, 2020

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.

@GodPhwng
Copy link

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

@superbonaci
Copy link

superbonaci commented May 17, 2020

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

@mikevanl
Copy link

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..

@dagood
Copy link
Member

dagood commented May 27, 2020

@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.

@Eptagone
Copy link

Eptagone commented May 29, 2020

Try to add ":amd64" to the end of dotnet's package names.
Like this:
sudo apt install dotnet-sdk-3.1:amd64

@Pablofr10
Copy link

Pablofr10 commented Jun 15, 2020

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)

@yelsnitrk
Copy link

I have this same error. I am using ubuntu on ARM32. any suggestions?

@dagood
Copy link
Member

dagood commented Jul 3, 2020

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

@yelsnitrk
Copy link

Thanks. I downloaded the binary that I want to my /home/user directory. What next?

@dagood
Copy link
Member

dagood commented Jul 3, 2020

@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.

@default-writer
Copy link

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'
#!/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

@Mizux
Copy link

Mizux commented Aug 1, 2020

@Spongman
Copy link

Spongman commented Aug 25, 2020

come on, arm64 .debs alredy.

@Dave3991
Copy link

  1. add repository - https://docs.microsoft.com/en-us/windows-server/administration/linux-package-repository-for-microsoft-software
  2. sudo apt-get install -y dotnet-sdk-3.1
    and you are done 👍

@averyfreeman
Copy link

averyfreeman commented Sep 19, 2020

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

@rogueco
Copy link

rogueco commented Nov 15, 2020

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.

@caiogasparino
Copy link

@rogueco

Thanks !!!

@iamsunny
Copy link

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

this worked for me.

sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-setup Issues related to installing .NET Core
Projects
None yet
Development

No branches or pull requests