[ Error writing repository.json: Permission denied ]
Hi @geoxx3 can you please provide some context for your error?
If you have error saving or creating repository.json then i think you forget to get super user access. Try sudo before the command.
If you have issue sending curl request. Then probably you should check the command as http not https.
Some screenshot will help to understand your issue