Update Errors, also on fix commands!

My YunoHost server

Hardware: Rackserver - VM
YunoHost version: 4.0.8.3 (stable).
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
All of the above
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
no

Description of my issue

Today I wanted to upgrade the installation but then this happened.

so I tried again, then this occurred;

Oh hey nice fix commands let’s try them…

Rough translation by bing.
Linux easycomp.cloud 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
afforded by applicable law.
Last login: Thu Feb 11 11:32:23 2021
root@easycomp:~# sudo apt install --fix-broken
Package lists are read in… Ready
Tree of requirements is built up
The status information is read… Ready
The following package is installed automatically and is no longer required:
linux-image-4.19.0-12-amd64
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B extra disk space will be used.
Setting up grub PC (2.02+dfsg1-20+deb10h3) …
/dev/disk/by-id/ata-VBOX_HARDDISK_VB8274e419-47df3d29 does not exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding:

dpkg reconfigure grub PC
dpkg: Grub PC (–configure) package processing error:
subprocess of package grub-PC script installed post-installation returned the error value 1
Errors found while processing:
grub PC
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@easycomp:~# sudo dpkg --configure -a
Setting up grub PC (2.02+dfsg1-20+deb10h3) …
/dev/disk/by-id/ata-VBOX_HARDDISK_VB8274e419-47df3d29 does not exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding:

dpkg reconfigure grub PC
dpkg: Grub PC (–configure) package processing error:
subprocess of package grub-PC script installed post-installation returned the error value 1
Errors found while processing:
grub PC
root@easycomp:~#

NO it won’t let me…

Any help please :wink:

Hmyeah it mentions some ata-VBOX_HARDDISK … does that ring any bell ?

Did something happen about your disks recently somehow ?

hmm I did move things to an other disk to expand the storage space as I noted in;

But then again 11 days ago I did an update and it was fine

Weeeell idk let’s try what it advices and :

dpkg-reconfigure  grub-pc
1 Like

/usr/sbin/dpkg-reconfigure: grub PC is damaged or not fully installed

oh no it became corrupted. Now lets release the fire!

What can I do to reinstall grub some where else so that it doesn’t get oopsie? if it reboots and fix the issue?

iiiiiii would avoid rebooting as grub is precisely kinda important during the boot process, so if it’s misconfigured the oopsie can become quite bigger …

Maybe let’s first look at lsblk to have a better idea of what are your disk devices…

Yeah gramma was far from correct there I ment that don’t get an optie if it reboots? and fix the issue?

Schermafbeelding 2021-02-11 om 13.28.16

Sooooo idk I would try something like grub-install /dev/sda

what comes after the … is it a placeholder or a long long long silence?

Installation finished no issues reported.

Now what?

Idk let’s randomly try again sudo apt install --fix-broken and sudo dpkg --configure -a ?

dpkg-reconfigure grub-pc
dpkg: fout bij verwerken van pakket grub-pc (–configure):
subproces van pakket grub-pc werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug
Fouten gevonden tijdens verwerken van:
grub-pc
root@easycomp:~# sudo apt install --fix-broken
Pakketlijsten worden ingelezen… Klaar
Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen… Klaar
Het volgende pakket is automatisch geïnstalleerd en is niet langer nodig:
linux-image-4.19.0-12-amd64
Gebruik ‘sudo apt autoremove’ om het te verwijderen.
0 opgewaardeerd, 0 nieuw geïnstalleerd, 0 te verwijderen en 2 niet opgewaardeerd.
1 niet volledig geïnstalleerd of verwijderd.
Na deze bewerking zal er 0 B extra schijfruimte gebruikt worden.
Instellen van grub-pc (2.02+dfsg1-20+deb10u3) …
/dev/disk/by-id/ata-VBOX_HARDDISK_VB8274e419-47df3d29 does not exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding:

dpkg-reconfigure grub-pc
dpkg: fout bij verwerken van pakket grub-pc (–configure):
subproces van pakket grub-pc werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug
Fouten gevonden tijdens verwerken van:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@easycomp:~#

dpkg reconfigure grub PC
dpkg: Grub PC (–configure) package processing error:
subprocess of package grub-PC script installed post-installation returned the error value 1
Errors found while processing:
grub PC
root@easycomp:~# sudo apt install --fix-broken
Package lists are read in… Ready
Tree of requirements is built up
The status information is read… Ready
The following package is installed automatically and is no longer required:
linux-image-4.19.0-12-amd64
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B extra disk space will be used.
Setting up grub PC (2.02+dfsg1-20+deb10h3) …
/dev/disk/by-id/ata-VBOX_HARDDISK_VB8274e419-47df3d29 does not exist, so cannot grub-install to it!
You must correct your GRUB install devices before proceeding:

dpkg reconfigure grub PC
dpkg: Grub PC (–configure) package processing error:
subprocess of package grub-PC script installed post-installation returned the error value 1
Errors found while processing:
grub PC
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@easycomp:~ #

Hmpf ok let’s grep -nr 'HARDDISK' /etc/

which one do I need to put between the ‘’ my brain is scrambled today

uuuuh idk just copypasta the command bruh…

grep -nr 'HARDDISK' /etc/

1 Like

I told you my brain was scrambled sarwy

Done that, now what back to the pervious fix commands?