Hi,
I have seemingly the exact same issue! I had enabled Ubuntu Pro on my 24.04 computer, which caused some warnings on the upgrade process, saying that select packages should be reinstalled from a supported repository. Ubuntu Pro repository was not apparently good?
Well, I continued on without remedying it, and I got to the point of terminal logs Building module(s).... It went on for tens of minutes, until suddenly the screen went black when I had a second earlier connected my bluetooth headphones, causing my headphones to disconnect, and the computer seemed to go hibernating.
I could not get it to wake up any more than getting the lights of the computer and keyboard on. I decided after 5min to forcefully shut it down with the power button. Booting it back up, I got an updated boot loader icon (spinner), under the computer manufacturer logo. After that, the screen was filled with the usual [OK] service-name logs, that is usually in the background, but no login screen ever came in the end. The result was a black screen with a blinkin cursor on the top left corner..
After some searching online, I found out that I may need to run an update on through the terminal. Well, after opening the terminal with ctrl+alt+f2, logging in and trying to upgrade two packages that had not upgraded yet, I got an error that I should fix something with dpkg (can’t remember the full command right now, but it tries to fix the dependencies). I am still running that command:
lots of Setting up package-name (version)
[…]
Autoinstall of module evdi/5.2.14 for kernel 7.0.0-34-generic (x86_64)
Building module(s)........... And so on...
I am getting every now and then (at 3-240s intervals, changing) a log of Bluetooth: hci0: Unknown advertising packet type: 0x20. Could the bluetooth package have not gotten upgraded correctly? There must be something else as well, causing problems.
Sorry for the format of the logs. I am on mobile, and could not get a new line in the code box (three ticks box).