I recently had a hell of a game trying to flush my Ubuntu Touch M10 to UBPorts. Nothing seemed to help. What are you using the MDT?
I installed another version of the MDT which installed a clean version of Touch. I then was able to install UBPorts from the Install using system-image server on the UBPorts > M10 > Core Device site.