Ошибка решетки

У меня проблема с apt-get. Некоторая ошибка произошла, когда я попытался обновить систему, и когда я попытаюсь исправить ее с помощью apt-get install -f, это не сработает с этим сообщением:

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 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
24 not fully installed or removed.
Need to get 0 B/1,706 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 ... 315805 files and directories currently installed.)
preparing to unpack .../grub-common_2.02~beta2-36ubuntu3.1_amd64.deb ...
Failed to stop grub-common.service: Unit grub-common.service not loaded.
invoke-rc.d: initscript grub-common, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop grub-common.service: Unit grub-common.service not loaded.
invoke-rc.d: initscript grub-common, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/grub-common_2.02~beta2-36ubuntu3.1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Failed to start grub-common.service: Unit grub-common.service not found.
invoke-rc.d: initscript grub-common, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 5
Errors were encountered while processing:
 /var/cache/apt/archives/grub-common_2.02~beta2-36ubuntu3.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Если я проверю статус службы с помощью service grub-common status I получите это:

grub-common.service
  Loaded: not-found (Reason: Not a directory)
  Active: inactive (dead)

И я обыскал grub-common с помощью apt search "grub-" |grep inst, я получаю это:

grub-gfxpayload-lists/xenial,now 0.7 amd64 [installed]
   Handles update-grub for ec2 instances
grub-pc/xenial-updates,now 2.02~beta2-36ubuntu3.1 amd64 [installed]
grub-pc-bin/xenial-updates,now 2.02~beta2-36ubuntu3.1 amd64 [installed]

Как это исправить?

1
задан 3 August 2016 в 12:43

0 ответов

Другие вопросы по тегам:

Похожие вопросы: