Ask Your Question
1

Error kernel-modules dependency after upgrade from Fedora 21 to 22

asked 2015-06-03 05:44:28 -0500

Michaël Pailloncy gravatar image

Hi all,

After upgrade from Fedora 21 to 22 using fedup, I've this error :

$ sudo dnf update
Last metadata expiration check performed 0:11:48 ago on Wed Jun  3 12:26:33 2015.
Error: package kernel-modules-3.18.9-200.fc21.x86_64 requires kernel-uname-r = 3.18.9-200.fc21.x86_64, but none of the providers can be installed

Kernel version :

$ uname -r
4.0.4-301.fc22.x86_64

List of installed kernel versions :

$ sudo dnf list installed | grep kernel
abrt-addon-kerneloops.x86_64            2.5.1-3.fc22                     @System
kernel.x86_64                           3.18.7-200.fc21                  @System
kernel.x86_64                           3.18.9-200.fc21                  @System
kernel.x86_64                           4.0.4-202.fc21                   @System
kernel.x86_64                           4.0.4-303.fc22                   @System
kernel-core.x86_64                      3.18.7-200.fc21                  @System
kernel-core.x86_64                      3.18.9-200.fc21                  @System
kernel-core.x86_64                      4.0.4-202.fc21                   @System
kernel-core.x86_64                      4.0.4-301.fc22                   @System
kernel-core.x86_64                      4.0.4-303.fc22                   @System
kernel-devel.x86_64                     4.0.4-201.fc21                   @System
kernel-devel.x86_64                     4.0.4-202.fc21                   @System
kernel-devel.x86_64                     4.0.4-303.fc22                   @System
kernel-headers.x86_64                   4.0.4-303.fc22                   @System
kernel-modules.x86_64                   3.18.7-200.fc21                  @System
kernel-modules.x86_64                   3.18.9-200.fc21                  @System
kernel-modules.x86_64                   4.0.4-202.fc21                   @System
kernel-modules.x86_64                   4.0.4-303.fc22                   @System
libreport-plugin-kerneloops.x86_64      2.5.1-2.fc22                     @System

I'm not able to installed any package.

Thanks in advance.

edit retag flag offensive close merge delete

Comments

Did you follow the steps from https://fedoraproject.org/wiki/FedUp#... ? So after the update you should run rpm --rebuilddb and dnf distro-sync. You also should have run yum update or dnf upgrade prior to the distro upgrade.

mithrial gravatar imagemithrial ( 2015-06-03 16:42:39 -0500 )edit

Thanks. Yes, I follow post-upgrade instructions. However, executing "sudo dnf distro-sync" leads to the same error.

