GPG is not working because of log-file configuration

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

GPG is not working because of log-file configuration

Basix
Hello, I'm a user of GPG and I got some problem.

Recently my machine showing this message when do something in GPG:

[sample@localhost ~]$ gpg
gpg: /home/sample/.gnupg/gpg.conf:5: invalid option
[sample@localhost ~]$ cat -n ~/.gnupg/gpg.conf
     1
     2 ###+++--- GPGConf ---+++###
     3 utf8-strings
     4 debug-level basic
     5 log-file socket:///home/sample/.gnupg/log-socket
     6 ###+++--- GPGConf ---+++### 2018년 02월 22일 (목)
     7 # GPGConf edited this configuration file.
     8 # It will disable options before this marked block, but it will
     9 # never change anything below these lines.

I think Kleopatra or another GPG frontend misconfigured my gpg.conf. How do I fix it myself?

--
Public PGP Key:  DB68 98D2 0F92 613C

_______________________________________________
Gnupg-users mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Reply | Threaded
Open this post in threaded view
|

Re: GPG is not working because of log-file configuration

Basix
On 일, 04 3월 2018 04:41 +0900, Basix <[hidden email]> wrote:
> Hello, I'm a user of GPG and I got some problem.

Sorry for another thread with same contents. My email client had some problem.


--
Public PGP Key:  0F92613C

_______________________________________________
Gnupg-users mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Reply | Threaded
Open this post in threaded view
|

Re: GPG is not working because of log-file configuration

Ingo Klöcker
In reply to this post by Basix
On Samstag, 3. März 2018 20:41:54 CET Basix wrote:

> Hello, I'm a user of GPG and I got some problem.
>
> Recently my machine showing this message when do something in GPG:
>
> [sample@localhost ~]$ gpg
> gpg: /home/sample/.gnupg/gpg.conf:5: invalid option
> [sample@localhost ~]$ cat -n ~/.gnupg/gpg.conf
>      1
>      2 ###+++--- GPGConf ---+++###
>      3 utf8-strings
>      4 debug-level basic
>      5 log-file socket:///home/sample/.gnupg/log-socket
>      6 ###+++--- GPGConf ---+++### 2018년 02월 22일 (목)
>      7 # GPGConf edited this configuration file.
>      8 # It will disable options before this marked block, but it will
>      9 # never change anything below these lines.
>
> I think Kleopatra or another GPG frontend misconfigured my gpg.conf. How do
> I fix it myself?

Remove the timestamp at the end of line 6. Apparently, the (UTF-8-encoded?)
Unicode characters confuse gpg.

GPGConf probably should write the timestamp in ISO date/time format instead of
in localized date/time format.


Regards,
Ingo




_______________________________________________
Gnupg-users mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Reply | Threaded
Open this post in threaded view
|

Re: GPG is not working because of log-file configuration

Werner Koch
On Sun,  4 Mar 2018 17:33, [hidden email] said:

> Remove the timestamp at the end of line 6. Apparently, the (UTF-8-encoded?)
> Unicode characters confuse gpg.

That looks like a c+p error.  The timestamp is an asctime and has no
Unicode characters.  But even then it won't harm because it is comment
line.

The problem the OP is due to the use of a gnupg-2 conf file with
gnupg-1.  If gnupg-1 is still required, the simpelest solution is to
create an empty  ~/.gnupg/gpg.conf-1 file.


Shalom-Salam,

   Werner


--
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

_______________________________________________
Gnupg-users mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-users

attachment0 (233 bytes) Download Attachment