Yum Update Failed
-
- Posts: 9
- Joined: 2017/10/12 15:25:38
- Location: Malvern, PA
Yum Update Failed
Hello
I performed a Yum update and my system is down and I need some advise. It will not boot up normally. This is the error when I re-run all
-> Finished Dependency Resolution
Error: Package: 1:grub2-efi-2.02-0.44.el7.centos.x86_64 (@anaconda)
Requires: grub2-tools = 1:2.02-0.44.el7.centos
Removing: 1:grub2-tools-2.02-0.44.el7.centos.x86_64 (@anaconda)
grub2-tools = 1:2.02-0.44.el7.centos
Obsoleted By: 1:grub2-tools-efi-2.02-0.64.el7.centos.x86_64 (base)
Not found
Installed: 1:grub2-tools-2.02-0.64.el7.centos.x86_64 (installed)
grub2-tools = 1:2.02-0.64.el7.centos
You could try using --skip-broken to work around the problem
The skip Broken does not do anything. Can anyone advise to on how to fix the issue
Thanks
Jerry
I performed a Yum update and my system is down and I need some advise. It will not boot up normally. This is the error when I re-run all
-> Finished Dependency Resolution
Error: Package: 1:grub2-efi-2.02-0.44.el7.centos.x86_64 (@anaconda)
Requires: grub2-tools = 1:2.02-0.44.el7.centos
Removing: 1:grub2-tools-2.02-0.44.el7.centos.x86_64 (@anaconda)
grub2-tools = 1:2.02-0.44.el7.centos
Obsoleted By: 1:grub2-tools-efi-2.02-0.64.el7.centos.x86_64 (base)
Not found
Installed: 1:grub2-tools-2.02-0.64.el7.centos.x86_64 (installed)
grub2-tools = 1:2.02-0.64.el7.centos
You could try using --skip-broken to work around the problem
The skip Broken does not do anything. Can anyone advise to on how to fix the issue
Thanks
Jerry
Re: Yum Update Failed
What command did you run to get that output?
If your system is down, how did you manage to run it?
If your system is down, how did you manage to run it?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 9
- Joined: 2017/10/12 15:25:38
- Location: Malvern, PA
Re: Yum Update Failed
If I reboot and go into Putty and I can choose from the menu. I cant select the top item it will kernel panic, but the selections down work .
CentOs Linux 3.10.0693.2.2.el7.x86_64 7 doesn work
CentOs Linux 3.10.0-514.26.2.el7.x86_64 7 works to get me into putty but thing are not correct
CentOs Linux 3.10.0-514el7.x86_64 7 works to get me into putty but thing are not correct
CentOs rescue works to get me into putty but thing are not correct
it seems like the gnome desktop is broken from this. I tried to reinstall but nothing
CentOs Linux 3.10.0693.2.2.el7.x86_64 7 doesn work
CentOs Linux 3.10.0-514.26.2.el7.x86_64 7 works to get me into putty but thing are not correct
CentOs Linux 3.10.0-514el7.x86_64 7 works to get me into putty but thing are not correct
CentOs rescue works to get me into putty but thing are not correct
it seems like the gnome desktop is broken from this. I tried to reinstall but nothing
- Attachments
-
- probelm.txt
- (595 Bytes) Downloaded 125 times
Re: Yum Update Failed
Ok, this sounds like a problem that happens sometimes but no-one knows what causes it. Either the initramfs for the newest kernel was not created properly or the initrd line for it in the newest kernel section in /boot/grub2/grub.cfg is missing.
If the file is present and looks correct then just editing that file and adding the initrd line to it (see the sections for the other kernels in that file for how it should look) should fix it. Or you can boot one of the kernels that does work and use yum reinstall kernel- 3.10.0-693.2.2.el7.x86_64 and it will go through and reinstall it and hopefully get it right this time.
The grub messages you get are a known problem with RHEL 7.4 and can be ignored. I'm not quite sure what command you are running to get those though as that normally only occurs if you try to f.e. yum reinstall grub2.
If the file is present and looks correct then just editing that file and adding the initrd line to it (see the sections for the other kernels in that file for how it should look) should fix it. Or you can boot one of the kernels that does work and use yum reinstall kernel- 3.10.0-693.2.2.el7.x86_64 and it will go through and reinstall it and hopefully get it right this time.
The grub messages you get are a known problem with RHEL 7.4 and can be ignored. I'm not quite sure what command you are running to get those though as that normally only occurs if you try to f.e. yum reinstall grub2.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 9
- Joined: 2017/10/12 15:25:38
- Location: Malvern, PA
Re: Yum Update Failed
I appreciate the help
When I run this I get the following
[root@pa1400-nb-med01 ~]# yum reinstall kernel-3.10.0-693.2.2.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.pac-12.org
* epel: mirrors.tummy.com
* extras: mirrors.advancedhosters.com
* updates: mirrors.thaidns.co.th
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-693.2.2.el7 will be installed
--> Processing Conflict: kernel-3.10.0-693.2.2.el7.x86_64 conflicts kexec-tools < 2.0.14-3
--> Finished Dependency Resolution
Error: kernel conflicts with kexec-tools-2.0.7-50.el7.x86_64
You could try using --skip-broken to work around the problem
When I run this I get the following
[root@pa1400-nb-med01 ~]# yum reinstall kernel-3.10.0-693.2.2.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.pac-12.org
* epel: mirrors.tummy.com
* extras: mirrors.advancedhosters.com
* updates: mirrors.thaidns.co.th
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-693.2.2.el7 will be installed
--> Processing Conflict: kernel-3.10.0-693.2.2.el7.x86_64 conflicts kexec-tools < 2.0.14-3
--> Finished Dependency Resolution
Error: kernel conflicts with kexec-tools-2.0.7-50.el7.x86_64
You could try using --skip-broken to work around the problem
-
- Posts: 9
- Joined: 2017/10/12 15:25:38
- Location: Malvern, PA
Re: Yum Update Failed
Trevor
When I run that command it errors with
Error: kernel conflicts with kexec-tools-2.0.7-50.el7.x86_64
You could try using --skip-broken to work around the problem
When I run that command it errors with
Error: kernel conflicts with kexec-tools-2.0.7-50.el7.x86_64
You could try using --skip-broken to work around the problem
Re: Yum Update Failed
And if you run yum update kexec-tools first?
If that doesn't work, I'd recommend running yum check and posting the output. If it's very large then use pastebin.centos.org and post the link to it here.
If that doesn't work, I'd recommend running yum check and posting the output. If it's very large then use pastebin.centos.org and post the link to it here.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 9
- Joined: 2017/10/12 15:25:38
- Location: Malvern, PA
Re: Yum Update Failed
After I did that
Dependencies Resolved
============================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================
Updating:
kexec-tools x86_64 2.0.14-17.el7 base 332 k
Transaction Summary
============================================================================================================================================================================
Upgrade 1 Package
Total download size: 332 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
kexec-tools-2.0.14-17.el7.x86_64.rpm | 332 kB 00:00:00
Running transaction check
Running transaction test
Transaction check error:
package kexec-tools-2.0.14-17.el7.x86_64 is already installed
Error Summary
-------------
yum reinstall kernel-3.10.0-693.2.2.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.pac-12.org
* epel: mirrors.tummy.com
* extras: mirrors.advancedhosters.com
* updates: mirrors.thaidns.co.th
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-693.2.2.el7 will be installed
--> Processing Conflict: kernel-3.10.0-693.2.2.el7.x86_64 conflicts kexec-tools < 2.0.14-3
--> Finished Dependency Resolution
Error: kernel conflicts with kexec-tools-2.0.7-50.el7.x86_64
Still getting the conflict. I will send the output thanks again. A part of my backup system is down because of this so I do appreciate the help
Dependencies Resolved
============================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================
Updating:
kexec-tools x86_64 2.0.14-17.el7 base 332 k
Transaction Summary
============================================================================================================================================================================
Upgrade 1 Package
Total download size: 332 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
kexec-tools-2.0.14-17.el7.x86_64.rpm | 332 kB 00:00:00
Running transaction check
Running transaction test
Transaction check error:
package kexec-tools-2.0.14-17.el7.x86_64 is already installed
Error Summary
-------------
yum reinstall kernel-3.10.0-693.2.2.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.pac-12.org
* epel: mirrors.tummy.com
* extras: mirrors.advancedhosters.com
* updates: mirrors.thaidns.co.th
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-693.2.2.el7 will be installed
--> Processing Conflict: kernel-3.10.0-693.2.2.el7.x86_64 conflicts kexec-tools < 2.0.14-3
--> Finished Dependency Resolution
Error: kernel conflicts with kexec-tools-2.0.7-50.el7.x86_64
Still getting the conflict. I will send the output thanks again. A part of my backup system is down because of this so I do appreciate the help
-
- Posts: 9
- Joined: 2017/10/12 15:25:38
- Location: Malvern, PA
Re: Yum Update Failed
here is my paste bin of yum check
thanks
again
jerry
http://pastebin.centos.org/360871/
~/paste/360871
thanks
again
jerry
http://pastebin.centos.org/360871/
~/paste/360871
Re: Yum Update Failed
Yes, that's what I was afraid of seeing. A previous yum update has been interrupted and left your system in an inconsistent state. To fix this you are going to need to do some work. Start by backing u p the contents of /var/lib/rpm and /var/lib/yum and then run package-cleanup --dupes. That will spit out a similar list to yum check. You need to go through each of the duplicate packages and use rpm -e --justdb -nodeps on each of the newer of the two duplicate packages leaving the older of the two alone.
Once you've done that, you should be able to run yum update again and it will offer to update all the older packages to the newer ones again. It's probably a good idea to make sure that whatever went wrong before doesn't happen again. If you do the u pdate via ssh and your connection is prone to drop then use tmux/screen to protect the session you run the update in.
Once you've done that, you should be able to run yum update again and it will offer to update all the older packages to the newer ones again. It's probably a good idea to make sure that whatever went wrong before doesn't happen again. If you do the u pdate via ssh and your connection is prone to drop then use tmux/screen to protect the session you run the update in.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke