zenoh-plugin-ros2dds icon indicating copy to clipboard operation
zenoh-plugin-ros2dds copied to clipboard

[Bug] Deb install do not found systemctl even if it's present

Open ggari-robotnik opened this issue 1 year ago • 5 comments

Describe the bug

The installation of the zenoh-bridge-ros2dds 0.11.0-rc2 fails to found systemctl command, even if the command is found

To reproduce

command -v systemctl
/usr/bin/systemctl
echo $?
0
sudo dpkg -i zenoh-plugin-ros2dds_0.11.0-rc.2_amd64.deb
....
Setting up zenoh-bridge-ros2dds (0.11.0-rc.2) ...
WARNING: 'systemctl' not found - cannot install zenoh-bridge-ros2dds as a service.
/usr/bin/systemctl
``

### System info

- Platform: ubuntu 22.04.3 server
- CPU:  Intel(R) Core(TM) i7-10710U
- Zenoh version: 0.11.0-rc2 (deb)

ggari-robotnik avatar May 06 '24 10:05 ggari-robotnik

Tagging @diogomatsubara

Mallets avatar May 06 '24 15:05 Mallets

Hi @ggari-robotnik, thanks for the bug report!

I was unable to reproduce the exact issue you mentioned as it seems our debian repository is broken at the moment. I got a different error trying to install the zenoh-bridge-ros2dds package via apt on a pristine Ubuntu container. I'll debug this further today but I'm curious why you choose to install the zenoh-bridge-ros2dds via dpkg instead of apt. Did you get an error installing the zenoh-* packages on Ubuntu via apt and then tried to install the individual package manually using dpkg?

diogomatsubara avatar May 07 '24 07:05 diogomatsubara

Dear @diogomatsubara I use dpkg because sometimes in the past the zenoh apt repo has mixed versions. I wanted make sure that I have that version.

ggari-robotnik avatar May 08 '24 07:05 ggari-robotnik

Hi @ggari-robotnik , we just released 0.11.0-rc.3 and I tried the debian repository on a pristine ubuntu install and couldn't reproduce the issue. Could you give it a try? Another thing to consider is if there are any security profile applied to your OS which would make systemctl inacessible or not in the $PATH for the install process.

diogomatsubara avatar May 16 '24 09:05 diogomatsubara

Hey @diogomatsubara I found the similar issue on my Ubuntu 22.04 host. I believe the following PR fixes the same: https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds/pull/416

meetgandhi-dev avatar Mar 03 '25 16:03 meetgandhi-dev