alexreinert/piVCCU

Fehler beim Update

toste64 opened this issue · 8 comments

Hallo zusammen,

beim Update ist die Verbindung zum Raspberry abgebrochen. Nun weiß ich nicht was passiert ist, aber piVCCU3 startet nicht mehr automatisch. Ich kann es aber händisch starten. Insoweit funktioniert es noch.
Bei erneuten Update Versuch bekomme ich folgende Meldung:

Setting up pivccu-modules-raspberrypi (2.0-14) ...
Removing 'diversion of /var/lib/piVCCU/dtb/overlays/pivccu-raspberrypi.dtbo to /usr/share/rpikernelhack/overlays/pivccu-raspberrypi.dtbo by rpikernelhack'
dpkg-divert: error: error checking '/var/lib/piVCCU/dtb/overlays/pivccu-raspberrypi.dtbo': No such file or directory
dpkg: error processing package pivccu-modules-raspberrypi (--configure):
installed pivccu-modules-raspberrypi package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
pivccu-modules-raspberrypi
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt install --reinstall raspberrypi-bootloader raspberrypi-kernel raspberrypi-kernel-headers
sudo reboot
sudo apt install --reinstall pivccu-modules-raspberrypi
sudo reboot

Ich habe ähnliches. Nach apt -update/upgrade ging nichts mehr. Muss jetzt fixen mit dpkg --configure -a. Work-in-progress, jetzt erstmal den Pi fixen ;-)

Setting up pivccu-modules-raspberrypi (2.0-14) ...
Removing 'diversion of /var/lib/piVCCU/dtb/overlays/pivccu-raspberrypi.dtbo to /usr/share/rpikernelhack/overlays/pivccu-raspberrypi.dtbo by rpikernelhack'
dpkg-divert: error: error checking '/var/lib/piVCCU/dtb/overlays/pivccu-raspberrypi.dtbo': No such file or directory
dpkg: error processing package pivccu-modules-raspberrypi (--configure):
 subprocess installed post-installation script returned error exit status 2

hier nach einem sudo apt install --reinstall raspberrypi-bootloader raspberrypi-kernel raspberrypi-kernel-headers:

run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.19.66-v7l+ /boot/kernel7l.img
Setting up mariadb-server-10.1 (10.1.48-0+deb9u1) ...
Setting up pivccu-modules-raspberrypi (2.0-14) ...
Removing 'diversion of /var/lib/piVCCU/dtb/overlays/pivccu-raspberrypi.dtbo to /usr/share/rpikernelhack/overlays/pivccu-raspberrypi.dtbo by rpikernelhack'
dpkg-divert: error: error checking '/var/lib/piVCCU/dtb/overlays/pivccu-raspberrypi.dtbo': No such file or directory
dpkg: error processing package pivccu-modules-raspberrypi (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 pivccu-modules-raspberrypi
E: Sub-process /usr/bin/dpkg returned an error code (1)

hmmm:

$  sudo apt install --reinstall pivccu-modules-raspberrypi
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 13 not upgraded.
2 not fully installed or removed.
Need to get 0 B/119 MB of archives.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for pivccu-modules-raspberrypi:armhf

Hallo Alex,
habe das ausgeführt und das gleiche Ergebnis wie Dennis.

Ich kann noch mehr berichten dass der initiale Fehler auch auf ein fehlerhaftes Update zurückzuführen (und einen Abbruch dieses - dpkg hat sich über Nacht gelocked und kam nicht wieder, da hab ich neu gebootet) war. Ich machte ein apt update/upgrade und irgendwo im Update-Prozess ist piVCCU stecken geblieben. Ich sah noch einen whiptail Prozess der festhing. Vielleicht kam irgendein Firmware Upgrade mit dem Update mit und das hat sich aufgehängt?

What a mess, es läuft wieder und ich hab die neue Version 😊. Hier kommt die Magic:

sudo apt remove pivccu-modules-raspberrypi
sudo apt upgrade pivccu3
sudo apt install pivccu-modules-raspberrypi
reboot

Ich nehme an irgendeine Reihenfolge ging nicht klar beim automatischen update oder der Firmware upgrade Dialog der beim piVCCU mitkommt [(3.55.10-54) over (3.53.34-51)] hat irgendwie komisch reingefunkt im gesamten Prozess.

Ich bekam es nicht hin die pivccu-modules-raspberrypi zu (re-)installieren mit oben genannten Fehlern. Was klappt ist diese komplett zu deinstallieren, dann das piVCCU upgrade inkl. Firmware Upgrade machen, dann wieder zu installieren. Ich nehme aber an dass man hier noch etwas optimieren könnte?

@DennisGaida Muss ich dann das Backup einspielen?

Außer irgendwas schlimmeres geht schief - nein.

@DennisGaida Danke dir. Hat funktioniert!