Updates failing after crash

andcbii

Member
Jul 7, 2022
11
2
8
My PBS crashed while in the middle of an update. Now when i try and redo the update I'm getting this error:


Code:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 grub-pc : Depends: grub2-common (= 2.06-13+pmx6) but 2.06-13+pmx7 is installed
 grub2-common : Depends: grub-common (= 2.06-13+pmx7) but 2.06-13+pmx6 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs1:/# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  grub-common grub-efi-amd64-bin grub-pc grub-pc-bin
Suggested packages:
  multiboot-doc grub-emu mtools xorriso desktop-base
Recommended packages:
  os-prober
The following packages will be upgraded:
  grub-common grub-efi-amd64-bin grub-pc grub-pc-bin
4 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
3 not fully installed or removed.
Need to get 0 B/5,779 kB of archives.
After this operation, 57.3 kB disk space will be freed.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'grub-pc-bin' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

I've tried googling how to fix it, but nothing works. How can i redownload the bad package? This is what i get why i try to manually re install that package


Code:
root@pbs1:/# apt-get install --reinstall grub-pc-bin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 grub-pc : Depends: grub2-common (= 2.06-13+pmx6) but 2.06-13+pmx7 is to be installed
           Depends: grub-pc-bin (= 2.06-13+pmx6) but 2.06-13+pmx7 is to be installed
 grub-pc-bin : Depends: grub-common (= 2.06-13+pmx7) but 2.06-13+pmx6 is to be installed
 grub2-common : Depends: grub-common (= 2.06-13+pmx7) but 2.06-13+pmx6 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs1:/#