Page 1 of 1

Upgrade hung at 55% - after restart system startup doesn't complete

Posted: 2021/01/10 19:59:06
by VeeDub
Hello,

I have Centos v7 running in a Hyper-V VM

There was a message in the GUI prompting to install an update.

On restarting, the update hung at 55%.

Eventually I restarted the VM and now it doesn't startup

Appreciate suggestions on how to troubleshoot.

Thanks

VW

Re: Upgrade hung at 55% - after restart system startup doesn't complete

Posted: 2021/01/10 20:18:39
by VeeDub
Hello,

I've made some progress by choosing an older entry on the boot menu.

VW

Re: Upgrade hung at 55% - after restart system startup doesn't complete

Posted: 2021/01/10 20:33:08
by VeeDub
Hello,

When I run

Code: Select all

sudo yum update
Response is

Code: Select all

No packages marked for update
But on the GUI I see this

How can I identify what the pending software update is?

Re: Upgrade hung at 55% - after restart system startup doesn't complete

Posted: 2021/01/10 21:08:28
by VeeDub
The list of kernels on the boot menu are

3.10-1160.11.1.el7.x86_64 - when this entry is chosen (currently the default) - system startup hangs
3.10.0-1062.el7.x86_64 - system starts

From https://en.wikipedia.org/wiki/CentOS#CentOS_version_7
it appears that the working version is 7.7-1908

And that the broken version is 7.9-2009

Re: Upgrade hung at 55% - after restart system startup doesn't complete

Posted: 2021/01/10 21:14:38
by VeeDub
I've changed the default kernel in the boot menu back to 7.7-1908 for now.

I'm guessing that "best practice" I should be on the latest kernel; if someone has some troubleshooting steps am happy to try them

Re: Upgrade hung at 55% - after restart system startup doesn't complete

Posted: 2021/01/11 18:26:22
by TrevorH
Start with yum-complete-transaction and see if that helps. It probably won't but it's the first thing to try.

Next, read https://wiki.centos.org/HowTos/Cleaning ... tePackages and see if that applies to your system and if so, follow those.

You probably need to yum reinstall kernel to reinstall the latest kernel and recreate the initramfs file for it.

Re: Upgrade hung at 55% - after restart system startup doesn't complete

Posted: 2021/01/12 04:56:55
by VeeDub
You probably need to yum reinstall kernel to reinstall the latest kernel and recreate the initramfs file for it
That worked

Thanks!