You are not logged in.

#1 2015-03-01 21:34:47

digger
Member
Registered: 2012-07-06
Posts: 10

[Solved] Full system upgrade fails because of Nvidia dependencies

Problem:

# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia-dkms: requires nvidia-utils=346.35

Things I have tried:

$ makepkg -s
==> Making package: nvidia-dkms 346.47-1 (Sun Mar  1 11:42:11 PST 2015)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for digger: 
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia-dkms: requires nvidia-utils=346.35
==> ERROR: 'pacman' failed to install missing dependencies.

# pacman -R nvidia-utils
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia-dkms: requires nvidia-utils=346.35
:: nvidia-libgl: requires nvidia-utils

Some info:

$ uname -a
Linux <hostname> 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64 GNU/Linux

# dkms status
nvidia, 346.35, 3.18.5-1-ARCH, x86_64: installed
nvidia, 346.35, 3.18.6-1-ARCH, x86_64: installed

$ lspci -k | grep -A 2 -i "VGA"
03:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 640] (rev a1)
	Subsystem: eVga.com. Corp. Device 2643
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia
--
	Subsystem: eVga.com. Corp. Device 2643
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

# pacman -Ss nvidia | grep installed
extra/libvdpau 0.9-1 [installed]
extra/nvidia-libgl 346.47-2 [installed: 346.35-2]
extra/nvidia-utils 346.47-2 [installed: 346.35-2]

# cat /etc/mkinitcpio.conf | grep ^HOOKS
HOOKS="base udev autodetect modconf block lvm2 nvidia filesystems keyboard fsck"

# systemctl status dkms
● dkms.service - Dynamic Kernel Modules System
   Loaded: loaded (/usr/lib/systemd/system/dkms.service; enabled; vendor preset: disabled)
   Active: active (exited) since Sun 2015-03-01 11:40:15 PST; 1h 43min ago
  Process: 6196 ExecStart=/usr/lib/systemd/scripts/dkms start (code=exited, status=0/SUCCESS)
 Main PID: 6196 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/dkms.service

# pacman -Qm | grep nvidia
nvidia-dkms 346.35-2
nvidia-hook 2.2-3

Let me know if any other information is needed.

Thanks.

Last edited by digger (2015-03-03 03:12:52)

Offline

#2 2015-03-01 21:42:43

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 752

Re: [Solved] Full system upgrade fails because of Nvidia dependencies

Uninstall nvidia-dkms, upgrade, install nvidia-dkms from AUR again.

Offline

#3 2015-03-01 22:42:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Full system upgrade fails because of Nvidia dependencies

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-03-02 00:20:05

weirddan455
Member
Registered: 2012-04-15
Posts: 209

Re: [Solved] Full system upgrade fails because of Nvidia dependencies

==> Making package: nvidia-dkms 346.47-1 (Sun Mar  1 11:42:11 PST 2015)
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia-dkms: requires nvidia-utils=346.35

It looks like the maintainer forgot to update the version of the dependencies.  You can try editing the PKGBUILD to make it depend on 346.47 instead of 346.35 and see if that works.  I don't use that package so I don't know.  You only need it if you're running a custom kernel, otherwise you can just use the "nvidia" package in the repos.

Offline

#5 2015-03-02 01:54:14

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 752

Re: [Solved] Full system upgrade fails because of Nvidia dependencies

Maintainer did not forget anything, nvidia-dkms is an AUR package which depends on a specific version of nvidia-utils, which is maintained in extra. Version in extra went higher, and since there is no package to download from repository but needs to be rebuilt manually, solution is to uninstall AUR package, do a system ugrade, then reinstall/rebuild that package.

Better question would be: why nvidia-dkms? Someone who's building their own custom kernel should know how to deal with issues such as this one, other commonly used kernel builds (such as ck, pf, ice, mainline and others) have their respective nvidia-kernelname packages in AUR or custom repoes which seem to handle dependancies on major upgrades a lot better (imo).

Offline

#6 2015-03-03 02:17:34

digger
Member
Registered: 2012-07-06
Posts: 10

Re: [Solved] Full system upgrade fails because of Nvidia dependencies

The fix, thanks to Xabre

# pacman -R nvidia-dkms
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia-hook: requires nvidia-dkms
# pacman -Rs nvidia-dkms
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: nvidia-hook: requires nvidia-dkms
[root@big-kahuna ~]# pacman -Rdd nvidia-dkms

Packages (1) nvidia-dkms-346.35-2

Total Removed Size:  12.29 MiB

:: Do you want to remove these packages? [Y/n] Y

-------- Uninstall Beginning --------
Module:  nvidia
Version: 346.35
Kernel:  3.18.5-1-ARCH (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.18.5-1-ARCH/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.18.5-1-ARCH/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module:  nvidia
Version: 346.35
Kernel:  3.18.6-1-ARCH (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.18.6-1-ARCH/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.18.6-1-ARCH/kernel/drivers/video/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.....

DKMS: uninstall completed.

------------------------------
Deleting module version: 346.35
completely from the DKMS tree.
------------------------------
Done.
(1/1) removing nvidia-dkms                         [######################] 100%
# pacman -Syu   ### This ran as expected. 

All I wanted was to have the simplest use of the Nvidia proprietary driver.  So I followed https://wiki.archlinux.org/index.php/NV … any_kernel

So what I gather from the discussion here is that this (nvidia-dkms) should only be used for custom kernels?  And the topic should be a sub topic of https://wiki.archlinux.org/index.php/NV … tom_kernel?  Is that right?

Thanks for you help.

Last edited by digger (2015-03-03 03:11:58)

Offline

Board footer

Powered by FluxBB