You are not logged in.

#1 2014-07-19 18:45:30

Firephyz
Member
Registered: 2014-07-13
Posts: 22

[Solved] Can't install Nvidia driver: Mesa-libgl conflict

I just finished installing my first GUI, KDE to be exact, on Arch Linux. Right now, I'm using the nouveau driver but I want to unlock the full power of my GTX 780 with proprietary nvidia drivers. On my last attempt at installing KDE, I went directly to installing the nvidia driver 304.24. After rebooting and seeing some text flash on screen, however, I was meant with only a black screen. I could still type, login and reboot but not much more since I couldn't see. I tried booting into the Arch Linux fallback GRUB provided for me with no prevail so I decided to just reinstall the OS. For that reason, I want to install this nvidia driver in hopes of being able to avoid another blank screen. So far, I have this:

[root@arch /]# pacman -S nvidia
resolving dependencies...
looking for inter-conflicts...
:: nvidia-libgl and mesa-libgl are in conflict (libgl). Remove mesa-libgl? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: nouveau-dri: requires mesa-libgl

I've tried looking across the forums for similar problems and even tried to uninstall mesa-libgl and all its dependencies but it just yields this:

[root@arch /]# pacman -Rns mesa-libgl
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: cairo: requires libgl
:: glu: requires libgl
:: libva: requires libgl
:: mplayer: requires libgl
:: nouveau-dri: requires mesa-libgl
:: qt4: requires libgl
:: qt5-base: requires libgl

I feel like I might need to uninstall the nouveau driver so as to be able to uninstall mesa-libgl. If I installed the nvidia driver at that point, I fear I might see the blank screen again. Thanks for your help in advance.

Last edited by Firephyz (2014-07-19 20:04:11)

Offline

#2 2014-07-19 18:46:58

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

You can't have nouveau and nvidia installed at the same time.

Offline

#3 2014-07-19 18:48:24

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

You need to remove the open-source Nouveau driver.  It conflicts with the proprietary nVidia driver.

Offline

#4 2014-07-19 18:49:16

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

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Read pacman's man page to find out which switch to use to remove a package that is a dependency for other packages.

Offline

#5 2014-07-19 19:03:26

Firephyz
Member
Registered: 2014-07-13
Posts: 22

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Is there any way I can be sure that I won't have to reinstall my OS again? Like I said, last time I installed the nvidia driver, my screen was blank and I couldn't get it back. I just don't want to uninstall nouveau and be stuck with a black screen.

Offline

#6 2014-07-19 19:22:02

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Worst case have some some arch install media prepared mount and chroot into the install and with pacman remove nvidia and reinstall nouveau.

Offline

#7 2014-07-19 19:23:19

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

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

It this happens, boot a liveCD and reinstall nouveau. No need to reinstall the whole system.

Offline

#8 2014-07-19 19:34:59

Firephyz
Member
Registered: 2014-07-13
Posts: 22

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Oh wow, thanks guys. Never even thought of that. I did some more reading around and it turns out some people had problems with their system using Intel graphics instead of their gpu. I used modprobe to blacklist i915 and now I go and install the nvidia driver. Hopefully it works.

Offline

#9 2014-07-19 19:43:33

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Scimmia wrote:

You can't have nouveau and nvidia installed at the same time.

Yes, he can. I have it that way.

[firekage@arch_desktop ~]$ sudo pacman -Ss nouveau
[sudo] password for firekage: 
Niestety, proszę spróbować ponownie.
[sudo] password for firekage: 
extra/nouveau-dri 10.2.3-2 [zainstalowano]
    Mesa drivers for Nouveau
extra/xf86-video-nouveau 1.0.10-2 (xorg-drivers xorg) [zainstalowano]
    Open Source 2D acceleration driver for nVidia cards
multilib/lib32-nouveau-dri 10.2.3-2
    Mesa drivers for Nouveau (32-bit)
[firekage@arch_desktop ~]$ sudo pacman -Ss nvidia
extra/libcl 1.1-4 [zainstalowano]
    OpenCL library and ICD loader from NVIDIA
extra/libvdpau 0.8-1 [zainstalowano]
    Nvidia VDPAU library
extra/nvidia 340.24-1 [zainstalowano]
    NVIDIA drivers for linux
extra/nvidia-libgl 340.24-1 [zainstalowano]
    NVIDIA drivers libraries symlinks
extra/nvidia-utils 340.24-1 [zainstalowano]
    NVIDIA drivers utilities
extra/xf86-video-nouveau 1.0.10-2 (xorg-drivers xorg) [zainstalowano]
    Open Source 2D acceleration driver for nVidia cards
community/nvdock 1.02-5 [zainstalowano]
    A tray icon for easy launching of the NVIDIA control panel
community/nvidia-cg-toolkit 3.1-3 [zainstalowano]
    NVIDIA Cg libraries
multilib/lib32-libvdpau 0.8-1 [zainstalowano]
    Nvidia VDPAU library
multilib/lib32-nvidia-cg-toolkit 3.1-4 [zainstalowano]
    NVIDIA Cg libraries
multilib/lib32-nvidia-libgl 340.24-1 [zainstalowano]
    NVIDIA drivers libraries symlinks (32-bit)
multilib/lib32-nvidia-utils 340.24-1 [zainstalowano]
    NVIDIA drivers utilities (32-bit)
[firekage@arch_desktop ~]$ 

Zainstalowano means, in english - installed.

Last edited by firekage (2014-07-19 19:46:36)

