So ran through some linuxy things - as this didn't feel like a pihole issue
debian:/tmp# ldd -v /usr/bin/pihole-FTL
not a dynamic executable
debian:/tmp# ls -lh /usr/bin/pihole-FTL
-rwxr-xr-x 1 root root 3.9M Aug 6 12:18 /usr/bin/pihole-FTL
debian:/tmp# sha1sum /usr/bin/pihole-FTL
88e7e5d394991b304eb1379a256b87f12ec56f0c /usr/bin/pihole-FTL
debian:/tmp#
so the file is there, but theres something not right
debian:/tmp# strings /usr/bin/pihole-FTL | head
td8n
/lib/ld-linux-armhf.so.3
libgcc_s.so.1
_ITM_deregisterTMCloneTable
__gmon_start__
__aeabi_unwind_cpp_pr0
_Jv_RegisterClasses
_ITM_registerTMCloneTable
__aeabi_unwind_cpp_pr1
libpthread.so.0
ahh - so we dont have the correct library for the binary
debian:/tmp# dpkg -S ld-linux-armhf.so.3
dpkg-query: no path found matching pattern *ld-linux-armhf.so.3*
lets install the package that contains it
debian:/lib# sudo apt-get install libc6-armhf-cross
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libc6-armhf-cross
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,147 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main armel libc6-armhf-cross all 2.24 -10cross1 [1,147 kB]
Fetched 1,147 kB in 0s (2,099 kB/s)
Selecting previously unselected package libc6-armhf-cross.
(Reading database ... 58380 files and directories currently installed.)
Preparing to unpack .../libc6-armhf-cross_2.24-10cross1_all.deb ...
Unpacking libc6-armhf-cross (2.24-10cross1) ...
Setting up libc6-armhf-cross (2.24-10cross1) ...
figure out where its actually installed
debian:/lib# dpkg -S ld-linux-armhf.so
libc6-armhf-cross: /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3
check it hasnt been symlinked yet
debian:/lib# stat /lib/ld-linux-armhf.so.3
stat: cannot stat '/lib/ld-linux-armhf.so.3': No such file or directory
debian:/lib# stat /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3
File: /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 -> ld-2.24.so
Size: 10 Blocks: 0 IO Block: 4096 symbolic link
Device: 801h/2049d Inode: 328332 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-08-06 12:32:19.000000000 +0100
Modify: 2017-05-16 05:01:45.000000000 +0100
Change: 2018-08-06 12:32:22.455855242 +0100
Birth: -
symlink it
debian:/lib# sudo ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3
However I still get:
debian:/lib# ldd -v /usr/bin/pihole-FTL
not a dynamic executable
Now I just dont have the errors in the upgrade script where it complains that it can't find the file. Just shows its ready for an update
debian:/lib# pihole -up
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: up to date
[i] FTL: update available
[i] FTL out of date, it will be updated by the installer.