Fedora 42 upgrade broken

I just tried the Fedora 42 upgrade. I started the upgrade, left it installing and when I came back later there was a kernel panic screen due to being unable to mount vfs.
I rebooted, selected the previous fc41 kernel and I could start the system. I looked in /boot and there was no initramfs for 6.14.2-300.fc42.x86_64
So I then ran sudo dnf reinstall kernel-core-6.14.2-300.fc42.x86_64 which failed because bc was missing. I installed bc and tried again but this time I got:

os_dep/linux/ioctl_cfg80211.c:10516:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  int *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, int *)’ [-Wincompatible-pointer-types]
10516 |         .get_tx_power = cfg80211_rtw_get_txpower,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~

DNF output:

>>> Running post-transaction scriptlet: kernel-core-0:6.14.2-300.fc42.x86_64                                                                                               
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.14.2-300.fc42.x86_64                                                                                 
>>> Scriptlet output:                                                                                                                                                      
>>> Sign command: /lib/modules/6.14.2-300.fc42.x86_64/build/scripts/sign-file                                                                                              
>>> Signing key: /var/lib/dkms/mok.key                                                                                                                                     
>>> Public certificate (MOK): /var/lib/dkms/mok.pub                                                                                                                        
>>>                                                                                                                                                                        
>>> Autoinstall of module rtl88x2bu/git for kernel 6.14.2-300.fc42.x86_64 (x86_64)                                                                                         
>>> Building module(s)..........(bad exit status: 2)                                                                                                                       
>>> Failed command:                                                                                                                                                        
>>> 'make' -j4 KVER=6.14.2-300.fc42.x86_64 KSRC=/lib/modules/6.14.2-300.fc42.x86_64/build                                                                                  
>>>                                                                                                                                                                        
>>> Error! Bad return status for module build on kernel: 6.14.2-300.fc42.x86_64 (x86_64)                                                                                   
>>> Consult /var/lib/dkms/rtl88x2bu/git/build/make.log for more information.                                                                                               
>>>                                                                                                                                                                        
>>> Autoinstall on 6.14.2-300.fc42.x86_64 failed for module(s) rtl88x2bu(10).                                                                                              
>>>                                                                                                                                                                        
>>> Error! One or more modules failed to install during autoinstall.                                                                                                       
>>> Refer to previous errors for more information.                                                                                                                         
>>> /usr/lib/kernel/install.d/40-dkms.install failed with exit status 11.                                                                                                  
>>>                                                                                                                                                                        
>>> [RPM] %posttrans(kernel-core-6.14.2-300.fc42.x86_64) scriptlet failed, exit status 11                                                                                  
Complete!

Because of this it fails to build.

It would seem the kernel is broken but I can find no reports of other having the same problem.

Now I also seem to have a half-installed system - when I run dnf upgrade I am now getting problems:

gpg: WARNING: No valid encryption subkey left over.
Problem 1: installed package telegram-desktop-5.13.1-1.fc42.x86_64 requires libQt6Core.so.6(Qt_6.8_PRIVATE_API)(64bit), but none of the providers can be installed
  - cannot install both qt6-qtbase-6.9.0-1.fc42.x86_64 from updates and qt6-qtbase-6.8.2-3.fc42.x86_64 from @System
  - cannot install both qt6-qtbase-6.8.2-3.fc42.x86_64 from fedora and qt6-qtbase-6.9.0-1.fc42.x86_64 from updates
  - cannot install the best update candidate for package telegram-desktop-5.13.1-1.fc42.x86_64
  - cannot install the best update candidate for package qt6-qtbase-6.8.2-3.fc42.x86_64
 Problem 2: problem with installed package
  - installed package telegram-desktop-5.13.1-1.fc42.x86_64 requires libQt6Gui.so.6(Qt_6.8_PRIVATE_API)(64bit), but none of the providers can be installed
  - installed package telegram-desktop-5.13.1-1.fc42.x86_64 requires libQt6Widgets.so.6(Qt_6.8_PRIVATE_API)(64bit), but none of the providers can be installed
  - package telegram-desktop-5.13.1-1.fc42.x86_64 from rpmfusion-free requires libQt6Gui.so.6(Qt_6.8_PRIVATE_API)(64bit), but none of the providers can be installed
  - package telegram-desktop-5.13.1-1.fc42.x86_64 from rpmfusion-free requires libQt6Widgets.so.6(Qt_6.8_PRIVATE_API)(64bit), but none of the providers can be installed
  - cannot install both qt6-qtbase-gui-6.9.0-1.fc42.x86_64 from updates and qt6-qtbase-gui-6.8.2-3.fc42.x86_64 from @System
  - cannot install both qt6-qtbase-gui-6.8.2-3.fc42.x86_64 from fedora and qt6-qtbase-gui-6.9.0-1.fc42.x86_64 from updates
  - cannot install the best update candidate for package qt6-qtbase-gui-6.8.2-3.fc42.x86_64

Any help to fix this is appreciated.

1 Like

Missing initramfs indicates that some kernel-install scripts are failing.
This usually means that DKMS or akmods are incompatible with the new kernel.
It is safer to remove the corresponding packages before upgrading.

I had forgotten I had tried a wireless driver a while ago. I removed it with dkms remove ... and reinstalled the kernel package successfully.

2 Likes

I don’t know what’s about your initramfs but the telegram-desktop issue has nothing to do with that. Seems like you have it installed from rpmfusion like I do. A straightforward solution helped me:

dnf remove telegram-desktop
dnf upgrade
dnf install telegram-desktop

Sorry I didn’t notice that reinstalling telegram-desktop downgrades qt6 again. So it’s not a solution. Anyway there are options either just to wait for rpmfusion to upgrade deps or to remove telegram. Anyway it has nothing to do with Fedora project: