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

답변:


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

그리고 이전 버전의 설치 관리자 스크립트를 복원했습니다.

확실히, 가장 좋은 '솔루션'은 아니지만 다른 패키지를 설치하게되었습니다.

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.