dotnet-sdk-2.1 fails to install on Ubuntu Server 18.04.1
See original GitHub issueSteps to reproduce
Follow instructions at https://www.microsoft.com/net/download/linux-package-manager/ubuntu18-04/sdk-2.1.401:
$ wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
$ sudo dpkg -i packages-microsoft-prod.deb
Selecting previously unselected package packages-microsoft-prod.
(Reading database ... 102222 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-ubuntu18.04.1) ...
Setting up packages-microsoft-prod (1.0-ubuntu18.04.1) ...
$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apt' instead of 'apt-transport-https'
apt is already the newest version (1.6.3ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get update
Get:1 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [2,846 B]
Get:2 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [21.0 kB]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Fetched 23.8 kB in 1s (35.2 kB/s)
Reading package lists... Done
$ sudo apt-get install dotnet-sdk-2.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-2.1 : Depends: dotnet-runtime-2.1 (>= 2.1.3) but it is not going to be installed
Depends: aspnetcore-runtime-2.1 (>= 2.1.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
CC: @leecow
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
dotnet-sdk-2.1 fails to install on Ubuntu Server 18.04.1 #9685
dotnet-sdk -2.1 fails to install on Ubuntu Server 18.04.1 #9685 ... Done $ sudo apt-get install dotnet-sdk-2.1 Reading package lists.
Read more >Install .NET SDK or .NET Runtime on Ubuntu 18.04
Demonstrates the various ways to install .NET SDK and .NET Runtime on Ubuntu 18.04.
Read more >Cannot install .Net Core 2.2 on UBuntu 18.04
But I am getting the error. Some packages could not be installed. This may mean that you have requested an impossible situation or...
Read more >Cannot install .NET Core on Ubuntu Bionic Beaver
200 : Depends: dotnet-runtime-2.0.7 but it is not going to be installed E: Unable to correct problems, you have held broken packages. I've...
Read more >How To Deploy an ASP.NET Core Application with MySQL ...
How To Deploy an ASP.NET Core Application with MySQL Server Using Nginx on Ubuntu 18.04 · Step 1 — Installing .NET Core Runtime...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Had the same problem on Ubuntu 16.04 and I guess the solution is similar regardless:
This appears to be a dup of https://github.com/dotnet/core/issues/1822 (also https://github.com/dotnet/core-setup/issues/4417). The workaround suggested in those issues works for me as well: