web-dev-qa-db-ja.com

満たされていない依存関係grub-common

現在、「依存関係が満たされていない」ため、apt-getで何もできません。これの修正を開始する方法がわかりません。の出力

Sudo apt-get upgrade

与える

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
 grub-efi-AMD64 : Depends: grub-common (= 2.02~beta2-36ubuntu3.2)
 grub-efi-AMD64-bin : Depends: grub-common (= 2.02~beta2-36ubuntu3.2)
 grub2-common : Depends: grub-common (= 2.02~beta2-36ubuntu3.2)
E: Unmet dependencies. Try using -f.

しようとすると

Sudo apt-get -f install

私は得る

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  grub-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following packages will be upgraded:
  grub-common
1 to upgrade, 0 to newly install, 0 to remove and 76 not to upgrade.
9 not fully installed or removed.
Need to get 0 B/1,707 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 241896 files and directories currently installed.)
Preparing to unpack .../grub-common_2.02~beta2-36ubuntu3.2_AMD64.deb ...
Failed to execute operation: Connection timed out
Failed to stop grub-common.service: Connection timed out
See system logs and 'systemctl status grub-common.service' for details.
Failed to get load state of grub-common.service: Connection timed out
invoke-rc.d: initscript grub-common, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Failed to execute operation: Connection timed out
Failed to stop grub-common.service: Connection timed out
See system logs and 'systemctl status grub-common.service' for details.
Failed to get load state of grub-common.service: Connection timed out
invoke-rc.d: initscript grub-common, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/grub-common_2.02~beta2-36ubuntu3.2_AMD64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Failed to execute operation: Connection timed out
Failed to execute operation: Connection timed out
Failed to start grub-common.service: Connection timed out
See system logs and 'systemctl status grub-common.service' for details.
invoke-rc.d: initscript grub-common, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/grub-common_2.02~beta2-36ubuntu3.2_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

また、実行するとタイムアウトが発生します

systemctl status grub-common.service

次のように:

Failed to get properties: Connection timed out
2
James

再起動とアップグレードが判明

Sudo apt-get upgrade

必要なのはそれだけでした。

実際に再起動できませんでした。実行中のサービスが応答しないという奇妙なもの(?!)。電源ボタンで怒りをやめたので、やらなければならなかったようです。これが誰かを助けることを願っています。

1
James