Linux Support FAQ entry 04 Jun 2008, logged in as JanIven
LinuxSupportFAQForm
SupportProblem YUM update fails with "Transaction Check Error: package kernel-2.6.9-67.0.7.EL.cern (which is newer than kernel-2.6.9-67.EL.cern) is already installed"
SupportAnswer (kernel versions might be slightly different on your machine). This is due to a bug in the YUM plugin tasked with removing old kernels. Manual workarounds are required to resolve this, until the YUM plugin gets fixed.

Background:

  • kernel RPMs will not update each other, as normal packages would do - instead they get installed in parallel. In order to prevent them from piling up, old+unused kernels will get removed.
  • The bug gets triggered if an old kernel is scheduled for removal, while a kernel module for this version is supposed to be updated.

In the case at hand, a new kernel 2.6.9-67.0.15.EL.cern is available, while at the same time an updated version for "kernel-module-openafs" for an older kernel version is available.

Workaround: Turn off the YUM "installonlyn" plugin to allow the problematic transaction to proceed, then turn it on again:

# sed -i -e 's/enabled=.*/enabled=0/' /etc/yum/pluginconf.d/installonlyn.conf
# yum upgrade -y
# sed -i -e 's/enabled=.*/enabled=1/' /etc/yum/pluginconf.d/installonlyn.conf

Should this not work, you can still manually de-install all old and unused kernels and their respective modules. Identify all kernels and their modules, then remove the obsolete ones via a single transaction:

# rpm -qa kernel-\*
# rpm -e kernel-OLDVERSION kernel-module-openafs-OLDVERSION ...
OsVersion SLC4
HardwareArchitecture any
ApprovedBySupport SupportApproved
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2008-06-04 - JanIven
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LinuxSupport All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback