PS: Please use a power backup next time instead of raw-dogging life.
Right after first boot, tried running sudo apt update but it kept breaking with the error:
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_trixie_main_binary-armhf_Packages (1)
E: The package lists or status file could not be parsed or opened.After days of searching around on the internet and some fixes temporarily working (like the one described in this thread), I have finally figured out the permanent fix for this.
I still don't get how this works, or what the issue really is, maybe Raspberry Pi has forsaken Pi Zero W...
Confirm that the error message is similar to:
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_trixie_main_binary-armhf_Packages (1)
E: The package lists or status file could not be parsed or opened.If yes, then remove the corrupted list using
sudo rm /var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_trixie_main_binary-armhf_PackagesAt this point, sudo apt update should start working already. But this will only work once. After you run the update command successfully,
you will then get the same error again, ie, it will be fixed only temporarily. To fix it permanently, run upgrade command first instead.
After removing the corrupted list, run upgrade command
sudo apt upgradeCheck that all apt commands are now stable.
sudo apt update
sudo apt upgrade