runtime: dotnet-dev-1.0.4 package fails to install on Ubuntu
From @ed-alertedh on May 10, 2017 0:32
Steps to reproduce
(taken from: https://www.microsoft.com/net/core#linuxubuntu )
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ yakkety main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet-dev-1.0.4
Expected behavior
dotnet-dev-1.0.4 package installs
Actual behavior
$ sudo apt-get install dotnet-dev-1.0.4
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-dev-1.0.4 : Depends: dotnet-sharedframework-microsoft.netcore.app-1.1.2 but it is not installable
E: Unable to correct problems, you have held broken packages.
If I run cat /var/lib/apt/lists/apt-mo.trafficmanager.net_repos_dotnet-release_dists_yakkety_main_binary-amd64_Packages
then I can confirm what apt-get is saying. There is no listing for dotnet-sharedframework-microsoft.netcore.app-1.1.2
, only for dotnet-sharedframework-microsoft.netcore.app-1.1.1
Workaround
I can install dotnet-dev-1.0.3
successfully.
Environment data
I’m on Ubuntu 17.04 (zesty) but apt-get appears to accept the 16.10 packages. I don’t think the issue is caused by the newer version of Ubuntu
dotnet --info
output:
N/A
Copied from original issue: dotnet/cli#6558
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 20 (8 by maintainers)
@wax911 The generic Linux binaries are a new addition for 2.0.
Confirming here as well, same reproduction steps.
sudo apt-get install dotnet-dev-1.0.4
fails with the same error message as @ed-alertedh . I’m running Ubuntu 16.10 deployed on a brand new Linode VM.Still not working here on 16.0.4
The following packages have unmet dependencies: dotnet-dev-1.0.4 : Depends: dotnet-sharedframework-microsoft.netcore.app-1.1.2 but it is not going to be installed Depends: dotnet-sharedframework-microsoft.netcore.app-1.0.5 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
I was having the same issue using the install instructions on https://www.microsoft.com/net/core#linuxubuntu
There is still a reference to yakkety in the instructions for Ubuntu 16.10. Once I read this thread and changed it to xenial, everything installed correctly.
sudo sh -c ‘echo “deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ yakkety main” > /etc/apt/sources.list.d/dotnetdev.list’
should be
sudo sh -c ‘echo “deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main” > /etc/apt/sources.list.d/dotnetdev.list’
16.0.4 packages should be available and I just verified.
Same issue, i use 16.04 ubuntu version.
Feed for 16.10 has been fixed.
sudo apt-get update && sudo apt-get install dotnet-dev-1.0.4
should behave now.Note again that for 17.04 you need to use the ‘generic’ Linux binary archive.