4

I have been troubleshooting display problems (my computer was using default Ubuntu drivers and I finally managed to get the proprietary fglrx-update to work instead. I noticed that one of the apt-get actions was to remove Wine but I don't understand why that would be necessary.

Now that I've got my display working nicely, I thought I'd reinstall Wine (because I use an app that needs it). But when I try to install Wine, aptitude wants to remove the graphics drivers I just finished installing!

I don't believe I have to choose between a working display and Wine.
--> Can't I have both? How can I solve this dilemma?

torben@torben-desktop$ sudo aptitude install wine
[sudo] password for torben: 
The following NEW packages will be installed:
  ocl-icd-libopencl1{ab} ocl-icd-libopencl1:i386{ab} wine wine1.6{a} 
  wine1.6-amd64{a} wine1.6-i386:i386{a} 
0 packages upgraded, 6 newly installed, 0 to remove and 36 not upgraded.
Need to get 32,9 MB of archives. After unpacking 247 MB will be used.
The following packages have unmet dependencies:
 fglrx-updates-core : Conflicts: libopencl1 which is a virtual package.
                      Conflicts: libopencl1:i386 which is a virtual package.
 ocl-icd-libopencl1 : Conflicts: libopencl1 which is a virtual package.
 ocl-icd-libopencl1:i386 : Conflicts: libopencl1 which is a virtual package.
The following actions will resolve these dependencies:

     Remove the following packages:
1)     fglrx-amdcccle-updates      
2)     fglrx-updates               
3)     fglrx-updates-core          

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
torben@torben-desktop$
  • Try removing the drivers, installing wine and then installing the drivers again. – Pranav Marathe Feb 24 '15 at 22:06
  • I experience the same issue. – n00b Feb 25 '15 at 09:08
  • @PranavMarathe I spent days getting the display to work and I'm worried I might not be able to get it right again - so I would really prefer a solution that doesn't remove my graphics drivers. (Why is graphics support so damn hard in Linux??!) – Torben Gundtofte-Bruun Feb 25 '15 at 09:46
  • because it forces people to use winblows. which is what the current CEO's wish is. – Virusboy Feb 25 '15 at 16:22
  • @TorbenGundtofte-Bruun Looks like wine 1.7 doesn't have this issue. You can try installing that. If you need wine 1.6 then you'll have to compile it from it's source code and leave out the libopencl1 packages. – Pranav Marathe Feb 25 '15 at 17:20
  • Thank you @PranavMarathe, I followed these instructions but still causes the fglrx drivers to be removed (screenshot) - I didn't go through with it. – Torben Gundtofte-Bruun Feb 25 '15 at 20:37
  • @TorbenGundtofte-Bruun: If you're worried, that you bork your current configuration while trying new stuff, back it up. The minimal system configuration backup would be the content of /etc (pro-tip: use etckeeper) and the package list. – David Foerster Feb 25 '15 at 21:20
  • @TorbenGundtofte-Bruun The other option is to build wine from source but exclude the OpenCL libraries. You can find info on how to do that in this thread : http://ubuntuforums.org/showthread.php?t=2257502 – Pranav Marathe Feb 25 '15 at 21:29
  • @TorbenGundtofte-Bruun Also, I've found that if you use Ubuntu's Additional Drivers section (found under Settings) and install fglrx (and not fglrx-update) it installs fairly reliably. – Pranav Marathe Feb 25 '15 at 21:32
  • 1
    @TorbenGundtofte-Bruun According to this thread, if you run sudo apt-get install ocl-icd-opencl-dev before installing wine, wine should install without problems. Refer to this thread for a more detailed explanation of why this happens. – Pranav Marathe Feb 25 '15 at 21:35
  • There are more details available at https://bugs.launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/+bug/1129409 and https://askubuntu.com/questions/540780/14-10-wine-and-fglrx-conflict/573556#573556 – David Davies-Jones Oct 01 '15 at 23:55

2 Answers2

1

The workaround is to build wine without OpenCL

http://ubuntuforums.org/showthread.php?t=2257502&p=13194027#post13194027

There is also an open bug you might consider voting for at:

https://bugs.launchpad.net/ubuntu/+source/wine1.6/+bug/1405264

gliptak
  • 634
  • 7
  • 13
0

remove that driver and use this guid to install the supported version

https://help.ubuntu.com/community/BinaryDriverHowto/AMD

then install wine

  • I have followed this guide and my output of fglrxinfo gives the result indicated in the page (step 8). However, in Settings > Details > Overview, "Graphics" is still listed as "VESA: -100" -- not what I expected, even after installing hardware acceleration. – Torben Gundtofte-Bruun Feb 27 '15 at 08:55
  • did you check for when you consider using the fglrx driver is whether your AMD graphics card is supported ? if it's supported you have tot choose the installation methode 2 or 2.1 not the two of them !! then choose 3.1 or 3.2 (i recommand 3.1) then 4. Enabling Video Hardware Acceleration – leouss4dev Feb 27 '15 at 10:11
  • Yes it is supported (good point). I was aware not to do both variants but I might have skipped some parts of chapter 3.1 so I am re-doing the guide now. – Torben Gundtofte-Bruun Feb 27 '15 at 11:08