Problem:
When I install the katello-host-tools-tracer package, the binary gets placed under /usr/sbin/katello-tracer-upload. When I install a new package and the package profile updates task runs, this task fails with the following error message:
sh: 1: /usr/bin/tracer-upload: not found
E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/tracer-upload'
E: Sub-process returned an error code
As you can see from the error message, this is caused by the task expecting the binary to be placed in /usr/bin/ and also it should be named tracer-upload instead of katello-tracer-upload
My temporary workaround for this is to create a softlink that points to /usr/bin/tracer-upload
I created this issue here because https://oss.atix.de/ refers to this community forum.
I would be glad if you could take a look on this issue and fix this.
Expected outcome:
The package profile updates task should be completed succesfully without any error messages.
Distribution and version:
katello-host-tools-tracer 1.0-1
Ubuntu 22.04.4
That the version installed on my servers, but Ubuntu 22.04 not Debian12
# apt list --installed | grep katello
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
apt-transport-katello/unknown,now 1.29.35-1 all [installed]
katello-host-tools-tracer/unknown,now 1.0-1 all [installed]
katello-upload-profile/unknown,now 1.29.35-1 all [installed]
python3-katello-host-tools-tracer/unknown,now 4.2.3-1 all [installed,automatic]
python3-katello-host-tools/unknown,now 4.2.3-1 all [installed,automatic]
I tested it as well and the error still occurs. It installs the binary inside of /usr/sbin/ with the name katello-tracer-upload But the program expects the binary to be called tracer-upload
That’s where the main problem is.