Package kernel-devel fails to update

Hello, there.

Fedora 42. It’s been three or four times now that the following issue occurs:

· Gnome Software announces differents updates including kernel-devel
· Download and installation of all packages through reboot seems successful
· After rebooting, no Wi-Fi (I’m using wl module, hence kernel-devel necessary)

Temporary solution found: even if I still have more than 4 Gio on /, using Bleachbit to clean some files allows me to click on “download” in Gnome Software (nothing is downloaded, I’m sure of it, since there is no Wi-Fi), then I can reboot to update kernel-devel (I’m sure of it since I can read info on building wl module) and everything seems OK (Wi-Fi working, no more packages to update in Gnome Software).

Before compiling the full list of tasks done by BleachBit (if needed), does anyone have a hint of a clue to why this happens?

Hard to guess. Unfortunately, Gnome Software does not produce any valuable feedback for its transactions.
I’d be better use sudo dnf update to update your system and gain some information in case something fails.

1 Like

Since you’re using wl, the kernel drivers have to be rebuilt. Maybe GNOME Software with its offline updates doesn’t handle rebuilding the kernel modules gracefully?

At least when new kernels are involved, you can go updating from the command line, as suggested above. Then wait for a couple of minutes before rebooting, and check that the process of building the driver modules has finished (e.g. via ps -ax | grep kmod, which should only display the grep process itself).

Thanks to both of you, for the first bits of looking for the problem’s origin.

Gnome Software listed an update for kernel-devel, so I used sudo dnf update this time.

The downloading part seemed to function OK,
then for update/install, I got this error for kernel-devel:

[rpm] failed to unpack the archive in file /usr/src/kernels/6.17.6-200.fc42.x86_64/include/linux/mfd/mp2629.h;6909c881 : cpio: open failed - no file or directory

Then I got a few “deleting …” (I think it means reverting back for packages relying on kernel-devel being not correcting installed) then

Executing scriptlet %postun: kmod-wl-6.16.12-200.fc42.x86_64-0:6.30.223.271-59.fc42.x86_64
Scriptlet %postun finished: kmod-wl-6.16.12-200.fc42.x86_64-0:6.30.223.271-59.fc42.x86_64
Scriptlet output:
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_queue_init
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_dma_sg_memops
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_ioctl2
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_streamoff
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_expbuf
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ops_wait_finish
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_handler_init_class
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_querybuf
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_fh_open
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_devdata
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_release
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_plane_cookie
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_dqbuf
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_create_bufs
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_buffer_done
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_subscribe_event
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_unregister_device
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_qbuf
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_mmap
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_device_alloc
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_read
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_device_register
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol \__video_register_device
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ops_wait_prepare
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_streamon
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_poll
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_new_std
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_handler_free
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_device_unregister
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_wait_for_all_buffers
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_device_release
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_event_unsubscribe
depmod: WARNING: /lib/modules/6.16.12-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_reqbufs

When trying sudo dnf update once more, kernel-devel is the only package pending to update. Outputs: “already downloaded” (of course), “installation”, then hangs a bit at “Executing scriptlet %post : kernel-devel-0:6.17.6-200.fc42.x86_64”, finally the commands finishes successfully.

Both dnf and Gnome Software confirm there is no more package to be installed, Wi-Fi is operational before reboot.

EDIT: I wanted to reboot to be sure everything is functional. I got a “bulding” then “installing” process status by akmod at startup, then could log in successfully with functional Wi-Fi.

The remaining question is why I have to go through the update process twice, whether it’d be Gnome Software or dnf…!

Can you share the output of rpm-ostree status?

When posting the output, try formatting the whole text block, like this:

line 1
line 2
line 3

This makes the terminal outputs easier to read.

Thanks for the Markdown suggestion for formatting text blocks!

rpm-ostree status yields:

error: This system was not booted via libostree.
Currently, most rpm-ostree commands only work on ostree-based host systems.
1 Like

My appologies. For some reason I thought you’re on an atomic version of Fedora.

I was actually interested in the enabled repos, maybe could you share that with dnf repolist? The issues might come from some conflicting repos maybe.

Here it is!

