Cannot install Nvidia drivers after Manjaro update

Hello, after the recent Manjaro update I noticed I have just the free drivers and wanted to install the Nvidia drivers, so I tried this command:

sudo mhwd -a pci nonfree 0300

However it fails with these conflicts:

> Using config 'video-nvidia' for device: 0000:01:00.0 (0300:10de:13c2) Display controller nVidia Corporation GM204 [GeForce GTX 970]
> Installing video-nvidia...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
resolving dependencies...
looking for conflicting packages...

Packages (4) lib32-nvidia-utils-460.32.03-1  linux510-nvidia-460.32.03-6  linux54-nvidia-460.32.03-3  nvidia-utils-460.32.03-1

Total Installed Size:  472,26 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
error: failed to commit transaction (conflicting files)
lib32-nvidia-utils: /usr/lib32/libEGL_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv1_CM_nvidia.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv2_nvidia.so.2 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLX_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libcuda.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvcuvid.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-eglcore.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-encode.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-fbc.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glcore.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glsi.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glvkspirv.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ifr.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ml.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-opticalflow.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ptxjitcompiler.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-tls.so.460.32.03 exists in filesystem
Errors occurred, no packages were upgraded.
Error: pacman failed!
Error: script failed!

Here are my outputs of some system commands:

>>> inxi -G                                                                                                       [1]
Graphics:  Device-1: NVIDIA GM204 [GeForce GTX 970] driver: nouveau v: kernel 
           Display: x11 server: X.org 1.20.10 driver: loaded: modesetting resolution: <missing: xdpyinfo> 
           OpenGL: renderer: NV124 v: 4.3 Mesa 20.3.3 


>>> mhwd -li                                                                                                         
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!


>>> mhwd -l                                                                                                          
> 0000:01:00.0 (0300:10de:13c2) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2020.11.30               false            PCI
    video-nvidia-390xx            2020.11.30               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

Please, could you help me to get the latest Nvidia drivers working?

Can you post

inxi -Fazy
pacman -Qs nvidia
~ >>> inxi -Fazy                                                                                                       
System:
  Kernel: 5.10.7-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=079474bf-1709-4b8f-a158-9bada0dd1a35 rw quiet apparmor=1 
  security=apparmor resume=UUID=1cb826bf-df5a-4858-9a8c-23d6feb94f81 
  udev.log_priority=3 
  Desktop: GNOME 3.38.3 tk: GTK 3.24.24 wm: gnome-shell dm: GDM 3.38.2.1 
  Distro: Manjaro Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: P8Z68-V PRO v: Rev 1.xx serial: <filter> 
  BIOS: American Megatrends v: 3603 date: 11/09/2012 
Battery:
  Device-1: hidpp_battery_0 model: Logitech M720 Triathlon Multi-Device Mouse 
  serial: <filter> charge: 55% (should be ignored) rechargeable: yes 
  status: Discharging 
CPU:
  Info: Quad Core model: Intel Core i7-3770 bits: 64 type: MT MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  L2 cache: 8 MiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 54418 
  Speed: 3243 MHz min/max: 1600/3900 MHz Core speeds (MHz): 1: 3243 2: 2493 
  3: 3029 4: 3307 5: 2794 6: 2742 7: 2544 8: 2184 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Vulnerable: No microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: ASUSTeK driver: nouveau 
  v: kernel bus ID: 01:00.0 chip ID: 10de:13c2 
  Display: x11 server: X.org 1.20.10 compositor: gnome-shell driver: 
  loaded: modesetting alternate: fbdev,nouveau,nv,vesa 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: NV124 v: 4.3 Mesa 20.3.3 direct render: Yes 
Audio:
  Device-1: NVIDIA GM204 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0fbb 
  Device-2: C-Media CMI8788 [Oxygen HD Audio] vendor: ASUSTeK Virtuoso 100 
  driver: snd_virtuoso v: kernel bus ID: 08:01.0 chip ID: 13f6:8788 
  Sound Server: ALSA v: k5.10.7-3-MANJARO 
