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!
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!
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.
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?