Binutils installs late - rpi2 - rasbi.debian.net Debian 12 Image

Hi. This relates to these images:

They aren't really official Debian releases so I'm not sure if it's a PiHole issue. Just flagging for visibility.

By default those images don't include binutils, and by extension readelf. Installing PiHole v5 works. The update to v6 then throws errors then installs binutils. If you immediately run the update again it works as expected.

The errors when the update to PHole v6 is first run are:

Right after the logo:
/etc/.pihole/automated install/basic-install.sh: line 1881: readelf: command not found

Detected GLIBC version 2.36
Detected ARMv4 or ARMv5 architecture ()

[i] man not installed
/etc/.pihole/automated install/basic-install.sh: line 2219: /usr/bin/pihole-FTL: cannot execute: required file not found

[✓] Restarting pihole-FTL service...
/opt/pihole/utils.sh: line 134: /usr/bin/pihole-FTL: cannot execute: required file not found

[i] Creating new gravity database
/opt/pihole/gravity.sh: line 68: /usr/bin/pihole-FTL: cannot execute: required file not found

[✗] Unable to create
[✗] Error creating new gravity database. Please contact support.
[✗] Unable to migrate to database. Please contact support.
Error: Unable to complete update, please contact support

If I can help at all, let me know.
Thanks,
Paul.

Ah, yeah, thanks for bringing this up. It seems we need to check for dependencies before using readelf to check if your system is able to execute the FTL binary.

That is good to know so it is only a matter of moving the check behind the dependencies.

https://github.com/pi-hole/pi-hole/pull/5451