Comment 3 for bug 1708315

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote : Re: package virtualbox-guest-utils-hwe 5.0.40-dfsg-0ubuntu1.16.04.1~16.04.3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

I suspect you installed a while ago some virtualbox-5.0 or virtualbox-5.1 from Oracle official website, and the script hasn't been deleted correctly because you never removed that package and installed the Ubuntu hwe one.

Please remove --purge it and install it again.