repo id                                                     repo name              
copr:copr.fedorainfracloud.org:mulderje:facetimehd-kmod     Copr repo for facetimehd-kmod owned by mulderje      
copr:copr.fedorainfracloud.org:phracek:PyCharm              Copr repo for PyCharm owned by phracek
fedora                                                      Fedora 42 - x86_64     
fedora-cisco-openh264                                       Fedora 42 openh264 (From Cisco) - x86_64             
rpmfusion-free                                              RPM Fusion for Fedora 42 - Free       
rpmfusion-free-tainted                                      RPM Fusion for Fedora 42 - Free tainted              
rpmfusion-free-updates                                      RPM Fusion for Fedora 42 - Free - Updates            
rpmfusion-nonfree                                           RPM Fusion for Fedora 42 - Nonfree    
rpmfusion-nonfree-nvidia-driver                             RPM Fusion for Fedora 42 - Nonfree - NVIDIA Driver   
rpmfusion-nonfree-steam                                     RPM Fusion for Fedora 42 - Nonfree - Steam           
rpmfusion-nonfree-tainted                                   RPM Fusion for Fedora 42 - Nonfree tainted           
rpmfusion-nonfree-updates                                   RPM Fusion for Fedora 42 - Nonfree - Updates         
updates                                                     Fedora 42 - x86_64 - Updates

It might be that the facetimehd-kmod package, which you’re pulling from a copr repo (for the webcam on your MacBook I suppose), is conflicting somehow or causing issues when building the kernel module.

Next time when there’s an update involving either the kernel, or the above mentioned package, you could try to update from the terminal by excluding the corresponding copr repo (with dnf upgrade --refresh --disable-repo=<repoid>), and if everything goes smoothly, then run the upgrade command again without the --disable-repo flag. If you’re then experiencing similar issues, then you could contact the copr repo owner.

1 Like

So, this morning I tried an upgrade disabling the afore-mentioned copr repo:

sudo dnf upgrade --refresh --disable-repo=copr:copr.fedorainfracloud.org:mulderje:facetimehd-kmod

And I still got the same exact two errors: (just versioning diff)

One at the installation of package kernel-devel:

[RPM] failed to unpack archive in file /usr/src/kernels/6.17.7-200.fc42.x86_64/include/net/gro.h;690daa91 : cpio: open failed - no file or directory by this name

One more a few lines below:

>>> Executing scriptlet %postun : kmod-wl-6.17.4-200.fc42.x86_64-0:6.30.223.271-59.fc42.x86_64                                                                                 
>>> Scriptlet %postun finished: kmod-wl-6.17.4-200.fc42.x86_64-0:6.30.223.271-59.fc42.x86_64                                                                                      
>>> Scriptlet output:                                                                                                                                                         
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_queue_init                                                    
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_dma_sg_memops                                                 
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_ioctl2                                                      
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_streamoff                                               
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_expbuf                                                  
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ops_wait_finish                                               
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_handler_init_class                                      
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_querybuf                                                
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_fh_open                                                      
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_devdata                                                     
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_release                                                   
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_plane_cookie                                                  
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_dqbuf                                                   
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_create_bufs                                             
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_buffer_done                                                   
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_subscribe_event                                         
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_unregister_device                                           
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_qbuf                                                    
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_mmap                                                      
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_device_alloc                                                
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_read                                                      
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_device_register                                              
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol __video_register_device                                           
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ops_wait_prepare                                              
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_streamon                                                
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_fop_poll                                                      
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_new_std                                                 
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_ctrl_handler_free                                            
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_device_unregister                                            
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_wait_for_all_buffers                                          
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol video_device_release                                              
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol v4l2_event_unsubscribe                                            
>>> depmod: WARNING: /lib/modules/6.17.4-200.fc42.x86_64/extra/facetimehd/facetimehd.ko.xz needs unknown symbol vb2_ioctl_reqbufs

When trying to upgrade the 2nd time, as the other day: “package already downloaded”, installation, scriptlet, success.

When rebooting, still the same messages mentionning a build and install of wl and facetimehd modules by kmod.

A possible lead to follow: dnf stated that packages kmod-wl and facetimehd-kmod were deleted during the upgrade without copr repo, but when trying to install them back again afterwards, it only had to install kmod-wl again, since the other one seemed to be still present on system. The strange thing (for me) is that dnf info kmod-wl yields only one result, whereas dnf info kmod-facetimehd outputs twice the same info (exact same size, version, arch, source, repo, url, …)

Any new idea? Should I contact the owner of this copr repo already?

That would be the path to follow probably.

Given that the webcam is something you could do without for a while, you could also try completly removing that copr repo and corresponding packages, then try a new upgrade, which would confirm if the issue is specifically with facetimehd-kmod. The risk is that you might not have functional camera anymore.