При запуске sudo apt-get upgrade
я получил следующую ошибку
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-32 linux-headers-4.10.0-32-generic linux-image-4.10.0-32-generic linux-image-extra-4.10.0-32-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up grub-pc (2.02~beta2-36+elementary11+r6~ubuntu16.04.1) ...
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
Package grub-pc is not configured yet.
dpkg: error processing package grub-gfxpayload-lists (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
grub-pc
grub-gfxpayload-lists
E: Sub-process /usr/bin/dpkg returned an error code (1)
Может кто-нибудь сказать, что не так и как это исправить.
Я также не могу установить пакет из-за этой ошибки.
sudo apt-get -f install
вывод
$ sudo apt-get -f install
[sudo] password for pi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub-pc (2.02~beta2-36+elementary11+r6~ubuntu16.04.1) ...
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of grub2:
grub2 depends on grub-pc (= 2.02~beta2-36+elementary11+r6~ubuntu16.04.1); however:
Package grub-pc is not configured yet.
dpkg: error processing package grub2 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
Package grub-pc is not configured yet.
dpkg: error processing package grub-gfxpayload-lists (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
grub-pc
grub2
grub-gfxpayload-lists
E: Sub-process /usr/bin/dpkg returned an error code (1)