Linux kernel update stuck

Solution 1:

I just "fixed" it. I was running Ubuntu with my Nvidia Graphics card all the time. I switched back to the build-in Intel graphics with the Nvidia Control Center and rebooted. After this, the configuration of the kernel didn't hang and everything seems to work as normal.

So if you also have this issue, try to change back to Intel graphics before running dpkg --configure -a