Failed to extract the cab file in the solution.

Got the following message when trying to deploy a solution file to the server:

Failed to extract the cab file in the solution.

Luckily Robert Bogue had already found the answer: we had duplicated an entry for a web part in our solution’s .ddf file. Apparently, makecab allows you to have the same file in the same location multiple times. I’m not really sure why it doesn’t just overwrite it, but in any case, the solution doesn’t know what to do with it either.