I think the problem is somehow related to exiv2 which digikam relies on. I think Ubuntu does not accept exiv2 0.26 and later versions due to some security holes or something of the sort making it hard building the latest version of digikam on that platform.