in scala sbt gpg ~ read.

Fix for "gpg: [don’t know]: invalid packet (ctb=2d) " error

In case if you're decided to publish some code to public repository, you'll have to provide a gpg key as a proof that it's actually you posting this code. But sometimes you can face with gpg: [don’t know]: invalid packet (ctb=2d) problem. Basically it means that your trustdb.gpg got corrupted. This is what helped me to fix this problem :

mv ~/.gnupg ~/dot.gnupg  
gpg —import ~/dot.gnupg/pubring.gpg$  
gpg —import ~/dot.gnupg/secring.gpg  

After that try to send your keys again to the server and that should work. At least it worked for me.

comments powered by Disqus
comments powered by Disqus