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 (140.82.118.3)' 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,140.82.118.3' (RSA) to the list of known hosts.
git@github.com: 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 git@github.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]
...
- snap.rosinstall:
- 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 git@github.com
and sudo ssh -T git@github.com
work fine as well as cloning in general.
I also tried @kyrofa example here, which also gives me the https error:
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.