Install 1.0.0-preview2-003093 on Ubuntu 14.04, run any command (say, dotnet --info).
dotnet to work
dotnet --version
Failed to resolve library symbol hostfxr_main, error: dotnet: undefined symbol: hostfxr_main
Segmentation fault (core dumped)
dotnet --info output:
Failed to resolve library symbol hostfxr_main, error: dotnet: undefined symbol: hostfxr_main
Segmentation fault (core dumped)
Even stranger is that it seems to not be the build that I installed:
$ COREHOST_TRACE=1 dotnet -h
Tracing enabled
--- Invoked dotnet [version: 1.0.1, commit hash: d550e242a646770ed0652b40027221b9b2faf53d] main = {
dotnet
-h
}
Failed to resolve library symbol hostfxr_main, error: dotnet: undefined symbol: hostfxr_main
Segmentation fault (core dumped)
We are aware of this issue. Fix incoming.
Thanks @brthor!
LKG version is 1.0.0-preview2-003067
Perfect, that just saved me some hunting.
This issue only exists for tar.gz/zips, installers should be unaffected.
dotnet-install.(sh,ps1) -c preview -v 1.0.0-preview2-003067 is the safest/easiest way to get LKG 1.0.0 version, yeah?
dotnet/cli#3572 patching stage0 underway then this will go in
use 1.0.0-preview2-003096
@schellap This is a bad error when hostfxr can't be found though
I have had this error on Ubuntu 16.04 and 14.04.
I have had the problem when installing like this:
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet-dev-1.0.0-preview1-002702
But when I download and installing the dotnetcore DEB package from here
https://github.com/dotnet/cli#installers-and-binaries
All is working well!
thanks, @brthor using version 1.0.0-preview2-003096 works!
sudo apt-get install dotnet-dev-1.0.0-preview2-003096
dotnet --version
1.0.0-preview2-003096
Thanks for the confirmation @Choleriker @draptik :+1:
Thanks! This resolved my issue after upgrading to 16.04.
sudo apt-get install dotnet-dev-1.0.0-preview2-003096
works for me too
Most helpful comment
thanks, @brthor using version
1.0.0-preview2-003096works!