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.

Error installing SDK in Linux Mint 18.2

See original GitHub issue

Steps to reproduce

Following installation instructions from: https://www.microsoft.com/net/download/linux-package-manager/ubuntu18-04/sdk-current

sudo apt-get install dotnet-sdk-2.1 Causes error

Expected behavior

Installation of dotnet SDK

Actual behavior

This terminal output

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.2) but it is not going to be installed
                  Depends: aspnetcore-runtime-2.1 (>= 2.1.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Environment data

.NET Command Line Tools (1.0.1)

Product Information: Version: 1.0.1 Commit SHA-1 hash: 005db40cd1

Runtime Environment: OS Name: linuxmint OS Version: 18.2 OS Platform: Linux RID: ubuntu.16.04-x64 Base Path: /usr/share/dotnet/sdk/1.0.1

I’m surprised I was able to actually run ```dotnet --info`` because of the previous reported error

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
peterhuenecommented, Aug 1, 2018

Thanks, @leecow for the sharper eyes. @joel-g I’ve confirmed that using the Xenial feed @leecow linked to has no dependency issue.

To correct:

$ sudo apt-get remove packages-microsoft-prod

And then follow the instructions again at https://www.microsoft.com/net/download/linux-package-manager/ubuntu16-04/sdk-current.

Closing this issue as resolved. Please reactivate if you’re still unable to install the SDK. Cheers!

1reaction
leecowcommented, Aug 1, 2018

If you want to set up a Xenial system them you should use the Xenial feed, not the Bionic feed. See https://www.microsoft.com/net/download/linux-package-manager/ubuntu16-04/sdk-current for config steps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Program doesn't run - SDK error - Linux Mint 18.2
Hi,. I've been trying for hours to configure the IntelliJ Java SDK. I've tried both Open JDK 8 and the official Java 8...
Read more >
18.2 Installation error
I tried to install on a usb drive and it refused to continue past partitioning. Error: bad alignment of root partition that could...
Read more >
Mint 18.2 wont install, need help
I want to install linux mint. I have a lenovo think pad with a clean HDD (I erased it several times during the...
Read more >
Can't install Linux Mint 18.2 Sonya
I've trying everything to make my installation work. I have this problem : "grub-efi-amd64-signed package failed to install". I have Windows 10 ...
Read more >
Mint 18.2 installation problem
Hello,i tried to install mint 18.2(had problems with 18 and 18.1) from a usb drive,but the installer crashes(screenshot with the message i ...
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