CAN'T UPDATE: Conflict between nvidia-450xx-utils and nvidia-440xx-utils

I’m trying to update my system and I get the following message (translated, my OS isn’t in English):

Using the GUI:
Dependencies conflict: Conflict between nvidia-450xx-utils and nvidia-440xx-utils

Using Terminal and running sudo pacman -Syyu:

  1. Replace xapps for community/xapp - Yes -> nvidia-450xx-utils and nvidia-440xx-utils are in conflict. Remove nvidia-440xx-utils? - Yes -> Error. Conflict between packages.
  2. Replace xapps for community/xapp? - No -> same error

No matter what options I choose I always get errors and I can’t update my system.

I’m new to Linux, any advise?

2 Likes

You’re missing the proper error message to troubleshoot your issue. Most likely you have a metapackage installed that you need to remove before going further, as the metapackage is here to force your install specific version.
Copy proper error message, full error message, not a cut down translated one.

1 Like

This is what I get (it’s in Czech):

:: Spouští se aktualizace systému…
:: Nahradit xapps za community/xapp? [A/n]
řeší se závislosti…
kontrola konfliktních balíčků…
:: nvidia-450xx-utils a nvidia-440xx-utils jsou v konfliktu (nvidia-libgl). Odstranit nvidia-440xx-utils? [a/N]
chyba: zjištěn konflikt nerozlišitelných balíčků
chyba: selhala příprava transakce (konfliktní závislosti)
:: nvidia-450xx-utils a nvidia-440xx-utils jsou v konfliktu

See here

Doesn’t work. I get this error after executing the first command:

chyba: chyba inicializace knihovny alpm
(nelze nalézt nebo číst adresář: pci/var/lib/pacman/)

error: error initializing library alpm
(can’t find or read pci/var/lib/pacman/)

Make sure you use -R and not -r in the first command.

Also, what is this

???

Well I was able to run the first command:
sudo pacman -R linux-latest-nvidia-440xx that seems to have removed the package.

But after running sudo mhwd -r pci video-nvidia-440xx I get this error:
chyba: selhala příprava transakce (nelze vyřešit závislosti)
:: odstranění nvidia-440xx-utils poruší závislost ‘nvidia-utils’ vyžadovanou balíčkem cuda
Error: pacman failed!
Error: script failed!

Removing nvidia-440xx-utils is interrupting the dependency ‘nvidia-utils’ which is required by the package cuda (translated).

You have to remove cuda … then install the driver, then reinstall cuda :slight_smile:

1 Like

I just resolved this conflict by following your steps. Should I clean the older nvidia packages and what would be a safe way to do it?

$ pacman -Qs nvidia
local/cuda 11.0.3-1
    NVIDIA's GPU programming toolkit
local/lib32-libvdpau 1.4-1
    Nvidia VDPAU library
local/lib32-nvidia-450xx-utils 450.66-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/linux54-nvidia-450xx 450.66-6 (linux54-extramodules)
    NVIDIA drivers for linux.
local/mhwd-nvidia-340xx 340.108-1
    MHWD module-ids for nvidia 340.108
local/mhwd-nvidia-390xx 390.132-1
    MHWD module-ids for nvidia 390.132
local/mhwd-nvidia-418xx 418.113-1
    MHWD module-ids for nvidia-418xx 418.113
local/mhwd-nvidia-430xx 430.64-1.0
    MHWD module-ids for nvidia-430xx 430.64
local/mhwd-nvidia-435xx 435.21-1.0
    MHWD module-ids for nvidia 435.21
local/mhwd-nvidia-440xx 440.100-1
    MHWD module-ids for nvidia 440.100
local/mhwd-nvidia-450xx 450.66-1
    MHWD module-ids for nvidia 450.66
local/nvidia-450xx-utils 450.66-1
    NVIDIA drivers utilities
local/opencl-nvidia-440xx 440.100-1
    OpenCL implemention for NVIDIA
local/xf86-video-nouveau 1.0.16-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

DO NOT REMOVE THESE!

These are important dependency in the system, required by MHWD, even if you currently do not have anything Nvidia in the machine.

From the above list I guess only opencl-nvidia-440xx is safe to remove?

I have a similar problem, although I know how to fix it (and I have) I wonder if there is an easier (automatic) solution. The problem is that I have a machine learning library installed that requires a couple of things that all require nvidia. Now, I would like to have an AUTOMATIC way of uninstalling all dependencies on nvidia, installing the new version of the nvidia driver, and reinstalling all previously uninstalled things.

Does such a thing exist? I know that I can do -Rc for cascading uninstall… but why isn’t there a way to do the other steps (updating and reinstalling) as well during update.

UPDATE - FIXED!
I removed the cuda package and everything updated normally!

HOWEVER - If I want to reinstall cuda the issue with the different nvidia-utils remains. So the issue is solved for updating the system, but in order to reinstall the cuda package you have to remove linux57-nvidia-440xx, lib32-nvidia-440xx-utils and nvidia-440x-utils.

