Hello, I encounter in my server the following situation: I can decrypt files but not encrypting any file:
$ gpg2 --version gpg (GnuPG) 2.1.19 libgcrypt 1.7.6 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: /home/guru/.gnupg-v2.1.19 Supported algorithms: Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 $ gpg -d sybase.gpg gpg: encrypted with 2048-bit RSA key, ID 2802AB9D46B97090, created 2018-03-11 "[email protected]" ... (clear text deleted) .... $ gpg2 -r [email protected] -ea test gpg: [email protected]: skipped: No public key gpg: test: encryption failed: No public key It seems that there is the file pubring.gpg missing: $ ls -ltr /home/guru/.gnupg-v2.1.19 total 36 -rw------- 1 guru wheel 32 11 mar. 2018 pubring.kbx~ -rw-r--r-- 1 guru wheel 1396 11 mar. 2018 pubring.kbx drwx------ 2 guru wheel 512 11 mar. 2018 private-keys-v1.d drwx------ 2 guru wheel 512 11 mar. 2018 openpgp-revocs.d -rw-r----- 1 guru wheel 676 28 mar. 2018 sshcontrol srwx------ 1 guru wheel 0 11 abr. 2018 S.scdaemon -rw-r--r-- 1 guru wheel 7 11 abr. 2018 reader_0.status -rw-r--r-- 1 guru wheel 37 1 ene. 2019 gpg-agent.conf -rw------- 1 guru wheel 600 6 sept. 2019 random_seed srwx------ 1 guru wheel 0 1 abr. 15:40 S.gpg-agent srwx------ 1 guru wheel 0 1 abr. 15:40 S.gpg-agent.extra srwx------ 1 guru wheel 0 1 abr. 15:40 S.gpg-agent.browser srwx------ 1 guru wheel 0 1 abr. 15:40 S.gpg-agent.ssh -rw------- 1 guru wheel 1280 1 abr. 16:17 trustdb.gpg Can I re-create the missing information/file somehow? Thanks matthias -- Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub _______________________________________________ Gnupg-users mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnupg-users
