I have found this lines in my daemon.log in the moment the login is unsuccessful. I paste them here in case they offer some help:
Dec 18 15:38:53 localhost gdm-session-worker[7214]: GLib-GObject-CRITICAL: g_value_get_boolean: assertion `G_VALUE_HOLDS_BOOLEAN (value)' failed Dec 18 15:39:01 localhost gdm-session-worker[7214]: pam_sm_authenticate: Called Dec 18 15:39:01 localhost gdm-session-worker[7214]: pam_sm_authenticate: username = [shankao] Dec 18 15:39:01 localhost gdm-session-worker[7214]: pam_sm_authenticate: /home/shankao is already mounted Dec 18 15:39:05 localhost gdm-simple-slave[7319]: WARNING: Unable to load file '/etc/gdm/custom.conf': No such file or directory Dec 18 15:39:05 localhost acpid: client 7159[0:0] has disconnected Dec 18 15:39:05 localhost acpid: client connected from 7321[0:0] Dec 18 15:39:05 localhost acpid: 1 client rule loaded -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/659509 Title: Installing gnupg-agent makes gdm unable to login -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs