Installing wine requires uninstall of Nvidia driver component

Bug #1320217 reported by Bart Willemsen
192
This bug affects 41 people
Affects Status Importance Assigned to Milestone
wine1.6 (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Confirmed
Undecided
Unassigned
wine1.7 (Ubuntu)
Confirmed
Undecided
Unassigned
Trusty
Confirmed
Undecided
Unassigned
wine1.8 (Ubuntu)
Confirmed
Undecided
Unassigned
Trusty
Confirmed
Undecided
Unassigned

Bug Description

Whenever I try to install Wine (or programs that depend on it, like Playonlinux) it also asks me to delete the package "nvidia-libopencl1-331-updates" which is part of the "nvidia-331-updates" driver of my Nvidia videocard. I haven't tried installing it because I am afraid to break things on my computer but this doesn't seem to be right..

I have tried to find the exact package name, but since Wine depends on a lot of packages I can not 100% guarentee that this is the exact package name that causes this issue. If you need any more information or diagnostic files or logs, please ask. I will try to supply anything you may need!

== What I expect to happen ==
Installing Wine without deleting a package used by a system driver, it shouldn't be necessary.

== What actually happened ==
Instaling wine1.6 asks you to remove the package nvidia-libopencl1-331-updates

== Steps to reproduce ==
1. Install the package nvidia-331-updates (sudo apt-get install nvidia-331-updates)
2. Now try to install wine1.6 (sudo apt-get install wine1.6)
3. Notice that it asks that it must DELETE nvidia-libopencl1-331-updates in order to proceed the installation.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: wine (not installed)
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri May 16 14:42:41 2014
InstallationDate: Installed on 2014-04-17 (28 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
 LANGUAGE=nl
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
SourcePackage: wine1.6
UpgradeStatus: No upgrade log present (probably fresh install)

description: updated
Revision history for this message
Scott Ritchie (scottritchie) wrote :

Thank you for this report. I'm merging it with bug 1313123 as they're actually the same issue it seems.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wine1.6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

The wine / nvidia-libopencl1-331-updates co-installability problem is due to more than just bug 1313123 and the fix to bug 1313123 has not fixed this issue:

user@hostname:~$ apt-cache policy nvidia-libopencl1-331-updates
nvidia-libopencl1-331-updates:
  Installed: 331.38-0ubuntu7.1
  Candidate: 331.38-0ubuntu7.1
  Version table:
 *** 331.38-0ubuntu7.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/restricted amd64 Packages
        100 /var/lib/dpkg/status
     331.38-0ubuntu7 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/restricted amd64 Packages
user@hostname:~$ sudo apt-get install wine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  ocl-icd-libopencl1 ocl-icd-libopencl1:i386 wine1.6 wine1.6-amd64
  wine1.6-i386:i386
Suggested packages:
  opencl-icd:i386 dosbox:any
The following packages will be REMOVED:
  nvidia-libopencl1-331-updates
The following NEW packages will be installed:
  ocl-icd-libopencl1 ocl-icd-libopencl1:i386 wine wine1.6 wine1.6-amd64
  wine1.6-i386:i386
0 upgraded, 6 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/32.5 MB of archives.
After this operation, 245 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
user@hostname:~$

The cause is described in https://bugs.launchpad.net/ubuntu/+source/ocl-icd/+bug/1247736/comments/33 :

"The core of the conflict is nvidia drivers package includes only libopenc1 but did not include libopencl-1.1-1 in its Provides while Wine requires both libopencl1 and libopencl-1.1-1. Specifying last one like that instead of just 1.1 seems wrong and besides is it really necessary when you already specified libopencl1? I think wine should remove it "libopencl-1.1-1" from its depends and just keep libopencl1."

This is still the case:

user@hostname:~$ apt-cache show nvidia-libopencl1-331-updates
...
Replaces: libopencl1
Provides: libopencl1
...
Conflicts: libopencl1
...
user@hostname:~$ apt-cache show wine1.6-amd64
...
Depends: ..., libopencl-1.1-1, ..., ocl-icd-libopencl1 (>= 1.0) | libopencl1, ...
...
user@hostname:~$

Either wine must not depend on libopencl-1.1-1 or nvidia-libopencl1-331-updates must provide it.

Revision history for this message
Graham Inggs (ginggs) wrote :

This is not a bug in wine, Nvidia's OpenCL loader (nvidia-libopencl1-*) is being replaced by the open source OpenCL loader (ocl-icd-libopencl1), Nvidia's OpenCL ICD (nvidia-opencl-icd-*) is left untouched.

In retrospect, this bug should not have been marked as a duplicate of LP: #1247736 (which relates to the co-installation of CUDA and OpenCL applications), but rather LP: #1333008 (which is not a bug).

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Sounds good to me.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wine1.7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Scott Ritchie (scottritchie) wrote :

Actually I think there's a bug here that can still be solved.

Trusty wine1.6 has wine1.6-amd64 and wine1.6-i386 recommend ocl-icd-libopencl1, which provides libopencl1 which the nvidia package in question conflicts with.

Apt will prioritize installing this (even though it's just a recommends) and thus remove the nvidia version of the loader. Things will still work with either loader, but switching is unnecessary and can lead to the confusion in this bug report.

Utopic wine1.6, by contrast, does not have a recommends on ocl-icd-libopencl1 and merely has the (autogenerated) depends on ocl-icd-libopencl1 (>= 1.0) | libopencl1. Apt will consider this satisfied by the already installed nvidia version, and not require an uninstall.

summary: - installing wine requires uninstall of Nvidia driver component
+ Installing wine requires uninstall of Nvidia driver component
no longer affects: wine1.7 (Ubuntu)
Revision history for this message
Scott Ritchie (scottritchie) wrote :

I believe this is already fixed in Utopic, and would like to SRU the fix (and the other fixes in the wine package) to Trusty.

Changed in wine1.6 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wine1.6 (Ubuntu Trusty):
status: New → Confirmed
Revision history for this message
Bruno Nova (brunonova) wrote :

Having this fixed in Trusty would be nice.
Saying that installing wine removes nvidia-libopencl1-331 is a bit alarming (and if I was alarmed, I imagine how an average user would feel)!

Revision history for this message
Hassan Williamson (hazrpg) wrote :

Any news on how this is coming along for Trusty? Has SRU approved a fix yet?

Revision history for this message
leonidasmark (leonidasmark) wrote :

I'm having the same problem but with AMD's proprietary drivers . To install Wine i need to remove: fglrx-amdcccle-updates, fglrx-updates, fglrx-updates-core

Mathew Hodson (mhodson)
tags: added: packaging
Revision history for this message
Gord Lea (jgordonlea) wrote :

I also would like this fixed. You cannot use opencl in darktable if you have wine installed currently.

Revision history for this message
Graham Inggs (ginggs) wrote :

> I also would like this fixed. You cannot use opencl in darktable
> if you have wine installed currently.

Which distribution and which graphics card are you using?

I have just tried this in Trusty 14.04.2. I have wine, nvidia-331, nvidia-331-uvm, nvidia-opencl-icd-331, ocl-icd-libopencl1, nvidia-modprobe and darktable installed. I can see OpenCL support is enabled (not greyed out) in darktable preferences / core option / activate OpenCL support.

Revision history for this message
Gord Lea (jgordonlea) wrote :

My mistake, looks like it's working now. It was disabled when I originally noticed the problem, but after uninstalling wine, installing the nvidia opencl stuff, then re-installing wine 1.7 (which forced me to uninstall some nvidia things), it works.

I just assumed that since wine forced me to uninstall some things it was broken again.

For the record I'm on Trusty 14.04.02 as well.

Revision history for this message
Graham Inggs (ginggs) wrote :

@Gord Lea: Glad to hear it is working. Thanks for the feedback!

Revision history for this message
Yahya A. Erturan (rout) wrote :

I am using 14.04 LTS and it still says nvidia-libopencl1-331 must be removed to proceed. It feels too cold to move on. Is there any permanent and no-side-effect solution for this?

Revision history for this message
Vitaliy Kulikov (slonua) wrote :

here is my output by default:

$sudo aptitude install wine1.7

The following NEW packages will be installed:
  gnome-exe-thumbnailer{a} icoutils{a} imagemagick{a} imagemagick-6.q16{a} imagemagick-common{a} liblqr-1-0{a}
  libmagickcore-6.q16-2{a} libmagickcore-6.q16-2-extra{a} libmagickwand-6.q16-2{a} libnetpbm10{a} netpbm{a}
  ocl-icd-libopencl1{ab} ocl-icd-libopencl1:i386{ab} wine1.7 wine1.7-amd64{a} wine1.7-i386:i386{a}
0 packages upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,620 kB/43.1 MB of archives. After unpacking 322 MB will be used.
The following packages have unmet dependencies:
 ocl-icd-libopencl1 : Conflicts: libopencl1 which is a virtual package.
 ocl-icd-libopencl1:i386 : Conflicts: libopencl1 which is a virtual package.
 nvidia-libopencl1-352 : Conflicts: libopencl1 which is a virtual package.
                         Conflicts: libopencl1:i386 which is a virtual package.
The following actions will resolve these dependencies:

     Remove the following packages:
1) nvidia-libopencl1-352

     Leave the following dependencies unresolved:
2) nvidia-352 recommends nvidia-libopencl1-352

also, --without-recommends:

$ sudo aptitude install wine1.7 --without-recommends
The following NEW packages will be installed:
  ocl-icd-libopencl1{ab} ocl-icd-libopencl1:i386{ab} wine1.7 wine1.7-amd64{a} wine1.7-i386:i386{a}
The following packages are RECOMMENDED but will NOT be installed:
  gnome-exe-thumbnailer kde-runtime
0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.5 kB/39.5 MB of archives. After unpacking 308 MB will be used.
The following packages have unmet dependencies:
 ocl-icd-libopencl1 : Conflicts: libopencl1 which is a virtual package.
 ocl-icd-libopencl1:i386 : Conflicts: libopencl1 which is a virtual package.
 nvidia-libopencl1-352 : Conflicts: libopencl1 which is a virtual package.
                         Conflicts: libopencl1:i386 which is a virtual package.
The following actions will resolve these dependencies:

     Remove the following packages:
1) nvidia-libopencl1-352

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wine1.7 (Ubuntu Trusty):
status: New → Confirmed
Changed in wine1.7 (Ubuntu):
status: New → Confirmed
Changed in wine1.8 (Ubuntu Trusty):
status: New → Confirmed
Changed in wine1.8 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.