在 Ubuntu 16.04 中安装 mesa-opencl-icd

在 Ubuntu 16.04 中安装 mesa-opencl-icd

简而言之,这个库不会以这个借口安装:

$ sudo apt install mesa-opencl-icd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mesa-opencl-icd : Depends: libclc-r600 (>= 0.2.0+git20170330-3) but 0.2.0+git20170330-3~16.04.1 is to be installed
                   Depends: libclc-amdgcn (>= 0.2.0+git20170330-3) but 0.2.0+git20170330-3~16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

请注意,相关软件包可以安装,但名称略有不同。这里有可能的解决方案吗?

$ apt search libclc
Sorting... Done
Full Text Search... Done
libclc-amdgcn/xenial-updates,xenial-updates,now 0.2.0+git20170330-3~16.04.1 all [installed]
  OpenCL C language implementation - amdgcn support

libclc-dev/xenial-updates,xenial-updates,now 0.2.0+git20170330-3~16.04.1 all [installed,automatic]
  OpenCL C language implementation - development files

libclc-ptx/xenial-updates,xenial-updates,now 0.2.0+git20170330-3~16.04.1 all [installed]
  OpenCL C language implementation - ptx support

libclc-r600/xenial-updates,xenial-updates,now 0.2.0+git20170330-3~16.04.1 all [installed]
  OpenCL C language implementation - r600 support

尽管手动安装了相关软件包,但依赖关系仍未得到满足。其他类似问题建议执行以下操作:

apt update; apt upgrade; apt autoremove; apt autoclean
apt -f install
aptitude -f install
apt-get download mesa-opencl-icd; dpkg -i <*.deb>
dpkg --get-selections | grep hold

两者都没有帮助或澄清情况,因此任何帮助都将不胜感激。

答案1

我们知道,从LaunchPad 错误 1743018,错误将由Timo Aaltonen (蒂莫·阿尔托宁)通过将修正包上传至xenial-proposed

至于今天,可以安装mesa-opencl-icd

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe"
sudo apt-get update
sudo apt-get install mesa-opencl-icd -y

我可以确认它正在正常安装。因此软件包很快就会正常上传-updates

相关内容