Kodi quit unexpectedly

Hi,

I removed Kodi as I got a message saying it needed upgrading and wouldn’t work properly without having version 17. Once I removed the old version I tried downloading and installing the latest, but it won’t install. I keep getting a message saying it quit unexpectedly. I’ve posted the error message I get at the link below.

https://pastebin.com/Nh41BZ4K

Any suggestions on what the problem is would be very welcome!

Thanks in advance,
Rob.