[12:41] <BluesKaj> Hi all
[15:07] <sjovicic> hey
[17:52] <aac> Issues with 5g Wi-Fi connection dropping.
[19:07] <Elliria> Hey there, I did an NVIDIA driver update after being prompted for it in Kubuntu 22.04 LTS and now I can't boot unless I boot into the old kernel. Details are here and I'd love any advice any of you have: https://bpa.st/ISWRC
[19:39] <mmikowski> Elliria: Boot into the old kernel. Run sudo apt full-upgrade && update-initramfs -u -k all. Reboot. That will likely fix it.
[19:41] <Elliria> Blast. I already did this command that someone in the Ubuntu channel recommended: sudo ubuntu-drivers install
[19:41] <mmikowski> you might want to ensure the package manager doesn't have a broken install, so you might run 'sudo apt install --fix-broken'
[19:41] <Elliria> I haven't tried rebooting yet, but will copy your command as the next thing to try if that didn't do it.
[19:42] <mmikowski> In any event, it's likely the initrd just didn't get updated for the latest kernel. That can happen when the kernel and the drivers get updated together.
[19:42] <mmikowski> Once that's sorted, usually everything works fine.
[19:43] <mmikowski> We don't see nvidia upgrade support issue often, but when we do, that's usually the root cause.
[19:47] <Elliria> Should I try rebooting first or should I do all of your commands first? I already did the sudo ubuntu-drivers install command a couple of minutes ago with this result and haven't rebooted yet: https://bpa.st/ZQHAM
[19:52] <Elliria> According to the person who's been helping me with this in the Ubuntu channel, lines 392 and onward look like they helped with the initrd.
[19:57] <Elliria> I haven't run the longer command that you gave me yet, but I ran the "sudo apt install --fix-broken" command with this output: https://bpa.st/JGV7I
[20:10] <Elliria> Between the "sudo ubuntu-drivers install" that I had already done before I saw your messages and your "sudo apt install --fix-broken" command, the problem is solved and I was able to boot successfully. Thank you so much for the help!
[20:57] <mmikowski> Elliria: Sorry, I was away from keyboard, but great news!
[20:59] <Elliria> Yeah, it worked perfectly. I kept your instructions, though, in the event this happens again in the future.
[20:59] <mmikowski> Elliria: The fix install did not look necessary. What like did the trick was the ubuntu-drivers install, which brought in the nvidia drivers and, critically, probably updated initramrd *automatically*.  Once that's done, its smooth sailing.
[21:00] <Elliria> Should I do that one again in the future if this happens again?
[21:01] <mmikowski> Well, the fix install repairs the apt database to use all the correct packages. It's always good to keep it in mind if things go sideways, and it rarely hurts to run it.
[21:02] <mmikowski> I do see you have two packages that aren't upgraded. You can use 'sudo apt full-upgrade' which may install them.  That's not a bad idea. They may be held back because a standard install will not make more drastic changes that are sometimes required.
[21:02] <Elliria> Yeah. I meant your other longer command that I hadn't run yet because I'd already done the ubuntu-drivers command.
[21:02] <Elliria> Which two?
[21:03] <Elliria> And could those have been showing because I was booted into the older kernel?
[21:03] <mmikowski> The two packages are not identified; you can see it in your paste bin at the bottom: https://bpa.st/JGV7I "0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded."
[21:03] <mmikowski> Those will show regardless of the booted kernel.
[21:04] <Elliria> Can I run that command again to see what it shows now that I've rebooted?
[21:04] <Elliria> Ah, okay. It would be nice if it told me what they are.
[21:04] <mmikowski> Yeah, but if you try a full upgrade, it will tell you, and then you can decline or proceed.
[21:05] <Elliria> This is the command I hadn't run that you had suggested: sudo apt full-upgrade && update-initramfs -u -k all
[21:05] <Elliria> By the time I saw it, I had already done this command: sudo ubuntu-drivers install
[21:07] <mmikowski> that should be mostly harmless. To make it more harmless, use 'update-initramfs -u -k $(uname -r)'. The reason that moderately less risky is it updates the initrd for only your running kernel instead of all of them.
[21:08] <mmikowski> So handy to keep around, but I again highly expect that the update-initramfs command was already run by ubuntu-drivers.
[21:09] <mmikowski> To complete the thought on why updating initrd for a single kernel is safer: if it gets corrupted for some reason (rare, but it happens), you won't be changing all initrds at once, and so falling back to an earlier kernel is more likely to succeed.
[21:09] <Elliria> Since everything seems to be working well now, can I just do this command to find out what those two packages are? sudo apt full-upgrade
[21:10] <mmikowski> Right
[21:12] <Elliria> Here's what it did: https://bpa.st/WWSYC
[21:13] <Elliria> I'm not seeing the two packages, but I'm not good at reading those things.
[21:58] <mmikowski> Ellira: Looks like you are all set.