git-ecosystem / sample-trace2-otel-collector

A sample custom collector to contain trace2receiver and associated config and installer scripts
MIT License
10 stars 2 forks source link

Installation Error: Cannot Set Security Execution Context for Maintainer Script #11

Open khossain-clgx opened 7 months ago

khossain-clgx commented 7 months ago

Hello,

I encountered an error while trying to install the sample-trace2-otel-collector_0.5.1_linux-amd64.deb package using dpkg. Here is the error message I received:


[root@test_]# sudo dpkg -i sample-trace2-otel-collector_0.5.1_linux-amd64.deb
(Reading database ... 15 files and directories currently installed.)
Preparing to unpack sample-trace2-otel-collector_0.5.1_linux-amd64.deb ...
dpkg (subprocess): cannot set security execution context for maintainer script: Invalid argument
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg: trying script from the new package instead ...
dpkg (subprocess): cannot set security execution context for maintainer script: Invalid argument
dpkg: error processing archive sample-trace2-otel-collector_0.5.1_linux-amd64.deb (--install):
 subprocess new pre-removal script returned error exit status 2
dpkg (subprocess): cannot set security execution context for maintainer script: Invalid argument
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 sample-trace2-otel-collector_0.5.1_linux-amd64.deb

I would appreciate any guidance or assistance in resolving this issue. Thank you in advance for your help.
jeffhostetler commented 6 months ago

Sorry, I was on vacation and missed this. Let me take a look.

jeffhostetler commented 6 months ago

@khossain-clgx Are you still having a problem with this?

I saw something like this once when I was working on the dpkg scripts. It's been a while, but I did at one point get my system wedged like this (not sure it was exactly this case) if either of the deb-scripts failed in any way, but I don't remember the details.

Please let me know if you're still having problems with this. It would be helpful if you could include some additional information or tracing.

Thanks!