You are not logged in.

#1 2022-05-14 23:20:05

grinner
Member
Registered: 2019-06-28
Posts: 28

[SOLVED] nvidia package conflict

Hello, I have used arch for a few years but am not the most skilled user.

When trying to update today using

pacman -Syu

I get

:: Synchronizing package databases...
 core                  155.3 KiB   440 KiB/s 00:00 [######################] 100%
 extra                1721.1 KiB  4.10 MiB/s 00:00 [######################] 100%
 community               6.6 MiB  6.03 MiB/s 00:01 [######################] 100%
 multilib              172.8 KiB  2.68 MiB/s 00:00 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
warning: removing 'nvidia' from target list because it conflicts with 'nvidia-dkms'
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nvidia-dkms and nvidia-lts are in conflict

My current packages are

nvidia-dkms 510.68.02-1
nvidia 510.68.02-3
nvidia-lts 1:510.68.02-4
pacman 6.0.1-5

Is there a safe way to proceed with the update?  If so, how?

Happy to provide whatever extra information may be useful (but I don't know what).

Last edited by grinner (2022-05-15 02:04:40)

Offline

#2 2022-05-14 23:34:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,062
Website

Re: [SOLVED] nvidia package conflict

Why do you have three nvidia packages installed??  You should only have one of those and it should not have been possible to install all of them.  Remove the ones you do not intend to use.

edit: I suppose it used to be possible - but it never made any sense to do so.  Now they actually conflict.

Last edited by Trilby (2022-05-14 23:35:51)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2022-05-14 23:50:43

grinner
Member
Registered: 2019-06-28
Posts: 28

Re: [SOLVED] nvidia package conflict

I have both the linux kernel and the linux-lts kernel installed.  They require different nvidia versions - nvidia and nvidia-lts respectively, unless I am mistaken.

nvidia-dkms was installed as a requirement for the dkms package, which in turn was a requirement for one of the wine forks I use from time to time.  I guess it may be safe to remove the base nvidia package?  But I would like to be sure before potentially losing my graphical interface (or whatever it is properly called). smile

Offline

#4 2022-05-15 00:43:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,062
Website

Re: [SOLVED] nvidia package conflict

grinner wrote:

I have both the linux kernel and the linux-lts kernel installed.  They require different nvidia versions - nvidia and nvidia-lts respectively

The stock kernel uses nvidia or nvidia-dkms, while the lts kernel uses nvidia-lts or nvidia-dkms.  So you should have either nvidia and nvidia-lts or nvidia-dkms installed.

grinner wrote:

nvidia-dkms was installed as a requirement for the dkms package

No, that's backwards: nvidia-dkms requies dkms.

Either remove nvidia-dkms or remove both nvidia and nvidia-lts.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2022-05-15 01:04:08

grinner
Member
Registered: 2019-06-28
Posts: 28

Re: [SOLVED] nvidia package conflict

The update proceeded after both nvidia and nvidia-lts were removed (thanks to Trilby for the hint).

The linux kernel (my daily driver) functions as normal.  (Aside: I guess that means the nvidia package was redundant for me.)  So original problem solved.. sort of.

There is still an issue.  When I attempt to boot into the the linux-lts kernel it does not find the desktop/diplay manager.  It has been useful in a couple of occasions over a few years.  Attempting to reinstall nvidia-lts results in a conflict being detected.

Output of "journalctl -b-1 -p4" for failed linux-lts boot:

$ journalctl -b-1 -p4
May 15 10:29:33 xxxx kernel: pci 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
May 15 10:29:33 xxxx kernel: ata3.00: supports DRM functions and may not be fully accessible
May 15 10:29:33 xxxx kernel: ata2.00: NCQ Send/Recv Log not supported
May 15 10:29:33 xxxx kernel: ata1.00: supports DRM functions and may not be fully accessible
May 15 10:29:33 xxxx kernel: ata2.00: NCQ Send/Recv Log not supported
May 15 10:29:33 xxxx kernel: ata1.00: supports DRM functions and may not be fully accessible
May 15 10:29:33 xxxx kernel: ata3.00: supports DRM functions and may not be fully accessible
May 15 10:29:33 xxxx systemd-modules-load[237]: Failed to find module 'vhba'
May 15 10:29:33 xxxx systemd-modules-load[237]: Failed to find module 'nvidia-uvm'
May 15 10:29:33 xxxx kernel: wmi_bus wmi_bus-PNP0C14:00: WQAA data block query control method not found
May 15 10:29:34 xxxx kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
May 15 10:29:35 xxxx kernel: urandom_read: 1 callbacks suppressed
May 15 10:29:35 xxxx systemd[1]: lightdm.service: Failed with result 'exit-code'.
May 15 10:29:35 xxxx systemd[1]: lightdm.service: Failed with result 'exit-code'.
May 15 10:29:35 xxxx systemd[1]: lightdm.service: Failed with result 'exit-code'.
May 15 10:29:36 xxxx systemd[1]: lightdm.service: Failed with result 'exit-code'.
May 15 10:29:36 xxxx systemd[1]: lightdm.service: Failed with result 'exit-code'.
May 15 10:29:37 xxxx systemd[1]: lightdm.service: Start request repeated too quickly.
May 15 10:29:37 xxxx systemd[1]: lightdm.service: Failed with result 'exit-code'.
May 15 10:29:37 xxxx systemd[1]: Failed to start Light Display Manager.
May 15 10:30:51 xxxx dhcpcd[531]: dhcpcd not running
May 15 10:30:51 xxxx systemd[1]: dhcpcd@enp0s31f6.service: Failed with result 'exit-code'.
May 15 10:30:53 xxxx kernel: Emergency Sync complete

The vhba package (at least) is not available for the lts kernel.

Is there a way to get the linux-lts kernel to boot with the nvidia-dkms package so that it can function as a fallback?  Or can the conflict between different nvidia packages be removed? Or...?

Edit: sorry I missed the last post while writing.

Last edited by grinner (2022-05-15 01:05:21)

Offline

#6 2022-05-15 01:28:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,062
Website

Re: [SOLVED] nvidia package conflict

If you want to use the nvidia-dkms package, you'll need the headers for every kernel installed.  I'd suspect you do not have linux-lts-headers installed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2022-05-15 01:56:09

grinner
Member
Registered: 2019-06-28
Posts: 28

Re: [SOLVED] nvidia package conflict

You were absolutely correct.  Problem solved. 

Thankyou so much for your time.

Offline

#8 2022-05-15 10:18:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,256

Re: [SOLVED] nvidia package conflict

grinner wrote:

The vhba package (at least) is not available for the lts kernel.

https://wiki.archlinux.org/title/CDemu wrote:

If you are using a custom kernel, instead of the normal vhba kernel module package, vhba-module, you must use the DKMS variant of the package, vhba-module-dkms.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2022-05-15 23:01:53

grinner
Member
Registered: 2019-06-28
Posts: 28

Re: [SOLVED] nvidia package conflict

Yes, I was already using that package.

Let me correct myself, "The vhba package does not work with nvidia-lts."

Offline

Board footer

Powered by FluxBB