Error: unable to update local repository .git/objects/pack is corrupt

Expected Behaviour:

Updating Pihole to latest version running sudo pihole -up

pihole -v
Core version is v6.0.6 (Latest: v6.0.6)
Web version is v6.0.2 (Latest: v6.1)
FTL version is v6.1 (Latest: v6.1)

  • Debian 12
  • Raspberry Pi 4

Actual Behaviour:

sudo pihole -up
[✓] Supported OS detected
[✓] Update local cache of available packages
[✓] Building dependency package pihole-meta.deb
[✓] Installing Pi-hole dependency package

[i] Checking for updates...
[i] Pi-hole Core: up to date
error: inflate: data stream error (invalid bit length repeat)
fatal: packed object 37fcb780a761f5d47479479c0693ade0abb42ac4 (stored in .git/objects/pack/pack-eba22d7d13cfc1777066f59db52af96cd7909e53.pack) is corrupt

Error: Unable to update local repository. Contact Pi-hole Support.

Debug Token:

Your debug token is: https://tricorder.pi-hole.net/t5bALXpz/

I fixed this doing a reinstall and way to many other random things prior. Running this command

curl -sSL https://install.pi-hole.net | bash

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.