Your topic is similar to ticket cant-update-to-1-3-1.
The problem is the permission to /dev/hidra*
To solve it following the link which @T.L.7Gadi has shared and flowing the chapter “Troubleshooting”:
Troubleshooting:
Issue: I get permission denied for /dev/hidrawX during update.
This likely means your user has not the needed permissions to read/write the device.
Please make sure you have set up the correct udev-rules. Download this udev-rules set and place it in
your udev rules directory (e.g., /etc/udev/rules.d). Then remove your Nitrokey 3 from the USB slot and run:
udevadm control --reload-rules && udevadm trigger or reboot your machine.
Afterwards the update should work without the permission issue.
If this doesn’t work, try to run the update as admin (sudo).