I figured out that it would be better to open a new topic here for this issue.
I followed the example here to add my ROS package dependencies to the workspace. I think this is a fundamental feature to create ROS snaps. I followed the instructions and I’m trying since days without any success. Unfortunately, there is not too much information about the catkin/catkin-tools plugin out there.
In an example where I have only the catkin_simple package as dependency in the rosinstall file, this gives me the error message:
Installing wstool... Initializing workspace (if necessary)... Merging /root/parts/workspace/src/snap/local/snap.rosinstall Updating workspace... The authenticity of host 'github.com (18.104.22.168)' can't be established. RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Are you sure you want to continue connecting (yes/no)? yes Error updating workspace: Cloning into '/root/parts/workspace/src/src/catkin_simple'... warning: templates not found /usr/share/git-core/templates Warning: Permanently added 'github.com,22.214.171.124' (RSA) to the list of known hosts. firstname.lastname@example.org: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ERROR in config: Error processing 'catkin_simple' : [catkin_simple] Checkout of email@example.com:catkin/catkin_simple.git version None into /root/parts/workspace/src/src/catkin_simple failed.
The only things I have in this snap package are:
- snapcraft.yaml with:
... parts: workspace: plugin: catkin-tools source: . rosinstall-files: [snap/local/snap.rosinstall] catkin-packages: [catkin_simple] ...
- git: local-name: catkin_simple uri: https://github.com/catkin/catkin_simple.git
Adding a sudo ssh key results in the same error. Even changing SSH to https in the rosinstall file does not help and gives the additional error:
fatal: Unable to find remote helper for 'https' . I don’t understand why, since this is even a public repo. Both
ssh -T firstname.lastname@example.org and
sudo ssh -T email@example.com work fine as well as cloning in general.
Installing wstool... Initializing workspace (if necessary)... Merging /root/parts/ros-part/src/snap/local/snap.rosinstall Updating workspace... Error updating workspace: Cloning into '/root/parts/ros-part/src/src/ur_modern_driver'... warning: templates not found /usr/share/git-core/templates fatal: Unable to find remote helper for 'https' ERROR in config: Error processing 'ur_modern_driver' : [ur_modern_driver] Checkout of https://github.com/ros-industrial/ur_modern_driver version None into /root/parts/ros-part/src/src/ur_modern_driver failed.
I’m wondering if I’m the only one having this issue since there are not too many alternatives to this.