Possible duplicate of Bug #1608208. Try removing all old virtualbox packages prior to installing virtualbox 5. See my comment on Bug #1608208 for detailed commands to run in order to find all the ones you have installed.
Hint: Check for "ii" lines in output of: dpkg -l | grep virtualbox -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1708315 Title: 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1708315/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs