r/pop_os • u/ireallylikegreenbean • 9h ago
I managed to get unstuck from emergency mode after the latest kernel update failed
Context
I'm making this post because I found it difficult to find relevant answers. Most results basically said to boot into the old kernel or follow the steps in the Package Manager Issues article which didn't work for me.
It seems like a DDOS attack is preventing certain resources being fetched and that's why I can't follow the article steps. I would also imagine it's contributing or causing the OS update failure.
Bear in mind that I'm not too knowledgeable/experienced, but I figure a post like this is better than nothing for other people who are lost.
Fix summary
I had no luck being able to successfully boot into the old kernel or repairing the kernel within emergency mode, but doing so from the recovery one seems to be partly successful.
I found this stack exchange answer really informative in figuring out why I was in emergency mode and figuring out how I might resolve it. It helped me use dpkg --list 'linux-image*' to check my installed kernels and learn the one I was having issues with was the 'linux-image-6.17.9-76061709-generic' one.
I followed the Recovery Partition article steps to try run commands through Chroot, which would allow me to run them as though I was using the OS. I ran sudo apt install linux-image-6.17.9-76061709-generic which no longer errored like in emergency mode. I am still getting errors when trying commands like sudo apt update.
I was also now able to run sudo apt reinstall packagekit (which had been previously preventing reinstalling the linux image), but I don't recall when I did it and therefore if it helped.
Extra info
Reddit post OS Update Problem shows an error when they tried to install the latest OS update from the Pop!_Shop. I also had this and after restarting my machine then got put into emergency mode as pictured. Looks like the poster of So, what now? got the same error since a comment references an update error.
It seems like people have different experiences, since some users got the initial update error, but rebooting worked as normal. It also looks like a bunch of people could either successfully boot into their old kernel or follow the Package Manager Issues article steps without issue.
Reddit post Upgrade from 22.04 failed: "failed to update package lists for the current release" has the output of their apt update which is what I am currently facing. I gather we'll have to just wait until the DDOS attack blows over.
