Ask Your Question
1

dnf dependencies problem after installing nvidia driver on Fedora 22

asked 2015-09-21 19:18:20 -0500

williamjh gravatar image

I have recently upgraded to from Fedora 21 to Fedora 22 using fedup. All went well except X would not start so I downloaded and installed the nvidia 352.30 drivers using the nvidia installer (I couldn't find the drivers at rpmfusion)

# uname -a
Linux norfolk 4.1.4-200.fc22.x86_64 #1 SMP Tue Aug 4 03:22:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)

The machine is running well and is stable.

The problem is that I have unsolved dependencies that cause dnf update to fail.

# dnf update
...

[SKIPPED] zukitwo-gtk2-theme-20141022-10.fc22.noarch.rpm: Already downloaded                                                                                                                           
Running transaction check
^[[3~Error: transaction check vs depsolve:
kernel-uname-r = 4.1.3-200.fc22.x86_64 is needed by (installed) kmod-nvidia-340xx-4.1.3-200.fc22.x86_64-1:340.76-3.fc22.x86_64
kernel-uname-r = 4.1.2-200.fc22.x86_64 is needed by (installed) kmod-nvidia-4.1.2-200.fc22.x86_64-1:352.30-2.fc22.x86_64
kernel-uname-r = 4.1.3-200.fc22.x86_64 is needed by (installed) kmod-nvidia-340xx-4.1.3-200.fc22.x86_64-1:340.76-3.fc22.x86_64
kernel-uname-r = 4.1.2-200.fc22.x86_64 is needed by (installed) kmod-nvidia-4.1.2-200.fc22.x86_64-1:352.30-2.fc22.x86_64
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache till the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'

Running rpm --rebuilddb does not help. As far as I know I don't need the old kernels and NVIDIA drivers as I am now on 4.1.4 and 352.30.

I have tried dnf remove on the old kernels and drivers but it fails the transaction check as did package-cleanup --oldkernels --count=1

Any suggestions as to how to clean this up so I can run dnf update would be appreciated. Also how I am best to avoid this problem in future? Should I use akmod-nvidia instead of installing the drivers directly?

edit retag flag offensive close merge delete

Comments

Thanks for having a look at this but the problem, is I can't remove the old kmod-nvidia packages using dnf remove.

dnf remove kmod-nvidia-340xx-4.1.3-200.fc22.x86_64-1:340.76-3.fc22.x86_64

...omitted

Running transaction check
Error: transaction check vs depsolve:
kernel-uname-r = 4.1.2-200.fc22.x86_64 is needed by (installed) kmod-nvidia-4.1.2-200.fc22.x86_64-1:352.30-2.fc22.x86_64
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
williamjh gravatar imagewilliamjh ( 2015-09-21 22:52:35 -0500 )edit

It should be: dnf remove kmod-nvidia-340xx-4.1.3-200.fc22.x86_64.

skytux gravatar imageskytux ( 2015-09-22 00:39:07 -0500 )edit

Running dnf remove kmod-nvidia-340xx-4.1.3-200.fc22.x86_64 had the same result. However running

dnf remove kmod-nvidia-4.1.2-200.fc22.x86_64 kmod-nvidia-340xx-4.1.3-200.fc22.x86_64

worked. ie removing the packages in the same transaction seemed to address the cross dependencies issue.

dnf just installed the 4.1.6 kernel so hopefully everything works after the next reboot.

williamjh gravatar imagewilliamjh ( 2015-09-22 19:59:36 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-09-21 21:54:45 -0500

skytux gravatar image

updated 2015-09-21 21:55:56 -0500

Clearly there are some packages installed on your system (kmod-nvidia-*) that require those kernel versions (4.1.2, 4.1.3), but you say you removed them. I don't use nvidia private drivers, so I'm not familiar with those packages and I'm not going to advise you, but my guess is that you should remove those kmod-nvidia-* which are not needed anymore because you have removed the corresponding kernels. By the way, we are at kernel 4.1.6 right now...

edit flag offensive delete link more

Comments

I converted my comment to an answer because it seems it was a good advice after all :)

skytux gravatar imageskytux ( 2015-09-23 04:54:51 -0500 )edit
0

answered 2015-09-22 20:52:53 -0500

williamjh gravatar image

Removing two packages in the same transaction worked:

dnf remove kmod-nvidia-340xx-4.1.3-200.fc22.x86_64-1:340.76-3.fc22.x86_64

Also X would not start when I rebooted after upgrading to 4.1.6. After installing the nvidia drivers as explained at http://rpmfusion.org/Howto/nVidia all is good. The video card is a GeForce GTX 750 Ti rev a2.

edit flag offensive delete link more

Comments

Why don't you use nouveau?

skytux gravatar imageskytux ( 2015-09-23 04:53:04 -0500 )edit

Question Tools

Stats

Asked: 2015-09-21 19:18:20 -0500

Seen: 581 times

Last updated: Sep 22 '15