Installing i386 and amd64 PAM stacks causes shutdown/logout/etc. to break
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Light Display Manager |
Invalid
|
Undecided
|
Unassigned | ||
| systemd (Ubuntu) |
Incomplete
|
Medium
|
Unassigned | ||
Bug Description
Hi,
After I upgraded to Ubuntu Trusty, I've seen that it is no longer possible to suspend/
My system :
Kubuntu 14.04 LTS AMD64
AMD Phenom 9850
8 GB RAM
NVidia GeForce 660 Ti w/ NVidia 331 driver
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: login 1:4.1.5.1-1ubuntu9
ProcVersionSign
Uname: Linux 3.13.0-18-generic x86_64
NonfreeKernelMo
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Mar 21 07:21:52 2014
ProcEnviron:
LANGUAGE=fr_FR
TERM=xterm
PATH=(custom, no user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: shadow
UpgradeStatus: Upgraded to trusty on 2014-03-20 (0 days ago)
| Julien Aubin (gojulgarbmail) wrote : | #1 |
- Dependencies.txt Edit (865 bytes, text/plain; charset="utf-8")
- LoginDefs.txt Edit (10.3 KiB, text/plain; charset="utf-8")
| affects: | shadow (Ubuntu) → lightdm (Ubuntu) |
| affects: | lightdm (Ubuntu) → systemd (Ubuntu) |
| Martin Pitt (pitti) wrote : | #2 |
| Changed in systemd (Ubuntu): | |
| status: | New → Incomplete |
| Martin Pitt (pitti) wrote : | #3 |
Oh, if it doesn't work, please copy&paste the entire output, there should be an error message (like permission denied by polkit or something). Please also give me the output of "loginctl".
| Julien Aubin (gojulgarbmail) wrote : | #4 |
Hi,
When launching gdbus, error is :
julien@
Erreur : GDBus.Error:
When trying to reboot :
julien@
Erreur : GDBus.Error:
julien@
Failed to issue method call: Cannot launch daemon, file not found or permissions invalid
Actually I had a similar bug with Saucy which has been fixed with an update of logind (now replaced with systemd)
| Changed in systemd (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Martin Pitt (pitti) wrote : | #5 |
If you run
sudo /lib/systemd/
what happens? I suppose this crashes somehow? If not, press Control-C to end it again. Please copy&paste the output.
> logind (now replaced with systemd)
For the record, that's wrong. ConsoleKit has been replaced with logind, and we don't use systemd (in the sense of "pid 1") yet.
| Changed in systemd (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Julien Aubin (gojulgarbmail) wrote : | #6 |
Oh and from my lightdm logs I also get the following messages :
QInotifyFileSys
QFileSystemWatcher: failed to add paths: /var/lib/
Bus::open: Can not get ibus-daemon's address.
IBusInputContex
QDBusError(
QDBusError(
QDBusError(
QDBusError(
Don't know if it is related...
| Julien Aubin (gojulgarbmail) wrote : | #7 |
Hi,
For the output, it gives me the following :
administrateur@
[sudo] password for administrateur:
Watching system buttons on /dev/input/event1 (Power Button)
Watching system buttons on /dev/input/event0 (Power Button)
New seat seat0.
Failed to save seat data for seat0: No such file or directory
However it does not crash...
| Changed in systemd (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Martin Pitt (pitti) wrote : | #8 |
> Failed to save seat data for seat0: No such file or directory
Interesting. But the mere fact that this worked and got so far shows that logind isn't running by default, which it should. Can you please do
sudo strace -fvvs1024 -o /tmp/logind.txt /lib/systemd/
and attach /tmp/logind.txt? This should give a better idea about the "Failed to save seat data for seat0".
| Changed in systemd (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Julien Aubin (gojulgarbmail) wrote : | #9 |
| Changed in systemd (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Julien Aubin (gojulgarbmail) wrote : | #10 |
I've also found this in my syslog :
Mar 26 07:46:00 pcathlon64 dbus[1249]: [system] Activating service name='org.
Mar 26 07:46:00 pcathlon64 dbus[1249]: [system] Activated service 'org.freedeskto
| Julien Aubin (gojulgarbmail) wrote : | #11 |
Also tried with qdbus with the following line (as I'm using KDE) :
qdbus --system org.freedesktop
Error: org.freedesktop
Cannot launch daemon, file not found or permissions invalid
| Julien Aubin (gojulgarbmail) wrote : | #12 |
Another stuff in my auth.log which may help :
Mar 26 21:13:14 pcathlon64 sudo: PAM unable to dlopen(pam_cap.so): /lib/security/
artagé: Aucun fichier ou dossier de ce type
Mar 26 21:13:14 pcathlon64 sudo: PAM adding faulty module: pam_cap.so
-- On every login
| Julien Aubin (gojulgarbmail) wrote : | #13 |
After installing pamcap in 64 bits message "PAM unable to dlopen(pam_cap.so): /lib/security/
| Martin Pitt (pitti) wrote : | #14 |
> 5260 mkdir("
That's worrying. That means that the /etc/init/
* Do you have the libpam-systemd package installed? If that's missing, nothing will work really.
* If you do "sudo start systemd-logind", what does that say?
| Changed in systemd (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Julien Aubin (gojulgarbmail) wrote : | #15 |
Hi,
To answer your questions :
1/
julien@
i libpam-systemd - system and service manager - PAM module
i libpam-systemd:i386 - system and service manager - PAM module
(I tried to reinstall it, does not fix the problem)
2/
administrateur@
[sudo] password for administrateur:
systemd-logind stop/pre-start, process 4754
And when I do then ps aux|grep 4754, no process is returned. In my syslog, I get the following message :
Mar 27 08:08:09 pcathlon64 dbus[1280]: [system] Activating service name='org.
Mar 27 08:08:09 pcathlon64 dbus[1280]: [system] Activated service 'org.freedeskto
OK I've found the issue :
1/ remove libpam-systemd:i386 and libsystemd-
Now everything should be fine.
| Julien Aubin (gojulgarbmail) wrote : | #16 |
However with the update (and a restart) I've seen that the suspend/
| Changed in systemd (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Martin Pitt (pitti) wrote : | #17 |
Do I get that right, you have an amd64 system, but had libpam-systemd:i386 installed, and that confused PAM? Hmm, I wonder how this can be avoided.
With the right libpam-systemd installed, do you still get that "Cannot launch daemon" error? What does the upstart job say now (i. e. sudo start systemd-logind)?
| Julien Aubin (gojulgarbmail) wrote : | #18 |
Hi,
I had both libpam-systemd:i386 and libpam-sytemd:amd64 on my AMD64 system and this confused PAM.
The upstart job now works fine, I don't have the "cannot start daemon". I didn't post the result of "sudo start systemd-logind" but it said "started daemon systemd-logind" or something like this. And just after that reboot and shutdown menu entries appeared in KDE but not the suspend one.
The only wrong things remaining is that I cannot suspend from the GUI (but restart and shutdown appear in the KDE menu) and from lightdm suspend/
| Julien Aubin (gojulgarbmail) wrote : | #19 |
To avoid this, it might be possible to set some kind of conflict between the i386 module and the amd64 module ? OK it smells, but this might be an option. What do you think ?
| Julien Aubin (gojulgarbmail) wrote : | #20 |
Hi,
I've also fixed the issue for the suspend feature and lightdm feature by removing packages libpam-modules:i386 and libpam-cap:i386, which have the same kind of conflict as explained above. I don't know what happened during the upgrade, but it looks like the upgrade tool was a bit lost between i386 and amd64 packages.
| Martin Pitt (pitti) wrote : | #21 |
The various PAM packages explicitly declare themselves as multi-arch compatible. Of course they could just drop their Multi-Arch: flag again so that you can only have the native PAM stack installed, not a foreign arch one in parallel. However, I suppose there was a specific reason to make them multi-arch compatible. Steve, do you know why this is beneficial, and how we could debug what's going on here if you install both stacks at the same time? Thanks!
| Changed in lightdm: | |
| status: | New → Invalid |
| summary: |
- cannot shutdown/suspend/restart from the GUI + Installing i386 and amd64 PAM stacks causes shutdown/logout/etc. to + break |
| Alberto Salvia Novella (es20490446e) wrote : | #22 |
It has a severe impact on a large portion of Ubuntu users.
| Changed in systemd (Ubuntu): | |
| importance: | Undecided → Critical |
| Steve Langasek (vorlon) wrote : | #23 |
> I had both libpam-systemd:i386 and libpam-
> on my AMD64 system and this confused PAM.
That makes no sense at all. PAM does not get confused by having the module available for multiple architectures. The amd64 libpam doesn't even *know* that the i386 pam module is installed, because these modules are (sensibly) each installed in architecture-
I don't believe that having libpam-systemd:i386 installed on your system had anything to do with the system being broken, any more than libsystemd-
The only thing that removing libpam-systemd:i386 from your system does is trigger the code in the prerm:
if [ "$1" = "remove" ] ; then
pam-auth-update --package --remove systemd
fi
However, this is a *bug* in the libpam-systemd package, because as a multiarch package, it should *not* remove the module from the config until the package is removed for all architectures. (Cf. libpam-cracklib's prerm in trusty.)
So instead of pam being confused by having libpam-systemd:i386 installed, you've broken your pam config by removing libpam-
Without making any further changes to the packages installed, please log out and log back in to confirm that your logind session is still in a working state; and if it is, please attach the /etc/pam.
Then please run 'sudo pam-auth-update --package', log out, log back in again, and tell us whether the suspend/
| Changed in systemd (Ubuntu): | |
| importance: | Critical → Undecided |
| status: | Confirmed → Incomplete |
| Julien Aubin (gojulgarbmail) wrote : | #24 |
- common-session Edit (1.5 KiB, text/plain)
Hi,
I've logged out and logged in and my logind session is still in a working state.
I've run sudo pam-auth-update --package and everything is fine.
Attached file /etc/pam.
| Changed in systemd (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Steve Langasek (vorlon) wrote : | #25 |
I asked that you attach the /etc/pam.
The file you've attached looks correct (it has pam_systemd listed in it), but this is exactly what we would expect to see after running 'pam-auth-update --package', so doesn't tell us anything.
For the sake of argument, could you please reinstall libpam-systemd:i386 and verify whether this impacts your session? It should not, but let's just rule it out completely.
If the bug does not reappear when installing libpam-
| Julien Aubin (gojulgarbmail) wrote : | #26 |
Hi,
After reinstalling libpam-systemd:i386 systemd-logind does not start anymore, however if I remove it it starts again.
So the issue really lies within the mix libpam:i386 and libpam:amd64
| Julien Aubin (gojulgarbmail) wrote : | #27 |
- common-session Edit (1.5 KiB, text/plain)
OK so after rebooting I got the issue with the suspend feature. I attach you the updated common-session file
| Julien Aubin (gojulgarbmail) wrote : | #28 |
And after re-running sudo pam auto-update --package everything was OK again
| Steve Langasek (vorlon) wrote : | #29 |
Ok, this definitely shows that common-session is broken after installing libpam-
Can you please also attach /var/log/dpkg.log and /var/log/
| Steve Langasek (vorlon) wrote : | #30 |
FWIW I've tested here, and installing libpam-systemd:i386 does not break common-session for me.
| Julien Aubin (gojulgarbmail) wrote : | #31 |
| Julien Aubin (gojulgarbmail) wrote : | #32 |
| Steve Langasek (vorlon) wrote : | #33 |
Nothing obviously wrong in the logs. term.log shows:
Log started: 2014-03-28 22:16:57
dpkg : avertissement : analyse du fichier '/var/lib/
champ « Depends », référence à « libqt4-opengl » : erreur dans la version: caractère non valable dans le numéro de version
Sélection du paquet libpam-systemd:i386 précédemment désélectionné.
(Lecture de la base de données... ^M(Lecture de la base de données... 5%^M(Lecture de la base de données... 10%^M(Lecture de la base de données... 15%^M(Lecture de la base de données... 20%^M(Lecture de la base de données... 25%^M(Lecture de la base de données... 30%^M(Lecture de la base de données... 35%^M(Lecture de la base de données... 40%^M(Lecture de la base de données... 45%^M(Lecture de la base de données... 50%^M(Lecture de la base de données... 55%^M(Lecture de la base de données... 60%^M(Lecture de la base de données... 65%^M(Lecture de la base de données... 70%^M(Lecture de la base de données... 75%^M(Lecture de la base de données... 80%^M(Lecture de la base de données... 85%^M(Lecture de la base de données... 90%^M(Lecture de la base de données... 95%^M(Lecture de la base de données... 100%^M(Lecture de la base de données... 339549 fichiers et répertoires déjà installés.)
Preparing to unpack .../libpam-
Unpacking libpam-systemd:i386 (204-5ubuntu13) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.6-1) ...
Paramétrage de libpam-systemd:i386 (204-5ubuntu13) ...
Log ended: 2014-03-28 22:17:20
No other packages being changed in unexpected ways, here, and the configuration of the package seems to have proceeded normally.
There is a dpkg error message about 'yabause-qt' that you should probably follow up on; this is a warning now but may become an error in the future, so whatever this unofficial version of yabause-qt is, you probably want to remove it from your sources.
But I don't see how that explains the issue you're seeing.
Is there any chance that you have a locally-modified version of pam-auth-update installed? Can you install the 'debsums' package and post the output of 'sudo debsums -s'?
| Steve Langasek (vorlon) wrote : | #34 |
and addition to the 'debsums' output, can you please confirm that 'which pam-auth-update' returns '/usr/sbin/
| Julien Aubin (gojulgarbmail) wrote : | #35 |
which pam-auth-update :
/usr/sbin/
For the yabause-qt it's an error in /var/lib/
Output of my debsums (some errors but nothing looks really critical) :
administrateur@
[sudo] password for administrateur:
debsums: invalid line (1) in md5sums for devolo-
debsums: missing file /usr/lib/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
debsums: missing file /usr/share/
| Steve Langasek (vorlon) wrote : Re: [Bug 1295521] Re: Installing i386 and amd64 PAM stacks causes shutdown/logout/etc. to break | #36 |
On Sun, Mar 30, 2014 at 07:02:47PM -0000, Julien Aubin wrote:
> Output of my debsums (some errors but nothing looks really critical) :
Ok. I'm sorry to say that at this point, I have no other ideas. Something
is going wrong with the install of this package on your system, but I can't
reproduce it here and there are no indications of any problems in your logs.
| Julien Aubin (gojulgarbmail) wrote : | #37 |
Once I've removed libgphoto2-2 :
^Cadministrateu
[sudo] password for administrateur:
debsums: invalid line (1) in md5sums for devolo-
| Gavin Graham (gavingraham) wrote : | #38 |
Since updating this morning, my Trusty install is now showing:
Apr 4 17:03:26 Gavin dbus[848]: [system] Activated service 'org.freedeskto
libpam-
Also can't mount external drives and anything else that depends on policykit. Can unlock admin under settings either although I am in the 'adm' group.
For example, trying to run update-manager yields:
org.freedesktop
| unknown (kirokko-deactivatedaccount) wrote : | #39 |
I've got the same problem as Gavin Gragam described earlier. I'm using Xubuntu 14.04 for a week, everything works fine until today. After last upgrade I've got a huge problem. I cannot mount external USB NTFS Driver via Thunar and cannot use shutdown, restart neither in system menu or login screen.
| John Franklin (ubuntu-sentaidigital) wrote : | #40 |
@gavingraham and @kirkko, you may be suffering from this bug. https:/
| Gavin Graham (gavingraham) wrote : | #41 |
I was indeed suffering from https:/
They have patched systemd-services and things are working again for me.
| Alberto Salvia Novella (es20490446e) wrote : | #42 |
It has a severe impact on a large portion of Ubuntu users.
| Changed in systemd (Ubuntu): | |
| importance: | Undecided → Critical |
| Steve Langasek (vorlon) wrote : | #43 |
If the bug were reproducible, critical would probably be the right severity. But so far, it's only seen on the system of a single user and we don't know why.
| Changed in systemd (Ubuntu): | |
| importance: | Critical → Medium |
| status: | Confirmed → Incomplete |
| Paul Andreassen (paulone) wrote : | #44 |
I have a pre 12.04LTS Kubuntu system I've upgrade to 12.04LTS and now to 14.04LTS. I remember the unable to logout, shutdown etc from 12.04 and the solution that worked then and now for me on 14.04LTS was:
sudo apt-get install --reinstall polkit-kde-1
and then reboot.
| Assarte D'Raven (fejlesztes-szikra) wrote : | #45 |
Hi,
Same effects on here after installing an IM named "Brosix" from http://
I used the commands below as Julien's suggested previously:
sudo pam auto-update --package
sudo apt-get remove libpam-systemd:i386 and libsystemd-
sudo apt-get remove libpam-modules:i386 libpam-cap:i386
After run these commands and a restart from terminal with sodo shutdown -r now problems are disappeared but Brosix removed too (because of its dependencies, I think).
| Michael Heuberger (michael.heuberger) wrote : | #46 |
Not sure if my problem is related to this one. At the moment I experience issues installing/updating libpam-
Sorry if this is off-topic but I am desperate to fix it. Here a log from sudo apt-get install libpam-systemd:
...
Setting up libpam-
start: Job failed to start
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libpam-
| Martin Pitt (pitti) wrote : | #47 |
Michael, sounds like you are running a custom kernel without cgroup support? (see bug 1325309). Fix it by enabling cgroups in the kernel.
| Martin Pitt (pitti) wrote : | #48 |
Julien et al, please have a look at bug 1382510. This is currently the most obvious case of logind breakage with libpam-systemd for both i386 and amd64 installed. (I. e. this bug is very likely a duplicate of 1382510)

As your normal user in a GUI session, can you please give me the output of
gdbus call -y -d org.freedesktop .login1 -o /org/freedeskto p/login1 -m org.freedesktop .login1. Manager. CanReboot
That ought to be something like "('yes',)".
If that says yes, can you confirm that rebooting works with
gdbus call -y -d org.freedesktop .login1 -o /org/freedeskto p/login1 -m org.freedesktop .login1. Manager. Reboot true
Thanks!