Michaël Pailloncy gravatar imageMichaël Pailloncy ( 2015-06-03 23:37:47 -0500 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2015-06-04 08:02:15 -0500

sergiomb gravatar image

hey

dnf remove kernel-modules-3.18.9-200.fc21.x86_64

you don't need kernel from previous release !

edit flag offensive delete link more

Comments

In addition, I would remove most of the previous kernels

bodhi.zazen gravatar imagebodhi.zazen ( 2015-06-04 09:13:46 -0500 )edit

Thanks, it solves my problem.

Michaël Pailloncy gravatar imageMichaël Pailloncy ( 2015-06-05 03:05:42 -0500 )edit

Removing all old kernel-modules solved for my, thx!

raittes gravatar imageraittes ( 2015-06-12 23:09:09 -0500 )edit
1

answered 2015-06-17 16:59:04 -0500

Got same issue with dnf update or dnf remove...

sudo dnf distro-sync --setopt=deltarpm=0
Last metadata expiration check performed 0:43:23 ago on Wed Jun 17 22:32:00 2015.
Error : package kernel-modules-extra-3.19.7-200.fc21.x86_64 requires kernel-uname-r = 3.19.7-200.fc21.x86_64, but none of the providers can be installed

Found this solution by removing and keeping only the last 2 kernels :

sudo package-cleanup --oldkernels --count=2
edit flag offensive delete link more
0

answered 2015-07-14 23:32:23 -0500

arth4 gravatar image

I had to remove virtual box, as the there were dependencies... apparently. But I am a noob, so please let me know if I did it the hard way.

Error: package kernel-modules-3.19.2-201.fc21.x86_64 requires kernel-uname-r = 3.19.2-201.fc21.x86_64, but none of the providers can be installed

$ uname -r
4.0.6-300.fc22.x86_64

$ sudo dnf list installed | grep kernel
abrt-addon-kerneloops.x86_64            2.6.0-1.fc22                     @System
kernel.x86_64                           3.17.4-301.fc21                  @System
kernel.x86_64                           3.19.2-201.fc21                  @System
kernel.x86_64                           4.0.6-300.fc22                   @System
kernel-core.x86_64                      3.17.4-301.fc21                  @System
kernel-core.x86_64                      3.19.2-201.fc21                  @System
kernel-core.x86_64                      3.19.3-200.fc21                  @System
kernel-core.x86_64                      4.0.6-300.fc22                   @System
kernel-headers.x86_64                   4.0.6-300.fc22                   @System
kernel-modules.x86_64                   3.17.4-301.fc21                  @System
kernel-modules.x86_64                   3.19.2-201.fc21                  @System
kernel-modules.x86_64                   4.0.6-300.fc22                   @System
libreport-plugin-kerneloops.x86_64      2.6.0-1.fc22                     @System

$ sudo package-cleanup --oldkernels --count=2
Loaded plugins: langpacks
--> Running transaction check
---> Package kernel.x86_64 0:3.17.4-301.fc21 will be erased
---> Package kernel-core.x86_64 0:3.17.4-301.fc21 will be erased
--> Processing Dependency: kernel-uname-r = 3.17.4-301.fc21.x86_64 for package: kernel-modules-3.17.4-301.fc21.x86_64
---> Package kernel-core.x86_64 0:3.19.2-201.fc21 will be erased
--> Processing Dependency: kernel-core-uname-r = 3.19.2-201.fc21.x86_64 for package: kernel-3.19.2-201.fc21.x86_64
--> Processing Dependency: kernel-uname-r = 3.19.2-201.fc21.x86_64 for package: kernel-modules-3.19.2-201.fc21.x86_64
--> Processing Dependency: kernel-uname-r = 3.19.2-201.fc21.x86_64 for package: kmod-VirtualBox-3.19.2-201.fc21.x86_64-4.3.26-1.fc21.1.x86_64
--> Running transaction check
---> Package kernel.x86_64 0:3.19.2-201.fc21 will be erased
---> Package kernel-modules.x86_64 0:3.17.4-301.fc21 will be erased
---> Package kernel-modules.x86_64 0:3.19.2-201.fc21 will be erased
---> Package kmod-VirtualBox-3.19.2-201.fc21.x86_64.x86_64 0:4.3.26-1.fc21.1 will be erased
--> Finished Dependency Resolution
adobe-linux-x86_64                                    |  951 B  00:00     
...etc

Dependencies Resolved

==========================================================================
 Package        Arch   Version         Repository                    Size
==========================================================================
Removing:
 kernel         x86_64 3.17.4-301.fc21 @koji-override-0/$releasever 0.0  
 kernel-core    x86_64 3.17.4-301.fc21 @koji-override-0/$releasever  40 M
 kernel-core    x86_64 3.19.2-201.fc21 @updates/21                   41 M
Removing for dependencies:
 kernel         x86_64 3.19.2-201.fc21 @updates/21                  0.0  
 kernel-modules x86_64 3.17.4-301.fc21 @koji-override-0/$releasever  17 M
 kernel-modules x86_64 3.19.2-201.fc21 @updates/21                   17 M
 kmod-VirtualBox-3.19.2-201.fc21.x86_64
                x86_64 4.3.26-1.fc21.1 @rpmfusion-free-updates/21   1.0 M
Transaction Summary
==========================================================================
Remove  3 Packages (+4 Dependent packages)
Installed size: 116 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
ERROR with transaction check vs depsolve:
kernel-uname-r = 4.0.2-300.fc22.x86_64 is needed by (installed) kmod-VirtualBox-4.0.2-300.fc22.x86_64-4.3.28-1.fc22.x86_64
kernel-uname-r = 4.0.2-300.fc22.x86_64 is needed by (installed) kmod-VirtualBox-4.0.2-300.fc22.x86_64-4.3.28-1.fc22.x86_64
Complete!
(1, [])

$ sudo yum update
Last metadata expiration check performed 2:24:07 ago on Tue Jul 14 19:53:02 ...
(more)
edit flag offensive delete link more

Comments

Have you tried in keeping only one kernel ?

If you want to run again an update : sudo dnf --refresh update

yolo gravatar imageyolo ( 2015-07-15 07:04:20 -0500 )edit

Yes, but was not able to. I know I dumped too much text to sift through... I tried 2 methods of removing kernels:

$ sudo package-cleanup --oldkernels --count=2

and

$ sudo dnf remove kernel-modules-3.19.2-201.fc21.x86_64

Got dependency errors both times.

arth4 gravatar imagearth4 ( 2015-07-15 09:19:31 -0500 )edit

Removing Virtual Box did fix it. I have not tried to re-install Virtual Box yet.

arth4 gravatar imagearth4 ( 2015-07-15 09:23:01 -0500 )edit

you may try install Virtual Box but you must use akomds in F22 not kmods available dnf install akmod-VirtualBox kernel-devel-$(uname -r)
akmods

sergiomb gravatar imagesergiomb ( 2015-07-15 14:24:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-06-03 05:44:28 -0500

Seen: 4,899 times

Last updated: Jun 04 '15