Network:
  Device-1: Intel 82579V Gigabit Network driver: e1000e v: kernel port: f040 
  bus ID: 00:19.0 chip ID: 8086:1503 
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 5.79 TiB used: 1.49 TiB (25.7%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB 
  size: 232.89 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  serial: <filter> rev: 3B6Q 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 850 EVO 120GB 
  size: 111.79 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  serial: <filter> rev: 1B6Q 
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD10EFRX-68PJCN0 
  size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: 1A01 
  ID-4: /dev/sdd maj-min: 8:48 vendor: Western Digital model: WD40EFRX-68N32N0 
  size: 3.64 TiB block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s 
  serial: <filter> rev: 0A82 
  ID-5: /dev/sde maj-min: 8:64 type: USB model: Realtek RTL9210 NVME 
  size: 931.51 GiB block size: physical: 512 B logical: 512 B serial: <filter> 
  rev: 1.00 
Partition:
  ID-1: / raw size: 102.99 GiB size: 100.87 GiB (97.94%) 
  used: 21.46 GiB (21.3%) fs: ext4 dev: /dev/sdb1 maj-min: 8:17 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sdb2 maj-min: 8:18 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nouveau temp: 44.0 C 
  Fan Speeds (RPM): N/A gpu: nouveau fan: 985 
Info:
  Processes: 278 Uptime: N/A wakeups: 2 Memory: 15.6 GiB 
  used: 1.81 GiB (11.6%) Init: systemd v: 247 Compilers: gcc: 10.2.0 
  Packages: 1369 pacman: 1360 lib: 385 flatpak: 0 snap: 9 Shell: Zsh v: 5.8 
  running in: gnome-terminal inxi: 3.2.02 

~ >>> pacman -Qs nvidia                                                                                                                      
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/libxnvctrl 460.27.04-1
    NVIDIA NV-CONTROL X extension
local/mhwd-nvidia 460.32.03-1
    MHWD module-ids for nvidia 460.32.03
local/mhwd-nvidia-390xx 390.141-1
    MHWD module-ids for nvidia 390.141

@Wollie I have also tried to remove the conflicting packages before that, but without any success.

OK, I would try

sudo mhwd -r pci video-nvidia
sudo mhwd -r pci video-nvidia-390xx
sudo mhwd -a pci nonfree 0300

I must have something wrong, because it says not installed, despite mhwd -l has it listed.

~ >>> sudo mhwd -r pci video-nvidia                                                                                                          
Error: config 'video-nvidia' is not installed!
~ >>> sudo mhwd -r pci video-nvidia-390xx                                                                                                 [1]
Error: config 'video-nvidia-390xx' is not installed!

OK, I removed the old kernel 5.4 and also tried to run multiple commands to resolve the conflicts like:

sudo pacman -S nvidia-utils
sudo pacman -S linux510-nvidia

Which resulted in reduction of conflicts from 4 to1, but there is still the Packages (1) lib32-nvidia-utils-460.32.03-1 which makes this problem:

~ >>> sudo mhwd -i pci video-nvidia                                                                                    
> Installing video-nvidia...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
warning: nvidia-utils-460.32.03-1 is up to date -- skipping
warning: linux510-nvidia-460.32.03-6 is up to date -- skipping
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) lib32-nvidia-utils-460.32.03-1

Total Installed Size:  107,70 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
error: failed to commit transaction (conflicting files)
lib32-nvidia-utils: /usr/lib32/libEGL_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv1_CM_nvidia.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv2_nvidia.so.2 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLX_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libcuda.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvcuvid.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-eglcore.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-encode.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-fbc.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glcore.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glsi.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glvkspirv.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ifr.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ml.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-opticalflow.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ptxjitcompiler.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-tls.so.460.32.03 exists in filesystem
Errors occurred, no packages were upgraded.
Error: pacman failed!
Error: script failed!

Then, I tried…

~ >>> sudo pacman -R lib32-nvidia-utils                                                                           [130]
error: target not found: lib32-nvidia-utils
~ >>> sudo pacman -S lib32-nvidia-utils                                                                             [1]
resolving dependencies...
looking for conflicting packages...

Packages (1) lib32-nvidia-utils-460.32.03-1

Total Installed Size:  107,70 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                           [########################################] 100%
(1/1) checking package integrity                                         [########################################] 100%
(1/1) loading package files                                              [########################################] 100%
(1/1) checking for file conflicts                                        [########################################] 100%
error: failed to commit transaction (conflicting files)
lib32-nvidia-utils: /usr/lib32/libEGL_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv1_CM_nvidia.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLESv2_nvidia.so.2 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libGLX_nvidia.so.0 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libcuda.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvcuvid.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-eglcore.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-encode.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-fbc.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glcore.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glsi.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-glvkspirv.so.460.32.03 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ifr.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ml.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-opticalflow.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-ptxjitcompiler.so.1 exists in filesystem
lib32-nvidia-utils: /usr/lib32/libnvidia-tls.so.460.32.03 exists in filesystem
Errors occurred, no packages were upgraded.

Any idea how to get rid of the conflicting package lib32-nvidia?

2 Likes

@openminded Thank you for the post!

Using the command pacman -Qo /path/to/file, I found the conflicting files are not owned by any package, so I just deleted them by sudo rm.

Then I installed the Nvidia drivers successfully by:

sudo mhwd -i pci video-nvidia

It’s just sad that driver problems were caused by the system update, which seems to be mandatory/recommended to do before installing any new app, but it has the ability to break your system. Another thing I noticed after the update is, that I don’t get the Grub bootloader menu anymore and it’s booting directly to Manjaro, but that’s another issue.

1 Like

Add for grub “issue”, try pressing Esc key at the moment when it is supposed to show its menu.

For context, I am running manjaro with linux 5.10 and am also running snapd version 2.48.2-1

As mentioned above, I am also unable to install nvidia drivers after the recent manjaro update because of a conflict with lib32-nvidia-utils. When the nvidia install failed because files already existed, I ran:

pacman -Qo /path/to/file/

on all of the dependency files that already existed, but it returned a error that no package owned any of them.

At that point, I ran:

sudo pacman -S lib32-nvidia-utils --overwrite ‘*’

to overwrite what I believed were orphaned files. After this, I was able to successfully install the new nvidia drivers, but after rebooting I couldn’t launch any of my snap apps.

I tried launching from command line using:

snap run app-name

and it returns the error: “failed to create prefix path: /tmp/snap.rootfs_OokoIO/var/lib/snapd/lib/gl32 broken-dep: Permission Denied”.

I spent a number of hours trying to trace the issue and it appears to be with apparmor, but strangely if I uninstall the nvidia drivers and revert to the generic video-linux driver, snap will function again on reboot. Any idea of how to go about fixing this so I can use both nvidia drivers and snap apps?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.