Install Issue - gpg: no valid OpenPGP data found error

I’m trying to install Kopia on and Unbutu server.

The first command is: curl -s https://kopia.io/signing-key | sudo gpg --dearmor -o /etc/apt/keyrings/kopia-keyring.gpg

I’m getting gpg: no valid OpenPGP data found error.

Ive tried the suggestion to use --no-check-certificate, also did not work.

You have problem with your gpg program. I have just tried on my Ubuntu and it works without any issues.

$ curl -s https://kopia.io/signing-key | sudo gpg --dearmor -o /etc/apt/keyrings/kopia-keyring.gpg

$ echo $?
0

$ pwd
/etc/apt/keyrings

$ ls -l
total 4
-rw-r--r-- 1 root root 1155 Feb 23 19:14 kopia-keyring.gpg

This is not kopia problem but your OS. Try to reinstall it (gpg not OS:)) and if it does not help seek help on your OS forums or google.

If not feeling like troubleshooting it you can download your OS kopia version directly from github - Releases · kopia/kopia · GitHub and install manually.

1 Like