apt-get -f 설치에 실패하면 어떻게 해야 합니까? [폐쇄]

apt-get -f 설치에 실패하면 어떻게 해야 합니까? [폐쇄]

내 상황은 매우 어렵습니다.

Debian Jessie/Stretch에서 실패했습니다 apt-get -f install.

시스템이 효과적으로 정체되었습니다. 지금 SSH가 있습니다. 로그인 터미널에 관한 한 하나만 사용할 수 있습니다. (즉, alt-ctrl-F1만 실제 시스템에 로그인 터미널을 불러왔고, alt-ctrl-f[2-5]는 실패했습니다).

나열된 오류와 관련된 것 같습니다.여기. 하지만 몇 가지 문제가 있습니다. PolicyKit 시간 초과에 도달했기 때문에 krb-kdc가 압축을 풀지 못하고 (g-io-error-quark, 24), LDAP가 활성화되어야 한다는 오류 메시지와 함께 krb5-admin-server의 압축을 풀 때 오류가 발생합니다(활성화되어 있고 연결이 괜찮습니다).

즉, apt-get에는 여러 시간 초과가 있습니다(PolicyKit 비트의 경우인 것 같습니다). 네트워크의 경우 타임아웃을 1200으로 설정했는데 별 효과가 없는 것 같습니다. 전체 오류 메시지:

The following extra packages will be installed:
  krb5-admin-server krb5-kdc
Suggested packages:
  openbsd-inetd inet-superserver krb5-kdc-ldap
The following packages will be upgraded:
  krb5-admin-server krb5-kdc
2 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.
9 not fully installed or removed.
Need to get 0 B/320 kB of archives.
After this operation, 115 kB disk space will be freed.
Do you want to continue? [Y/n]
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 296869 files and directories currently installed.)
Preparing to unpack .../krb5-kdc_1.13.2+dfsg-2_amd64.deb ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to stop krb5-kdc.service: Connection timed out
Failed to get load state of krb5-kdc.service: Connection timed out
invoke-rc.d: initscript krb5-kdc, action "stop" failed.
failed to stop krb5-kdc
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to stop krb5-kdc.service: Connection timed out
Failed to get load state of krb5-kdc.service: Connection timed out
invoke-rc.d: initscript krb5-kdc, action "stop" failed.
failed to stop krb5-kdc
dpkg: error processing archive /var/cache/apt/archives/krb5-kdc_1.13.2+dfsg-2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to start krb5-kdc.service: Connection timed out
invoke-rc.d: initscript krb5-kdc, action "start" failed.
Preparing to unpack .../krb5-admin-server_1.13.2+dfsg-2_amd64.deb ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to stop krb5-admin-server.service: Connection timed out
Failed to get load state of krb5-admin-server.service: Connection timed out
invoke-rc.d: initscript krb5-admin-server, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PolicyKit1 timed out (g-dbus-error-quark, 20)
Failed to stop krb5-admin-server.service: Connection timed out
Failed to get load state of krb5-admin-server.service: Connection timed out
invoke-rc.d: initscript krb5-admin-server, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/krb5-admin-server_1.13.2+dfsg-2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
insserv: Service ldap has to be enabled to start service krb5-admin-server
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/krb5-kdc_1.13.2+dfsg-2_amd64.deb
 /var/cache/apt/archives/krb5-admin-server_1.13.2+dfsg-2_amd64.deb
Error: Timeout was reached
E: Sub-process /usr/bin/dpkg returned an error code (1)

질문:

  1. 강제로 또 무엇을 할 수 있나요 apt-get -f install?
  2. Jessie에게 롤백을 강제하면 도움이 될까요?

관련 정보