If you updated the tools first (first entry, I think) then it appears to be an OpenHABian error. Dies sudo apt-get install openhab2=2.5.0~M2-1 work?
sudo apt-get install openhab2=2.5.0~M2-1