ros-tooling / setup-ros

Github Action to set up ROS 2 on hosts
Apache License 2.0
86 stars 40 forks source link

Error: The process '/usr/bin/sudo' failed with exit code 1 #698

Closed aarsht7 closed 3 months ago

aarsht7 commented 3 months ago

Description

CI workflow exit with Error

Invoking "sudo rosdep init"
  /usr/bin/sudo rosdep init
  sudo: rosdep: command not found
Error: The process '/usr/bin/sudo' failed with exit code 1

Expected Behavior

Should not raise the error for command sudo Tested same thing with humble ad distro and it is working fine

Actual Behavior

Invoking "sudo rosdep init"
  /usr/bin/sudo rosdep init
  sudo: rosdep: command not found
Error: The process '/usr/bin/sudo' failed with exit code 1

To Reproduce

Use following in the workflow file.

steps:
      - name: Setup ROS 2
        uses: ros-tooling/setup-ros@0.7.1
        with:
          required-ros-distributions: jazzy

System (please complete the following information)

For ROS 2 bugs - please attach a VCS.repos or Dockerfile if possible to help us reproduce the environment

Additional context

aarsht7 commented 3 months ago

Sorry, was using older version. v0.7.7 does not reproduce the same issue. uses: ros-tooling/setup-ros@0.7.7