unable to exec dpkg-divert

Had exactly the same error. Related to assigned memory size (only 512MB by default). Increase this in VM properties: "Processor and Memory". Also you might want to "Enable hypervisor applications in this virtual machine" under "Advanced" there.