Originally Posted by
grahammechanical
You are being told that you have packages that are broken because of having unmet dependencies. The printout from apt has given you a command that will fix those broken packages. What packages are they? The printout from apt usually tells us what packages are broken. Is it Grub? Or, are they two different problems?
I'm not completely sure iof it's one or two problems. grub-pc is the package that generates and error
Did you run?
Code:
sudo apt install -f
What happened?
Regards
Yes I ran it and got the same error exactly
Code:
# dpkg --configure -a
Setting up grub-pc (2.02-2ubuntu8.23) ...
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
grub-pc
# apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub-pc (2.02-2ubuntu8.23) ...
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've been thinking of purging grub -pc and reinstalling it.
Code:
# apt purge grub-pc --simulate
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
grub-pc-bin grub2-common
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
grub-gfxpayload-lists* grub-pc*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
Purg grub-pc [2.02-2ubuntu8.23] [grub-gfxpayload-lists:amd64 ]
Purg grub-gfxpayload-lists [0.7]
Bookmarks