It get's stuck on the boot screen with the Ubuntu spiral thing.
This happens whenever there are packages to be upgraded (via sudo apt-get upgrade
)
Why does this happen and how to fix it?
Version: 20.04
Edits: (based on Bruni's comment)
How do you know there are packages to be upgraded if you are hang on the boot screen? How do you overcome this?
I boot into recovery mode, run dpkg
over there to find that some packages need upgrades. The upgrades here (in the recovery mode) fail due to some network related issue. Then I update the grub
through the recovery mode itself, this works fine. After this I resume
, it get's stuck on a black screen with a blinking cursor.
Then I force shutdown and power it back on. This time it boots perfectly. Then I run sudo apt-get upgrade
normally. The boot problem doesn't happen anymore (whenever it happens, there are some upgrades to install).
What is your disc setup (e.g. are there any partitions mounted that are on external disks)
I'm on a dual-boot system with UEFI secure-boot enabled. Windows is on SSD. I have partitioned the HDD into 2 parts. One part is used by Windows. The remaining is entirely for Ubuntu. Apart from the bootloader, I don't think there's any interaction between windows and ubuntu whatsoever.
Does this occur irrespective of the type of packages that are to be upgraded?
Yes