安装 wine 时出现 Nvidia 问题

安装 wine 时出现 Nvidia 问题

我有一个带有 optimus Nvidia 卡的系统,因此当我尝试安装 wine 时,它​​会说。

The following packages will be REMOVED:
  nvidia-libopencl1-331-updates

我已经尝试过 wine1.6 和 wine1.7,但它们都会将其删除nvidia-libopencl1-331-updates,而我将无法使用 Optimus。

有没有什么办法可以安装 wine ?


one@Ubuntu:~$ sudo apt-get install wine1.7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavdevice53 libavfilter3 libswresample0 smplayer-translations
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  binfmt-support fonts-horai-umefont fonts-unfonts-core fonts-wqy-microhei gnome-exe-thumbnailer icoutils libasn1-8-heimdal:i386 libcapi20-3
  libcapi20-3:i386 libdb5.3:i386 libexif12:i386 libgd3:i386 libgif4:i386 libglu1-mesa:i386 libgphoto2-6:i386 libgphoto2-port10:i386
  libgpm2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libhcrypto4-heimdal:i386
  libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhx509-5-heimdal:i386 libieee1284-3:i386 libkrb5-26-heimdal:i386 liblcms2-2:i386
  libldap-2.4-2:i386 libltdl7:i386 libmpg123-0:i386 libncurses5:i386 libodbc1 libopenal1:i386 libosmesa6 libosmesa6:i386
  libroken18-heimdal:i386 libsane:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libusb-1.0-0:i386 libv4l-0:i386
  libv4lconvert0:i386 libvpx1:i386 libwind0-heimdal:i386 libxpm4:i386 ocl-icd-libopencl1 ocl-icd-libopencl1:i386 odbcinst odbcinst1debian2
  p11-kit-modules:i386 p7zip ttf-wqy-microhei unixodbc wine-gecko2.24 wine-gecko2.24:i386 wine-mono4.5.2 wine1.7-amd64 wine1.7-i386:i386
  winetricks
Suggested packages:
  libterm-readline-gnu-perl libterm-readline-perl-perl isdnutils-doc isdnutils-doc:i386 libgd-tools:i386 gphoto2:i386 gtkam:i386 gpm:i386
  libvisual-0.4-plugins:i386 gstreamer-codec-install:i386 gnome-codec-install:i386 gstreamer0.10-tools:i386 gstreamer0.10-plugins-base:i386
  liblcms2-utils:i386 libmyodbc odbc-postgresql tdsodbc unixodbc-bin libportaudio2:i386 libroar-compat2:i386 hplip:i386 hpoj:i386
  libsane-extras:i386 libsasl2-modules-otp:i386 libsasl2-modules-ldap:i386 libsasl2-modules-sql:i386 libsasl2-modules-gssapi-mit:i386
  libsasl2-modules-gssapi-heimdal:i386 opencl-icd:i386 p7zip-full dosbox:any winbind
Recommended packages:
  wine1.5-amd64 wine1.5-i386:i386 unixodbc:i386 wine-mono4.5.2:i386 wine
The following packages will be REMOVED:
  nvidia-libopencl1-331-updates
The following NEW packages will be installed:
  binfmt-support fonts-horai-umefont fonts-unfonts-core fonts-wqy-microhei gnome-exe-thumbnailer icoutils libasn1-8-heimdal:i386 libcapi20-3
  libcapi20-3:i386 libdb5.3:i386 libexif12:i386 libgd3:i386 libgif4:i386 libglu1-mesa:i386 libgphoto2-6:i386 libgphoto2-port10:i386
  libgpm2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libhcrypto4-heimdal:i386
  libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhx509-5-heimdal:i386 libieee1284-3:i386 libkrb5-26-heimdal:i386 liblcms2-2:i386
  libldap-2.4-2:i386 libltdl7:i386 libmpg123-0:i386 libncurses5:i386 libodbc1 libopenal1:i386 libosmesa6 libosmesa6:i386
  libroken18-heimdal:i386 libsane:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libusb-1.0-0:i386 libv4l-0:i386
  libv4lconvert0:i386 libvpx1:i386 libwind0-heimdal:i386 libxpm4:i386 ocl-icd-libopencl1 ocl-icd-libopencl1:i386 odbcinst odbcinst1debian2
  p11-kit-modules:i386 p7zip ttf-wqy-microhei unixodbc wine-gecko2.24 wine-gecko2.24:i386 wine-mono4.5.2 wine1.7 wine1.7-amd64
  wine1.7-i386:i386 winetricks
0 upgraded, 61 newly installed, 1 to remove and 0 not upgraded.
Need to get 166 MB of archives.
After this operation, 537 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

@Yuriy Nazarenko 建议的能力

