Error upload file to apt hosted repository

Hi Pavel,
Most likely you have an issue with GPG key.

  1. Next instruction will help you to generate new GPG key in the Docker. Also, you can do it on the Debian machine if you don’t have Docker.

docker run -v /Users/<USER_NAME>/share_folder/:/root/share -it ubuntu
apt-get update
apt-get install gpg
gpg --gen-key
gpg --list-keys
cd /root/share
gpg --armor --output public.gpg.key --export 315F58C16D58E682E39A816AD7
gpg --armor --output private.gpg.key --export-secret-key 315F58C16D58E682E39A816AD7

  1. Be sure you are using private key not public in the Nexus repository settings.
  2. Important thing is to copy private key with all headers, next lines. If something in the document will be changed, GPG key becomes broken.
  3. If nothing help, I can share with you my temporary created GPG just for testing.

Good luck!

1 Like