I had the exact same issue. It actual problem is stated here by someone else, with a solution:
https://devtalk.nvidia.com/default/topic/1036167/linux/stuck-trying-to- intall-nvidia-390-ubuntu-18-04-lts-/ The problem is a dialogue requesting to set a password (for secureboot stuff) never pops up. I think the password must be 8 or more characters (not sure if there's an upper limit). A workaround given was when the update gets stuck, type a password in the terminal blindly and press return twice (using the same password both times). This worked for me, except I had to type the password in about 4 times. (This is not necessary in theory, but I think maybe you're supposed to press "return" at other occasions to pass "ok" checkpoints. Therefore, you have to type the password unnecessarily and press return because you don't know where the checkpoints are.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1775526 Title: package linux-image-4.15.0-22-generic 4.15.0-22.24 failed to install/upgrade: installed linux-image-4.15.0-22-generic package pre- removal script subprocess returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1775526/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs