最近一段时间在给arm板子上面的ubuntu server安装图形界面,在安装lxde过程当中遇到了Package libpam-systemd:armhf is not configured yet. 等问题,这个过程纠结了好久,但结果并不如意。今天在查找问题时偶然发现了这个网站bug,原来是内核太老的原因。
Setting up libpam-systemd:armhf (204-5ubuntu20.19) ...
start: Job failed to start
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:armhf (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pulseaudio:
pulseaudio depends on libpam-systemd; however:
Package libpam-systemd:armhf is not configured yet.
dpkg: error processing package pulseaudio (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of policykit-1:
policykit-1 depends on libpam-systemd; however:
Package libpam-systemd:armhf is not configured yet.
dpkg: error processing package policykit-1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pulseaudio-module-x11:
pulseaudio-module-x11 depends on pulseaudio; however:
Package pulseaudio is not configured yet.
dpkg: error processing package pulseaudio-module-x11 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of colord:
colord depends on policykit-1 (>= 0.103); however:
Package policykit-1 is not configured yet.
dpkg: error processing package colord (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libpam-systemd:armhf
pulseaudio
policykit-1
pulseaudio-module-x11
colord
If it helps anyone else, I was getting this because my VPS provider was (unbeknownst to me) overriding the default kernel and using the same kernel as when the server was first created (a 2.6 one). Once I bumped this up to a less ancient version, there was no longer a problem.
To check if you’ve got the same problem, this was the step in the postinst script which failed for me:
sudo invoke-rc.d systemd-logind start
and looking in the log:
sudo tail /var/log/upstart/systemd-logind.log
gave this line which indicated an old kernel without cgroups support:
mount: mount point /sys/fs/cgroup does not exist
所以,需要更新内核!

