You are not logged in.

#1 2015-06-12 10:20:34

mickours
Member
Registered: 2013-01-11
Posts: 6

[SOLVED]Make Pacman think that I have libgl (NVIDIA driver)

Hi,

I've installed my Nvidia driver manualy because my card (NVS 310) do not work with the packages provides by pacman (even in AUR).

Now I have a problem because pacman think I do not have

libgl

and do not allows me to install any graphical tools like libreoffice even if I ignore libgl:

pacman -S libreoffice-fresh --ignore libgl
resolving dependencies...
:: There are 4 providers available for libgl:
:: Repository extra
   1) mesa-libgl  2) nvidia-304xx-libgl  3) nvidia-340xx-libgl  4) nvidia-libgl

Enter a number (default=1): 

I cannot install one of these package because then conflict with my manual install:

pacman -S  libgl
:: There are 4 providers available for libgl:
:: Repository extra
   1) mesa-libgl  2) nvidia-304xx-libgl  3) nvidia-340xx-libgl  4) nvidia-libgl

Enter a number (default=1): 4
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: nvidia-utils will be installed before its nvidia-libgl dependency

Packages (2) nvidia-utils-352.09-1  nvidia-libgl-352.09-1

Total Installed Size:  125.31 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                      [######################################] 100%
(2/2) checking package integrity                                    [######################################] 100%
(2/2) loading package files                                         [######################################] 100%
(2/2) checking for file conflicts                                   [######################################] 100%
error: failed to commit transaction (conflicting files)
nvidia-utils: /usr/bin/nvidia-bug-report.sh exists in filesystem
nvidia-utils: /usr/bin/nvidia-cuda-mps-control exists in filesystem
...
Errors occurred, no packages were upgraded.

So my question is: Is there a way to make pacman understand that I have installed libgl manualy so it do not ask me to install it?


Thanks


The possible workaround is to remove my driver manually install any libgl than re-install manualy the driver and ignore libgl in the pacman configuration. But this is REALLY ugly...

Last edited by mickours (2015-06-13 19:09:41)

Offline

#2 2015-06-12 10:44:09

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

Re: [SOLVED]Make Pacman think that I have libgl (NVIDIA driver)

You could make a libgl-dummy package that provides libgl (still a bit ugly) or you can just package up the driver that you installed manually.

Offline

#3 2015-06-12 11:32:58

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,086

Re: [SOLVED]Make Pacman think that I have libgl (NVIDIA driver)

A better way would be to create packages that install your manual version as you need it.
Those packages would then provide & conflict stock nvidia packages.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2015-06-12 11:41:08

mickours
Member
Registered: 2013-01-11
Posts: 6

Re: [SOLVED]Make Pacman think that I have libgl (NVIDIA driver)

Thanks for your reply, that was fast!

Make my own package is definitly the right way to do this and I will when I have some time.

For now I tried the workaround I mentioned before:

mickours wrote:

The possible workaround is to remove my driver manually install any libgl than re-install manualy the driver and ignore libgl in the pacman configuration. But this is REALLY ugly...

And it works!

Thanks again

Offline

#5 2015-06-12 21:46:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Make Pacman think that I have libgl (NVIDIA driver)

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB