Kodi 17 something is wrong

After having to reinstall kodi 17, (it asked for a password that I didn’t have and after giving it the only two that were used on the client and server I figured I’d just reinstall and start afresh) No biggie really as I’d just installed it to check it out. I’ve mainly used Mythtv as my pvr but felt like a change.
So after purging the system of the kodi install and making sure all config files etc had been wiped I did a reboot and re-installed kodi using the same install method as the first time.
Though this time nothing worked.No kodi icon,

Code:
/usr/bin/kodi

didn’t work.

Code:
/usr/bin/kodi-standalone

and got this error

Code:
/usr/bin/kodi-standalone: 45: /usr/bin/kodi-standalone: /usr/bin/kodi: not found
/usr/bin/kodi-standalone: 45: /usr/bin/kodi-standalone: /usr/bin/kodi: not found
/usr/bin/kodi-standalone: 45: /usr/bin/kodi-standalone: /usr/bin/kodi: not found
/usr/bin/kodi --standalone  has exited in an unclean state 3 times in the last 0 seconds.
Something is probably wrong

The client machine has a fresh install of Elementary that has been updated while installing the original kodi install and my second attempt.
Any help appreciated. thanks
BrianmBlacke