NVIDIA-AI-IOT / ros2_jetson

81 stars 23 forks source link

curl: (77) error setting certificate verify locations #5

Closed tsadarsh closed 2 years ago

tsadarsh commented 2 years ago

I am trying to install ROS2 in Jetson Nano running jp461 - Ubuntu 18.04 bionic.

I cloned this repository and did a docker pull nvidiajetson/l4t-ros2-foxy-pytorch:r32.5. I am not in the Build process. I have already added the default Docker runtime and restarted docker. But when I do a sh docker_build.sh foxy l4tbase, I get the following error and the build fails:

...
Step 11/55 : RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
 ---> Running in bc304edca5f8
curl: (77) error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
The command '/bin/sh -c curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg' returned a non-zero code: 77

What am I supposed to do?

tsadarsh commented 2 years ago

Solved. Apparently the 7ef4714406299415aa47194490dc67ab4f9540de commit forces SSL and it fails. The change that I made was to simply revert back to that commit. Make the changes by seeing the diff: here