Harry's fixed worked for me also.
And for the people out there (like me) who have trouble deciphering code.
1.Find the mythexport.postinst file
(for me it was at /var/lib/dpkg/info (unbuntu 14.10))
2. remove the line with the -- (as you will see the -- is not actually
there)
3. add the line
Still seeing this error with 14.04 mythbuntu.
Setting up mythexport (2.2.4-0ubuntu2) ...
Progress: [ 98%]
mkdir: missing operand
Try 'mkdir --help' for more information.
dpkg: error processing package mythexport (--configure):
subprocess installed post-installation script returned error exit stat