Offline

#10 2014-07-19 19:44:30

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Firephyz wrote:

I just finished installing my first GUI, KDE to be exact, on Arch Linux. Right now, I'm using the nouveau driver but I want to unlock the full power of my GTX 780 with proprietary nvidia drivers. On my last attempt at installing KDE, I went directly to installing the nvidia driver 304.24. After rebooting and seeing some text flash on screen, however, I was meant with only a black screen. I could still type, login and reboot but not much more since I couldn't see. I tried booting into the Arch Linux fallback GRUB provided for me with no prevail so I decided to just reinstall the OS. For that reason, I want to install this nvidia driver in hopes of being able to avoid another blank screen. So far, I have this:

[root@arch /]# pacman -S nvidia
resolving dependencies...
looking for inter-conflicts...
:: nvidia-libgl and mesa-libgl are in conflict (libgl). Remove mesa-libgl? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: nouveau-dri: requires mesa-libgl

I've tried looking across the forums for similar problems and even tried to uninstall mesa-libgl and all its dependencies but it just yields this:

[root@arch /]# pacman -Rns mesa-libgl
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: cairo: requires libgl
:: glu: requires libgl
:: libva: requires libgl
:: mplayer: requires libgl
:: nouveau-dri: requires mesa-libgl
:: qt4: requires libgl
:: qt5-base: requires libgl

I feel like I might need to uninstall the nouveau driver so as to be able to uninstall mesa-libgl. If I installed the nvidia driver at that point, I fear I might see the blank screen again. Thanks for your help in advance.


You do it wrong.

sudo pacman -Rdd mesa-libgl && sudo pacman -S nvidia

After it, you can decide if you want to reinstall mesa-libgl and remove nvidia-libgl or leave nvidia-libgl and do not install mesa-libgl. I do it all the time during update.

Last edited by firekage (2014-07-19 19:48:30)

Offline

#11 2014-07-19 20:01:44

Firephyz
Member
Registered: 2014-07-13
Posts: 22

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

I got it working guys. I'm not quite sure what did it if it was the disabling of the Intel graphics module or not. It's working awesomely now though. I think I'll just leave nouveau not installed, at least for now. Thanks for your help.

Offline

#12 2014-07-19 20:12:05

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

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

firekage, run

LC_ALL=C <command>

to get the output in English.

Offline

#13 2014-07-19 23:28:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

karol wrote:

firekage, run

LC_ALL=C <command>

to get the output in English.

Or don't, since we don't really care about his broken system.

Offline

#14 2014-07-19 23:43:35

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

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

I don't know if he is using this nvidia+nouveau setup for something or he just wanted to say you can install both packages:

$  sudo pacman -S nvidia
resolving dependencies...
looking for inter-conflicts...
:: nvidia-libgl and mesa-libgl are in conflict (libgl). Remove mesa-libgl? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: nvidia-libgl and mesa-libgl are in conflict
$ sudo pacman -Sdd nvidia
looking for inter-conflicts...

Packages (1):

Name            New Version  Net Change  Download Size

testing/nvidia  340.24-2     4.44 MiB         4.33 MiB

Total Download Size:    4.33 MiB
Total Installed Size:   4.44 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 nvidia-340.24-2-i686                    4.3 MiB  2.05M/s 00:02 [###################################] 100%
(1/1) checking keys in keyring                                  [###################################] 100%
(1/1) checking package integrity                                [###################################] 100%
(1/1) loading package files                                     [###################################] 100%
(1/1) checking for file conflicts                               [###################################] 100%
(1/1) checking available disk space                             [###################################] 100%
(1/1) installing nvidia                                         [###################################] 100%
In order to use nvidia module, reboot the system.

<shrugs>

Offline

#15 2014-07-20 00:20:53

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

karol wrote:

I don't know if he is using this nvidia+nouveau setup for something or he just wanted to say you can install both packages:

I havent said anything like that. I said that both packages can be installed and present. I have installed nvidia and nouveau, don't use nouveau, and don't have mesa-libgl because it is removed manually after system update, when i had to remove nvidia-libgl because of mesa dependancies.

BTW:

karol wrote:

firekage, run

LC_ALL=C <command>

to get the output in English.


Tried, still in polish wink

Last edited by firekage (2014-07-20 00:25:26)

Offline

#16 2014-07-20 00:22:52

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Scimmia wrote:
karol wrote:

firekage, run

LC_ALL=C <command>

to get the output in English.

Or don't, since we don't really care about his broken system.

You're the one..that didn't understand it at all, so, be more polite.

Offline

#17 2014-07-20 00:32:01

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Do you have the right nvidia for your card?  Before I installed nvidia, the screen would go full 1080p, but not without crashing the entire box after some time.  I install nvidia (and apprently the wrong one for the card), and it goes into failsafe at 1024x768.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#18 2014-07-20 00:45:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

firekage wrote:
Scimmia wrote:
karol wrote:

firekage, run

LC_ALL=C <command>

to get the output in English.

Or don't, since we don't really care about his broken system.

You're the one..that didn't understand it at all, so, be more polite.

Oh I understand, it's just useless. As for being polite, I don't care.

Last edited by Scimmia (2014-07-20 00:46:38)

Offline

#19 2014-07-20 01:28:21

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

Re: [Solved] Can't install Nvidia driver: Mesa-libgl conflict

Closing.  This thread was [SOLVED] several posts back.


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

Offline

Board footer

Powered by FluxBB