sudo aptitude install wine1.7
The following NEW packages will be installed:
  binfmt-support{a} fonts-horai-umefont{a} fonts-unfonts-core{a} fonts-wqy-microhei{a} gnome-exe-thumbnailer{a} icoutils{a} 
  libasn1-8-heimdal:i386{a} libcapi20-3{a} libcapi20-3:i386{a} libdb5.3:i386{a} libexif12:i386{a} libgd3:i386{a} libgif4:i386{a} 
  libglu1-mesa:i386{a} libgphoto2-6:i386{a} libgphoto2-port10:i386{a} libgpm2:i386{a} libgssapi3-heimdal:i386{a} 
  libgstreamer-plugins-base0.10-0:i386{a} libgstreamer0.10-0:i386{a} libhcrypto4-heimdal:i386{a} libheimbase1-heimdal:i386{a} 
  libheimntlm0-heimdal:i386{a} libhx509-5-heimdal:i386{a} libieee1284-3:i386{a} libkrb5-26-heimdal:i386{a} liblcms2-2:i386{a} 
  libldap-2.4-2:i386{a} libltdl7:i386{a} libmpg123-0:i386{a} libncurses5:i386{a} libodbc1{a} libopenal1:i386{a} libosmesa6{a} 
  libosmesa6:i386{a} libroken18-heimdal:i386{a} libsane:i386{a} libsasl2-2:i386{a} libsasl2-modules:i386{a} libsasl2-modules-db:i386{a} 
  libusb-1.0-0:i386{a} libv4l-0:i386{a} libv4lconvert0:i386{a} libvpx1:i386{a} libwind0-heimdal:i386{a} libxpm4:i386{a} 
  ocl-icd-libopencl1{ab} ocl-icd-libopencl1:i386{ab} odbcinst{a} odbcinst1debian2{a} p11-kit-modules:i386{a} p7zip{a} ttf-wqy-microhei{a} 
  unixodbc{a} wine-gecko2.24{a} wine-gecko2.24:i386{a} wine-mono4.5.2{a} wine1.7 wine1.7-amd64{a} wine1.7-i386:i386{a} winetricks{a} 
0 packages upgraded, 61 newly installed, 0 to remove and 0 not upgraded.
Need to get 166 MB of archives. After unpacking 537 MB will be used.
The following packages have unmet dependencies:
 nvidia-libopencl1-331-updates : 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)     nvidia-libopencl1-331-updates                              

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


Accept this solution? [Y/n/q/?] 

答案1

昨晚安装 Ubuntu 14.04(trusty)时遇到了同样的问题,以下是来自阿曼尼克对我有用(正如上面的许多其他人所建议的那样)。

我的系统有一块 Nvidia GeForce GT 750M 卡。安装 ocl-icd-opencl-dev 将删除 nvidia-libopencl1-*,但到目前为止这不会给我带来任何问题。请参阅原始帖子以了解更多详细信息和解释其工作原理:安装 WINE 之前必须删除 nvidia-libopencl1-331

(我无意重复该帖子,但想帮助更多人找到这个解决方案。)

sudo apt-get install nvidia-cuda-toolkit 
sudo apt-get install ocl-icd-opencl-dev 
sudo apt-get install wine 

答案2

我刚刚安装了 wine(执行名为“wine”、“q4wine”和“winetricks”的包)今天我的 nvidia 310 驱动程序没有问题。但是,我建议你尝试 aptitude (不是 apt-get,也许你必须像我一样安装 aptitude)安装您想要的 wine 版本。当然,你会遇到冲突...但是!你可能不会接受回答“否”即可,aptitude 将寻找其他方法来解决冲突,下一个问题可能是更新某些软件包(而不是删除)。如果冲突与过时的软件包有关,您可以只是更新您的系统,然后再次尝试安装您的 wine ;)

答案3

AmanicA 在某些情况下可能有效,但并非总是如此。例如,在 Utopic 上使用 nvidia-340 时会失败。

真正的问题是 ocl-icd 设计政策需要修复 https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1328542

所以添加“也影响我”来获得更多开发者的关注

答案4

您需要做两件事。尝试修复您的软件打包系统。然后测试存储库中默认提供的各种驱动程序。

尝试使用此处描述的程序来修复包装的完整性:

https://askubuntu.com/questions/461975/i-cant-edit-update-remove-or-install-my-broken-packages/461989#461989

执行循环:

$ sudo apt-get autoremove
$ sudo apt-get --purge remove && sudo apt-get autoclean
$ sudo apt-get -f install
$ sudo apt-get update
$ sudo apt-get upgrade && sudo apt-get dist-upgrade
$ sudo dpkg-reconfigure -a
$ sudo dpkg --configure -a

直到您不再收到错误。解决错误后,转到下面描述的下一步。

运行“附加驱动程序”以安装最佳的 nVidia 驱动程序。如果其中一个驱动程序安装不成功,请尝试另一个。

相关内容