libpam-systemd:amd64错误


9

当我尝试运行sudo apt-get upgrade时,出现以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libpam-systemd:amd64 (204-5ubuntu20.7) ...
start: Job failed to start
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libpam-systemd:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

这使我无法安装某些东西,并且显然出了点问题。有人知道如何调试吗?


askubuntu.com/questions/448961/…在这里,您可以看到如何调试安装后脚本以发现错误
Pablo Hinojosa

建议在此处重新安装libpam软件包,但他们不说最终是否对他们有帮助:ubuntuforums.org/showthread.php?t=2281366
Gasp0de

Answers:


0

尝试一下

kernel.kptr_restrict = 1

或(重新)移动文件

/etc/sysctl.d/10-kernel-hardening.conf

现在更新过程可以完成了:)


0

今天,我用我们的一个遗留系统来解决这个问题。谷歌搜索时,这个问题是第一个结果。所以我在这里留下答案。

该问题与https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1325142有关

由于无法修复libpam-systemd软件包,它已关闭,但长长的注释队列包含一些提示,提示如何临时修复它以克服安装问题。

我们去评论服务重新启动invoke-rc.d systemd-logind start || exit $?

/var/lib/dpkg/info/libpam-systemd\:amd64.postinst

/var/lib/dpkg/info/libpam-systemd\:amd64.prerm

然后运行apt-get install设置了修复标志的命令:

apt-get -f install

并还原了以前版本的安装程序脚本。

当然,这不是最好的“解决方案”,但它使我们得以安装其他软件包。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.