mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-14 21:32:52 +00:00
Installation under Ubuntu 20.04 fails #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mathias-ho on GitHub (May 25, 2020).
When installing a debian package under Ubuntu 20.04 an error occurs.
Note: Because the RuntimeIdentifier (RID) ubuntu.20.04-x64 seems to be still missing in .NET Core 3.1.4, I use 18.04 to create the package.
Note2: For the error "Could not load file or assembly NuGet.Frameworks [...]" I already use the fix from https://github.com/qmfrederik/dotnet-packaging/issues/148#issuecomment-612954771
Note 3: Installation of the same package under Ubuntu 18.04 works fine.
Create package:
Creates the package as expected. Installation on Ubuntu 20.04 target machine gives:
I searched a lot but didn't find any solution so far. I'm even not sure if this is an issue with dotnet-packaging or somewhere else.
@mikebm94 commented on GitHub (Jun 27, 2020):
I've successfully installed the produced debian package locally under Ubuntu 20.04.
I used .NET Core 3.1.301 and published for the
linux-x64runtime instead ofubuntu.18.04-x64Is it possible for you to use the
linux-x64runtime instead?Also, when I tried
sudo apt-get install myproject.1.0.0.linux-x64.debI got this error:But, when I used
sudo apt-get install ./myproject.1.0.0.linux-x64.debit succeeded, no idea if it's relevant to your situation.I'm not sure what's happening on your end but this was my process:
Create a basic .NET Core 3.1 console application, and add set the
RuntimeIdentifierproperty tolinux-x64inmyproject.csprojOpen terminal and
cdto project directory and run:Output:
myprojectis in the PATH and executes fine.@wuzlai commented on GitHub (Jul 18, 2020):