libapt-pkg does this. Also, maybe don't unmount the cwd (or any other directory) while updating your system.
** Package changed: aptitude (Ubuntu) => apt (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/771780 Title: aptitude stopped before finishing of update - (unreachable)/SomEdIrEcToRy/ -= (unmounted) =- To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/771780/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs