gpg-agent update prevents login/xserver start due to config error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnupg2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnupg-agent
gpg-agent prevented login (loop in gdm, xserver start fail) due to error (logged in ~/.xsession-
gpg-agent[7963]: /$HOME/
startx from console didnt work, too.
File content:
###+++--- GPGConf ---+++###
debug-level basic
log-file socket:
###+++--- GPGConf ---+++### Mo 07 Jul 2008 16:54:09 CEST
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
default-key XXsnipXX
$HOME inserted and key obfuscated ;)
commenting that line (default-key) with # solved the problem. I don't know when this was inserted, but there is a backup file with that line:
2010-11-14 23:01 gpg-agent.
Version and update which provoked the error:
gnupg-agent:
Installed: 2.0.14-1.1ubuntu2
Candidate: 2.0.14-1.1ubuntu2
Version table:
*** 2.0.14-1.1ubuntu2 0
500 http://
100 /var/lib/
from /var/log/
Start-Date: 2011-04-17 18:01:34
Install: libktnef4:i386 (4.5.1-0ubuntu1, automatic), pinentry-gtk2:i386 (0.8.0-1ubuntu0.1, automatic), libkleo4:i386 (4.4.6-0ubuntu1, automatic), libmessagelist4
End-Date: 2011-04-17 18:03:34
gpgconf doesnt list the option default-key:
$ gpgconf --list-options gpg-agent
Monitor:1:0:Options controlling the diagnostic output:0:0::::
verbose:
quiet:8:0:be somewhat more quiet:0:0::::
Configuration:
disable-
Debug:1:1:Options useful for debugging:0:0::::
debug-level:
log-file:8:1:write server mode logs to FILE:32:
Security:
default-
default-
max-cache-
max-cache-
ignore-
allow-mark-
no-grab:8:2:do not grab keyboard and mouse:0:0::::
Passphrase policy:1:1:Options enforcing a pass-phrase policy:0:0::::
enforce-
min-passphrase-
min-passphrase-
check-passphras
max-passphrase-
enable-
tags: | added: gdm gpg login |
Problem affects both Maverick and Natty, upgrades as well as new installs.
~/.xsession-errors contains:
/home/<user name>/. gnupg/gpg- agent-info- <machine name>: 1: Syntax error: Unterminated quoted string
Removing '/home/<user name>/. gnupg/gpg- agent-info- <machine name>' fixes the problem as a new file is generated upon login.
Inspiration on the fix for this problem from Ubuntu Forums: http:// ubuntuforums. org/showthread. php?t=1672145