mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-15 13:46:36 +00:00
Unable to Install the Deb Package #119
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 @jamsoft on GitHub (Jul 29, 2022).
I have my build system producing
.deband.rpmpackages. This is all working within my build process to produce the two packages.From my gitlab build ...
This is being built on PopOS 22.04.
I've set up a VM for testing this package also running PopOS 20.04.
I copied this
debpackage to the VM and double-clicked it to start the install. It immediately bombed with:Looking around, code 100 is a generic error so not much use on it's own. So I decided to try sudo apt-get.
This errors with:
I have created a few icon files and a .desktop file that are packaged within my
*.debpackage and aPostInstallScriptelement like this:Does anyone have any clues as to what's going on here? At this stage I'm not even sure what to google for potential solutions.
The first
E:error line is just monumentally confusing as it appears to not even find the package at all.Any pointers would be really appreciated.
@atauenis commented on GitHub (Jul 29, 2022):
Instead of
sudo apt-get install MyApp.1.0.0.linux-x64.deb, try to usesudo apt install ./MyApp.1.0.0.linux-x64.deborsudo dpkg -i MyApp.1.0.0.linux-x64.deb(more correct way, but doesn't installs dependencies automatically).Also it is better to use
<LinuxPath>instead of postinst script:@jamsoft commented on GitHub (Jul 29, 2022):
Ahhhhhhh, thank you. Will go investigate. Strinctly speaking there shouldn't be any dependencies. I'm AOT compiling my .NET 6 application so at least that element is simpler. Thanks for the response.
@jamsoft commented on GitHub (Jul 30, 2022):
I've made a bit of a discovery. Using apt install revealed an issue:
So I started looking for a solution to that, which I think is a relevant
<RpmDotNetDependency Include="libunwind" Version="" />(I couldn't see any examples of a<DebDotNetDependency...here. So would an<RpmDotNetDependencywork?Whilst I was investigating this, I came across this post. Where it seems to suggest 1.1 is now deprecated.
So I'm unsure what to do at this point. I'm installing onto an instance of PopOS based on Ubunto 22.04.
Another comment on that SO thread reads:
Any pointers on how to navigate this would be appreciated. I'm honestly not sure what would be introducing this dependency within my application so I'm assuming it's something to do with the packaging process itself.
@atauenis commented on GitHub (Jul 30, 2022):
Add
<SelfContained>False</SelfContained>to csproj file, this should removelibsslrequirement. Exactly, the app will require onlydotnet-runtime-6.0package and nothing more.They're almost identical with RpmDotNetDependency.
There also a some syntax for setting package versions, it is diffrent for Deb and Rpm. I have almost no experience with it, but probably it may be found in deb/rpm manuals (e.g.
man deb-controlin Debian and something similar in RedHat-like about RPM). At least for debs, the syntax from Debian manpage is working.@jamsoft commented on GitHub (Jul 30, 2022):
Thanks for this, will investigate.
One issue here is I cannot remove self-contained=true as it's a requirement for the AOT compilation.