Tuesday, October 2, 2018

Resolving conflict between nVidia and mesa when upgrading Fedora 25

What a busy week! I was doing a major upgrade to the Fedora system and I was almost getting myself killed in the action. During the upgrade process, I was stopped by this nasty error:
$ sudo dnf system-upgrade download --releasever=25
...
...
...
Error: Transaction check error:
file /usr/lib64/libGLX_indirect.so.0 from install of mesa-libGL-17.0.5-3.fc25.x86_64 conflicts with file from package nvidia-driver-libs-2:378.13-3.fc24.x86_64
file /usr/lib/libGLX_indirect.so.0 from install of mesa-libGL-17.0.5-3.fc25.i686 conflicts with file from package nvidia-driver-libs-2:378.13-3.fc24.i686

Error Summary 
-------------
I spend almost one week to tackle this error, from day till night researching on the root cause. To keep the story short, 2 things need to do. First step is to uninstall the driver, I follow the instructions from this link which is dedicated for Fedora. After this step, there are some configuration files was left over in the xorg.config.d directory and some other rpm packages were still not yet remove. This is the sample output for my case:
$ rpm –qa | grep nvidia
nvidia-driver-libs-378.13-3.fc24.x86_64
nvidia-driver-libs-378.13-3.fc24.i686
nvidia-settings-378.13-1.fc24.x86_64
nvidia-libXNVCtrl-378.13-1.fc24.x86_64
dkms-nvidia-378.13-2.fc24.x86_64
nvidia-driver-378.13-3.fc24.x86_64
Then the next step would be this:

$ sudo dnf remove nvidia-kmod

Never try to uninstall individual rpm package manually, as the command above is the professional way to do it. Clean the whole chunk in one shot. Only after this command, then only the system upgrade can continue. During the last weekend, I have successfully upgraded from Fedora 24 all the way up to Fedora 27 in one shot.

No comments: