Keep getting broken dependencies

Hi all, I use Ubuntu 16.04.
I recently tried to upgrade from kodi 16.1 to the latest 17. krypton. I followed the upgrade procedure “sudo add-apt-repository ppa:team-xbmc/ppabut” and then “sudo apt update” then “sudo apy install kodi” Something obviously went wrong because I ended up with kodi 18 alpha. I tried to remove it “sudo apt install ppa-purge && sudo ppa-purge ppa:team-xbmc/ppa” and then tried to reinstall Kodi. But this time I ended up with

“The following packages have unmet dependencies.
kodi : Depends: kodi-bin (>= 2:16.1~git20160425.1001-final-0xenial) but it is not going to be installed
Depends: kodi-bin (< 2:16.1~git20160425.1001-final-0xenial.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.”
i tried “sudo apt-get install -f” and “sudo apt-get update && sudo apt install kodi” But I still get unmet dependencies.

I have since learned that version 18 of Kodi is a “nightly” version. I am not aware of trying to install it but it seems that this could be the source of my problem.
If someone could please assist me in getting back to kodi 16 or the upgrade 17, I will be most grateful. Many thanks.