Update Centos 7 failed!

General support questions
martinmin
Posts: 11
Joined: 2021/05/20 06:19:06

Update Centos 7 failed!

Post by martinmin » 2021/05/20 06:21:28

My centos version:

Code: Select all

$ lsb_release -d
Description:    CentOS Linux release 7.6.1810 (Core) 
I had problems in installing python3 environment and so I update the system:

Code: Select all

sudo yum update -y
But I received one error message:

Code: Select all

...
---> Package libpaper.x86_64 0:1.1.24-9.el7 will be installed
---> Package ndctl-libs.x86_64 0:65-5.el7 will be installed
---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed
---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed
---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed
--> Finished Dependency Resolution
Error: Package: kmod-kvdo-6.1.3.23-5.el7.x86_64 (base-vault)
           Requires: kernel(dm_get_device) = 0xa425b4a9
           Installed: kernel-3.10.0-957.el7.x86_64 (@anaconda)
               kernel(dm_get_device) = 0x304f1d09
           Installed: kernel-3.10.0-957.21.3.el7.toa.x86_64 (installed)
               kernel(dm_get_device) = 0x304f1d09
           Available: kernel-3.10.0-123.13.2.el7.toa.2.x86_64 (sina)
               kernel(dm_get_device) = 0xb81d3ba7
           Available: kernel-3.10.0-229.el7.centos.toa.2.x86_64 (sina)
               kernel(dm_get_device) = 0xff23594d
           Available: kernel-3.10.0-514.6.2.el7.toa.2.x86_64 (sina)
               kernel(dm_get_device) = 0x513e43b6
           Available: kernel-3.10.0-693.2.2.el7.toa.2.x86_64 (sina)
               kernel(dm_get_device) = 0xcb8bc8a5
           Available: kernel-debug-3.10.0-957.21.3.el7.toa.x86_64 (sina)
               kernel(dm_get_device) = 0x3793b9f8
I googled but didn't find solutions to it.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Update Centos 7 failed!

Post by TrevorH » 2021/05/20 08:50:30

Those are not CentOS suppllied kernels: kernel-3.10.0-957.21.3.el7.toa.x86_64

The kmod-kvdo package depends on you having the correct CentOS supplied kernel installed. You appear to be using someone else's and they either obscure the CentOS supplied ones or they have been excluded or the repo is not enabled.
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

owl102
Posts: 413
Joined: 2014/06/10 19:13:41

Re: Update Centos 7 failed!

Post by owl102 » 2021/05/21 06:57:22

German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

martinmin
Posts: 11
Joined: 2021/05/20 06:19:06

Re: Update Centos 7 failed!

Post by martinmin » 2021/05/21 17:50:21

TrevorH wrote:
2021/05/20 08:50:30
Those are not CentOS suppllied kernels: kernel-3.10.0-957.21.3.el7.toa.x86_64

The kmod-kvdo package depends on you having the correct CentOS supplied kernel installed. You appear to be using someone else's and they either obscure the CentOS supplied ones or they have been excluded or the repo is not enabled.
Further info:

Code: Select all

$ rpm -qf /etc/redhat-release
centos-release-7-6.1810.2.el7.centos.x86_64
(base) [congmin@localhost]$ uname -s -r
Linux 3.10.0-957.21.3.el7.toa.x86_64
So you mean this is not the official kernel from CentOS? How to solve this issue? Must I have to reinstall the whole system?

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Update Centos 7 failed!

Post by TrevorH » 2021/05/21 18:44:21

Linux 3.10.0-957.21.3.el7.toa.x86_64
No, that kernel has ".toa." in its name and no CentOS kernel has that. Google's not being very helpful with that but I suspect it might be some sort of alibaba cloud special?
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

martinmin
Posts: 11
Joined: 2021/05/20 06:19:06

Re: Update Centos 7 failed!

Post by martinmin » 2021/05/21 22:23:20

TrevorH wrote:
2021/05/21 18:44:21
Linux 3.10.0-957.21.3.el7.toa.x86_64
No, that kernel has ".toa." in its name and no CentOS kernel has that. Google's not being very helpful with that but I suspect it might be some sort of alibaba cloud special?
So you mean a user can install CentOS 7.0, but use a kernel different from the standard one from RedHat? I don't manage the machine.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Update Centos 7 failed!

Post by TrevorH » 2021/05/21 23:37:08

Post the output from rpm -qa kernel\* \*release | sort
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

martinmin
Posts: 11
Joined: 2021/05/20 06:19:06

Re: Update Centos 7 failed!

Post by martinmin » 2021/05/22 00:58:35

Here they are:

$ rpm -qa kernel\* \*release | sort
centos-release-7-6.1810.2.el7.centos.x86_64
epel-release-7-12.noarch
kernel-3.10.0-957.21.3.el7.toa.x86_64
kernel-3.10.0-957.el7.x86_64
kernel-devel-3.10.0-957.21.3.el7.toa.x86_64
kernel-devel-3.10.0-957.el7.x86_64
kernel-headers-3.10.0-957.21.3.el7.toa.x86_64
kernel-tools-3.10.0-957.el7.x86_64
kernel-tools-libs-3.10.0-957.el7.x86_64
mysql80-community-release-el7-3.noarch

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Update Centos 7 failed!

Post by TrevorH » 2021/05/22 01:03:23

kernel-3.10.0-957.21.3.el7.toa.x86_64
kernel-3.10.0-957.el7.x86_64
So you have both the original 7.6 distro kernel installed (the bottom one) and this foreign one. If you run yum list installed kernel it should show you a line for each one and the right hand side says which repo it was installed from e.g. @updates.
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

martinmin
Posts: 11
Joined: 2021/05/20 06:19:06

Re: Update Centos 7 failed!

Post by martinmin » 2021/05/24 18:43:43

So, how to resolve this system update failure? Should I ask to remove the foreign kernel? What's the purpose of having multiple kernels in one OS system?

Post Reply