libpam-ck-connector로 인해 apt-get이 실패함

libpam-ck-connector로 인해 apt-get이 실패함

내 데비안 서버에서 이것을 사용해 본 apt-get autoremove적이 있는데, apt-get계속 제거하려고 시도했지만 실패했기 때문에 아무것도 설치하거나 제거하지 않습니다 libpam-ck-connector.

무엇이든 설치하려고 할 때...예를 들어,apt-get install php5

(Reading database ... 28566 files and directories currently installed.)
Removing libpam-ck-connector:armhf ...
dpkg: error processing libpam-ck-connector:armhf (--remove):
unable to securely remove '/usr/share/doc/libpam-ck-connector/changelog.gz': Not a directory
Errors were encountered while processing:
 libpam-ck-connector:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)

달려가서 apt-get install libpam-ck-connector이걸 얻었는데...

libpam-ck-connector is already the newest version.
libpam-ck-connector set to manually installed.
The following NEW packages will be installed:
libck-connector0
0 upgraded, 1 newly installed, 0 to remove and 86 not upgraded.
1 not fully installed or removed.
Need to get 0 B/117 kB of archives.
After this operation, 96.3 kB of additional disk space will be used.
Selecting previously unselected package libck-connector0:armhf.
(Reading database ... 28560 files and directories currently installed.)
Unpacking libck-connector0:armhf (from .../libck-connector0_0.4.5-3.1_armhf.deb ) ...
Setting up libck-connector0:armhf (0.4.5-3.1) ...
dpkg: error processing libpam-ck-connector:armhf (--configure):
 package libpam-ck-connector:armhf is not ready for configuration
 cannot configure (current status `half-installed')
Errors were encountered while processing:
 libpam-ck-connector:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)

이 문제를 해결하는 방법에 대한 아이디어가 있습니까?

답변1

"usr/share/doc/libpam-ck-connector/changelog.gz"를 수동으로 삭제하면 패키지가 libpam-ck-connector더 이상 완전한 것으로 보이지 않습니다.

명시적으로 설치해 볼 수 있으며 apt-get remove libpam-ck-connector, 그래도 작동하지 않으면 apt-get install --reinstall libpam-ck-connector수동으로 제거하기 전에 강제로 다시 설치하십시오.

댓글에 있는 것과 같은 더 많은 파일/디렉터리를 수동으로 삭제하면 효과가 있을 수 있지만 시스템에 불필요한 정크 파일을 남겨두기 쉽습니다.

관련 정보