yum update stuck (solved)

General support questions
Post Reply
bonedome
Posts: 170
Joined: 2017/04/22 08:11:04

yum update stuck (solved)

Post by bonedome » 2020/06/05 17:20:03

Hello
I'm having a strange yum update problem

Code: Select all

================================================================================
 Package                  Arch      Version                    Repository  Size
================================================================================
Installing:
 kernel                   x86_64    3.10.0-1127.10.1.el7       updates     50 M
 kernel-devel             x86_64    3.10.0-1127.10.1.el7       updates     18 M
Updating:
 bpftool                  x86_64    3.10.0-1127.10.1.el7       updates    8.4 M
 kernel-abi-whitelists    noarch    3.10.0-1127.10.1.el7       updates    8.0 M
 kernel-headers           x86_64    3.10.0-1127.10.1.el7       updates    8.9 M
 kernel-tools             x86_64    3.10.0-1127.10.1.el7       updates    8.0 M
 kernel-tools-libs        x86_64    3.10.0-1127.10.1.el7       updates    8.0 M
Removing:
 kernel                   x86_64    3.10.0-1127.el7            @base       64 M

Transaction Summary
================================================================================
Install  2 Packages
Upgrade  5 Packages
Remove   1 Package

Total download size: 109 M
Is this ok [y/d/N]: y
Downloading packages:
(1/7): kernel-abi-whitelists-3.10.0-1127.10.1.el7.noarch.r | 8.0 MB   00:03     
(2/7): kernel-headers-3.10.0-1127.10.1.el7.x86_64.rpm      | 8.9 MB   00:08     
(3/7): kernel-tools-3.10.0-1127.10.1.el7.x86_64.rpm        | 8.0 MB   00:06     
(4/7): kernel-tools-libs-3.10.0-1127.10.1.el7.x86_64.rpm   | 8.0 MB   00:02     
(5/7): bpftool-3.10.0-1127.10.1.el7.x86_64.rpm             | 8.4 MB   00:16     
(6/7): kernel-devel-3.10.0-1127.10.1.el7.x86_64.rpm        |  18 MB   00:20     
(7/7): kernel-3.10.0-1127.10.1.el7.x86_64.rpm              |  50 MB   00:24     
--------------------------------------------------------------------------------
Total                                              4.4 MB/s | 109 MB  00:24     
Running transaction check
ERROR with transaction check vs depsolve:
kernel < 3.10.0-1063.el7 is needed by (installed) kmod-wl-3.10.0-1062.4.1.el7.x86_64-6.30.223.271-28.el7.x86_64
kernel < 3.10.0-1063.el7 is needed by (installed) kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
kmod-wl-3.10.0-1062.4.1.el7.x86_64-6.30.223.271-28.el7.x86_64 has missing requires of kernel < ('0', '3.10.0', '1063.el7')
kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64 has missing requires of kernel < ('0', '3.10.0', '1063.el7')
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2020-06-05.18-03.4dtvh9.yumtx
kernel 3.10.0-1063 is no longer installed, if I try to remove kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64 I get

Code: Select all

================================================================================
 Package            Arch   Version             Repository                  Size
================================================================================
Removing:
 kmod-wl-3.10.0-1062.el7.x86_64
                    x86_64 6.30.223.271-30.el7 @rpmfusion-nonfree-updates 7.2 M

Transaction Summary
================================================================================
Remove  1 Package

Installed size: 7.2 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
error: %preun(kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64
  Verifying  : kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64    1/1 

Failed:
  kmod-wl-3.10.0-1062.el7.x86_64.x86_64 0:6.30.223.271-30.el7                   

Complete!
so I'm in a kind of loop, I've tried yum clean all, rpm --rebuilddb and deleting /var/cache/akmods/wl/ all exept installed kernel versions, any pointers most welcome.
Last edited by bonedome on 2020/06/12 10:55:25, edited 1 time in total.

afewgoodman
Posts: 97
Joined: 2019/12/11 03:51:58

Re: yum update stuck

Post by afewgoodman » 2020/06/11 08:00:25

Hi,
kernel < 3.10.0-1063.el7 is needed by (installed) kmod-wl-3.10.0-1062.4.1.el7.x86_64-6.30.223.271-28.el7.x86_64
kernel < 3.10.0-1063.el7 is needed by (installed) kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64
I think your kernel version would be 3.10.0-1063 now and repository kmod-wl-3.10.0-1062.el7.x86_64 is @rpmfusion-nonfree-updates. it conflict to base and updates repo now.

Can you capture output for 'uname-a' and 'yum info kernel' ?

BR.

User avatar
jlehtone
Posts: 3050
Joined: 2007/12/11 08:17:33
Location: Finland

Re: yum update stuck

Post by jlehtone » 2020/06/12 08:49:52

Code: Select all

# yum -q --enablerepo=rpmfusion-nonfree-updates list kmod-wl\*
Available Packages
kmod-wl.x86_64                         6.30.223.271-32.el7   rpmfusion-nonfree-updates
kmod-wl-3.10.0-1062.el7.x86_64.x86_64  6.30.223.271-32.el7   rpmfusion-nonfree-updates
Note how "kmod-wl-3.10.0-1062.el7.x86_64" is the name of the package. That hints that this package is for specific kernel version(s).
Note also that there is no "kmod-wl-3.10.0-1127.el7.x86_64" in the repository. At least not yet.
bonedome wrote:
2020/06/05 17:20:03
kernel 3.10.0-1063 is no longer installed

Code: Select all

Running transaction
error: %preun(kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package kmod-wl-3.10.0-1062.el7.x86_64-6.30.223.271-30.el7.x86_64
How did the system allow removal of kernel 3.10.0-1063 without removing the kmod-wl-3.10.0-1062.el7.x86_64?
There are times, when RPM dependency fails.


The error is in the PREUN scriptlet. What does it attempt to do? You can see the preuninstall script with:

Code: Select all

# rpm -q --scripts kmod-wl-3.10.0-1062.el7.x86_64

bonedome
Posts: 170
Joined: 2017/04/22 08:11:04

Re: yum update stuck

Post by bonedome » 2020/06/12 10:53:25

Hello
and thanks for your input guys, I think I've cured the problem, after some searching I did

Code: Select all

rpm -e --nopreun kmod-wl-3.10.0-1062.el7.x86_64.x86_64
and

Code: Select all

rpm -e --noscripts kmod-wl-3.10.0-1062.4.1.el7.x86_64
Not sure if I needed both and the printout was the same "package kmod-wl-3.10.0-1062.el7.x86_64 is not installed" but I can now update with no errors.
I think the problem occured when I installed the (prebuilt kernel specific) kmod-wl package (from rpmfusion) and at a later reboot akmods also created kmod-wl but used the newer broadcom-wl point release 6.30.223.271-32 or 6.30.223.271-30 can't remember, which removed the older version but left the entry/script in rpm/yum.
I now leave akmods.sevice disabled unless a new kernel has come out.
The broadcom wl driver seems quite unique in that it's made up of two parts, one closed source and one open.
Moral of the story, avoid broadcom wireless if you can.

Post Reply

Return to “CentOS 7 - General Support”