You are not logged in.

#1 2016-11-23 22:51:04

calliuz
Member
Registered: 2008-04-27
Posts: 16

[SOLVED] failed to prepare transaction (could not satisfy dependencies

Hi all

I'm trying to switch my Nvidia drivers from 304xx to 340xx (I have an old MSI Geforce 210 card) on my server

Some background:

[xxxx@SRV ~]$ sudo inxi -G
Graphics:  Card: NVIDIA GT218 [GeForce 210]
           Display Server: X.org 1.18.4 driver: FAILED: nvidia
           tty size: 185x65 Advanced Data: N/A for root out of X

[xxxx@SRV ~]$ systemctl --failed
  UNIT             LOAD   ACTIVE SUB    DESCRIPTION
● session-c2.scope loaded failed failed Session c2 of user sddm
● sddm.service     loaded failed failed Simple Desktop Display Manager

[xxxx@SRV ~]$ sudo pacman -R nvidia-304xx
error: target not found: nvidia-304xx

[xxxx@SRV ~]$ sudo pacman -S nvidia-340xx nvidia-340xx-libgl
resolving dependencies...
looking for conflicting packages...
:: nvidia-340xx-utils and nvidia-304xx-utils are in conflict (nvidia-utils). Remove nvidia-304xx-utils? [y/N] y
:: nvidia-340xx-libgl and nvidia-304xx-libgl are in conflict (libgl). Remove nvidia-304xx-libgl? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-nvidia-304xx-utils: removing nvidia-304xx-utils breaks dependency 'nvidia-304xx-utils'

[xxxx@SRV ~]$ _qi nvidia-304xx-utils
Name            : nvidia-304xx-utils
Version         : 304.132-1
Description     : NVIDIA drivers utilities and libraries, 304xx legacy branch
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom
Groups          : None
Provides        : nvidia-utils
Depends On      : xorg-server  libxvmc
Optional Deps   : gtk2: nvidia-settings [installed]
                  pkg-config: nvidia-xconfig [installed]
                  opencl-nvidia-304xx: OpenCL support
Required By     : lib32-nvidia-304xx-utils  nvidia-304xx-libgl
Optional For    : None
Conflicts With  : nvidia-utils
Replaces        : None
Installed Size  : 73.40 MiB
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Fri 21 Oct 2016 09:25:35 AM CEST
Install Date    : Fri 21 Oct 2016 01:43:39 PM CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

[xxxx@SRV ~]$ _qi    lib32-nvidia-304xx-utils
Name            : lib32-nvidia-304xx-utils
Version         : 304.132-1
Description     : NVIDIA drivers utilities (32-bit)
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom
Groups          : None
Provides        : None
Depends On      : lib32-libxvmc  lib32-zlib  lib32-gcc-libs  lib32-libxext  nvidia-304xx-utils
Optional Deps   : lib32-opencl-nvidia-304xx
Required By     : lib32-nvidia-304xx-libgl
Optional For    : None
Conflicts With  : lib32-nvidia-utils
Replaces        : None
Installed Size  : 43.75 MiB
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Fri 21 Oct 2016 09:37:23 AM CEST
Install Date    : Fri 21 Oct 2016 01:43:45 PM CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature


[xxxx@SRV ~]$ _qi   lib32-nvidia-304xx-libgl
Name            : lib32-nvidia-304xx-libgl
Version         : 304.132-1
Description     : NVIDIA drivers libraries symlinks (32-bit)
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom
Groups          : None
Provides        : lib32-libgl
Depends On      : lib32-nvidia-304xx-utils  lib32-mesa
Optional Deps   : None
Required By     : lib32-glu
Optional For    : None
Conflicts With  : lib32-libgl
Replaces        : None
Installed Size  : 1024.00 B
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Fri 21 Oct 2016 09:37:47 AM CEST
Install Date    : Fri 21 Oct 2016 01:43:45 PM CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature



[xxxx@SRV ~]$ _qi lib32-glu
Name            : lib32-glu
Version         : 9.0.0-3
Description     : Mesa OpenGL utility library (32 bits)
Architecture    : x86_64
URL             : http://mesa.freedesktop.org/
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : lib32-libgl  glu
Optional Deps   : None
Required By     : wine
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 559.00 KiB
Packager        : Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
Build Date      : Mon 07 Dec 2015 02:22:28 PM CET
Install Date    : Fri 19 Aug 2016 10:55:08 PM CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

I don't quite get the (recursive) meaning of "removing nvidia-304xx-utils breaks dependency 'nvidia-304xx-utils'" !

So do I really have to uninstall (and later reinstall) the wine package to execute this driver switch??

Last edited by calliuz (2016-11-24 15:47:43)

Offline

#2 2016-11-23 23:18:54

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] failed to prepare transaction (could not satisfy dependencies

You just need to add the corresponding lib32- packages to your command line, to replace all nvidia packages at once.

Offline

#3 2016-11-24 10:11:50

calliuz
Member
Registered: 2008-04-27
Posts: 16

Re: [SOLVED] failed to prepare transaction (could not satisfy dependencies

Do you mean like this:

[xxxx@SRV ~]$ sudo pacman -Sy nvidia-340xx  nvidia-340xx-utils  nvidia-340xx-libgl    lib32-nvidia-340xx-utils  lib32-nvidia-340xx-libgl
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 archlinuxfr is up to date
resolving dependencies...
looking for conflicting packages...
:: nvidia-340xx-utils and nvidia-304xx-utils are in conflict (nvidia-utils). Remove nvidia-304xx-utils? [y/N] y
:: nvidia-340xx-libgl and nvidia-304xx-libgl are in conflict (libgl). Remove nvidia-304xx-libgl? [y/N] y
:: lib32-nvidia-340xx-libgl and lib32-nvidia-304xx-libgl are in conflict (lib32-libgl). Remove lib32-nvidia-304xx-libgl? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-nvidia-304xx-utils: removing nvidia-304xx-utils breaks dependency 'nvidia-304xx-utils'

Offline

#4 2016-11-24 15:47:11

calliuz
Member
Registered: 2008-04-27
Posts: 16

Re: [SOLVED] failed to prepare transaction (could not satisfy dependencies

OK - to solve this naughty  "dep hell" I had to run

pacman -Rdd nvidia-304xx nvidia-304xx-utils nvidia-304xx-libgl

before being able to install the 340-xxx driver

 pacman -Sy nvidia-340xx nvidia-340xx-utils

Last edited by calliuz (2016-11-24 15:48:16)

Offline

#5 2016-11-24 16:22:02

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [SOLVED] failed to prepare transaction (could not satisfy dependencies

First running pacman -Sy [anything] is a good way to break your system with a partial upgrade (and with the readline update that just went through this is a real possibility)

Second it if you end up using the -Rdd switch you need to be sure to install all the replacements. It looks like you never installed nvidia-340xx-libgl to replace the the 304xx version, and still have lib32-nvidia-304xx-utils lib32-nvidia-304xx-libgl installed and not the 340xx of either.

There might be other dependency issues that you told pacman to ignore, so you should check to be sure no packages are left that relied on the nvidia-304xx packages

Offline

#6 2016-12-03 22:21:52

calliuz
Member
Registered: 2008-04-27
Posts: 16

Re: [SOLVED] failed to prepare transaction (could not satisfy dependencies

Sorry for this very late reply.


1) Immediately before the

pacman -Sy nvidia-340xx nvidia-340xx-utils

I had issued a

pacman -Syu

. Should have mentioned that of course so my bad.

2)

Second it if you end up using the -Rdd switch you need to be sure to install all the replacements. It looks like you never installed nvidia-340xx-libgl to replace the the 304xx version, and still have lib32-nvidia-304xx-utils lib32-nvidia-304xx-libgl installed and not the 340xx of either.

Yeah  that's a given.

But alas my battlestation is up running fine again :-) so thanx for all assistance!

Last edited by calliuz (2016-12-03 22:24:36)

Offline

Board footer

Powered by FluxBB