No idea if it’s save to remove those or not.

This resolved my issue:

pamac remove cuda*
pamac remove $(awk -F . '{print "linux"$1$2"-nvidia-440xx"}' <<< "$(uname -r)")
pamac remove opencl-nvidia-440xx
sudo mhwd --remove pci video-nvidia-440xx
sudo mhwd --install pci video-nvidia-450xx
pamac install opencl-nvidia-450xx
pamac install cuda

This is also a useful link on how to fine tune your nVidia settings.

Note: the awk -F . '{print "linux"$1$2 just resolves to linux54 if you’re on the 5.4 series, linux58 if you’re on 5.8 and is there for people who blindly copy-paste solutions…

4 Likes

hi,

just got a similar issue, but i could not proceed v450 installation because of prime funtionnality, with this error:
gwen@gl553vd-manjaro ~]$ sudo mhwd -i pci video-nvidia-450xx

Installing video-nvidia-450xx…
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-450xx/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
vérification des dépendances…
erreur : la préparation de la transaction a échoué (la satisfaction des dépendances a échoué)
:: la suppression de linux57-nvidia-440xx casse la dépendance « linux57-nvidia-440xx » requise par linux-latest-nvidia-440xx
:: la suppression de nvidia-440xx-utils casse la dépendance « nvidia-utils » requise par nvidia-prime
Error: pacman failed!
Error: script failed!

but it succeeded with upgrade after remove cuda and then i could not reinstall it
[gwen@gl553vd-manjaro ~]$ sudo pacman -S cuda
résolution des dépendances…
recherche des conflits entre paquets…
:: nvidia-450xx-utils et nvidia-440xx-utils sont en conflit (nvidia-libgl). Supprimer nvidia-440xx-utils ? [o/N] o
erreur : la préparation de la transaction a échoué (la satisfaction des dépendances a échoué)
:: la suppression de nvidia-440xx-utils casse la dépendance « nvidia-440xx-utils » requise par lib32-nvidia-440xx-utils
:: la suppression de nvidia-440xx-utils casse la dépendance « nvidia-440xx-utils=440.100 » requise par linux57-nvidia-440xx

i also saw an information message when upgrading:
(172/227) mise à jour de linux57 [######################] 100%

NOTE, 5.7.19 was the last maintenance release by Greg Kroah-Hartman.
This kernel series is now marked EOL (end of life).

It is recommend to move on to linux58 series.
Use followed cmd to do that: 'sudo mhwd-kernel -i linux58'

Try removing linux-latest-nvidia-440xx right after removing cuda.

But be careful, I’ve seen lots of issues with linux58 vs. nvidia-450xx.

i think i have some files of 440xx and 450xx, but linux 5.8 is now installed, my problem comes from nvidia prime on rog laptop:

  • 440xx cannot be removed
  • 450xx cannot be installed

[gwen@gl553vd-manjaro ~]$ sudo pacman -S cuda
[sudo] Mot de passe de gwen :
résolution des dépendances…
recherche des conflits entre paquets…
:: nvidia-450xx-utils et nvidia-440xx-utils sont en conflit (nvidia-libgl). Supprimer nvidia-440xx-utils ? [o/N] o
erreur : la préparation de la transaction a échoué (la satisfaction des dépendances a échoué)
:: la suppression de nvidia-440xx-utils casse la dépendance « nvidia-440xx-utils » requise par lib32-nvidia-440xx-utils
:: la suppression de nvidia-440xx-utils casse la dépendance « nvidia-440xx-utils=440.100 » requise par linux57-nvidia-440xx
:: la suppression de nvidia-440xx-utils casse la dépendance « nvidia-440xx-utils=440.100 » requise par linux58-nvidia-440xx
[gwen@gl553vd-manjaro ~]$ sudo mhwd -i pci video-nvidia-450xx
[sudo] Mot de passe de gwen :

Installing video-nvidia-450xx…
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-450xx/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
vérification des dépendances…
erreur : la préparation de la transaction a échoué (la satisfaction des dépendances a échoué)
:: la suppression de nvidia-440xx-utils casse la dépendance « nvidia-utils » requise par nvidia-prime
Error: pacman failed!
Error: script failed!

i 'll wait for reinstall cuda, i will try reinstall cuda when next upgrade is coming

Is it common to experience major update issues like this in Manjaro? I am new to the distribution, and thought that it was more stable. Last week I lost sound in my desktop, and now I can’t update because of a NVIDIA driver. :confused:

Appreciate if you can advise on a simple solution for users who don’t want to risk breaking their system with manual removal of packages.

2 Likes

hmm this makes me wonder if 450xx would work for me if I removed cuda. I’ll debate whether or not to try that this weekend.

hi, since i use manjaro (installed 05 february 2020), this is the 1st time i meet issue with nvidia prime driver, and i hope this issue is solved when i proceed to next upgrade