question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet-sdk-2.1 fails to install on Ubuntu Server 18.04.1

See original GitHub issue

Steps 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
jameschchcommented, Jul 7, 2019

Had the same problem on Ubuntu 16.04 and I guess the solution is similar regardless:

sudo apt-get remove libicu57
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7ubuntu0.4_amd64.deb
sudo dpkg -i libicu55_55.1-7ubuntu0.4_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4.15_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2g-1ubuntu4.15_amd64.deb
sudo apt-get install dotnet-sdk-2.2
5reactions
mikehardercommented, Aug 21, 2018

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:

sudo add-apt-repository universe
Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found