How to fix iproute conflicts with kernel issue

Fix the iproute conflicts with kernel issue on CloudLinux. Step-by-step guide to resolve package conflicts and ensure smooth server updates

How to fix iproute conflicts with kernel issue

⚠️ Issue

During a yum update or when running a control panel update script, you may see errors like:

iproute-4.11.0-30.el7.cloudlinux.x86_64 conflicts kernel < 3.10.0-793.21.1.lve1.5.20 Error: iproute conflicts with 1:kernel-3.10.0-xxx.xx.x.xxxx.x.xx.el7.x86_64

🖥️ Environment

  • CloudLinux OS 7

  • iproute package

  • Older kernels (< 3.10.0-793.21.1.lve1.5.20)


🐞 Cause

The latest iproute package requires a newer kernel.

  • If you are running an outdated kernel, it creates a conflict during updates.

  • Yum refuses to proceed until the conflict is resolved.


✅ Solution

🔎 Step 1 – Check current kernel

uname -a

🟢 Case 1: If your loaded kernel matches the conflict error

➡️ Your server is using an outdated kernel.

Fix:

yum update reboot uname -a
  • After reboot, the server should load the newest kernel automatically.

  • On rare occasions, you may need to manually select the new kernel at boot.


🟢 Case 2: If your kernel is newer than the one in the error

➡️ The old kernels still exist on your server and cause the conflict.

Fix: Remove the outdated kernels:

yum remove kernel-3.10.0-xxx.xx.x.xxxx.x.xx.el7.x86_64

(Replace xxx.xx.x.xxxx.x.xx with the version number from the error message. If multiple outdated kernels are listed, remove them all.)


⚙️ Alternative Workaround (Not recommended long-term)

If you cannot reboot immediately, you can exclude iproute from updates:

sed -i 's/exclude=/exclude=iproute /' /etc/yum.conf

➡️ To revert later:

sed -i 's/exclude=iproute /exclude=/' /etc/yum.conf

⚠️ Note: This is a temporary solution and may cause issues in the future. Always plan to update the kernel and remove outdated ones when possible.

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0