I ran into a similar issue, where the installer was complaining about a printer driver.
Try removing the Xauthorization file from the /var/lib/dpkg/status.
Then run the sudo dpkg --configure -a command. You can always manually copy the Xauthorization file again after the upgrade.