简单地说,这个库不会使用这个借口安装:
$ 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没有任何帮助或澄清的情况,因此,任何帮助将不胜感激。
发布于 2018-01-13 16:12:34
正如我们所知,从LaunchPad bug 1743018,bug将通过上传修正包到xenial-proposed来由蒂莫·阿尔托宁(tjaalton)修复。
至于今天,您可以通过以下方式安装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上。
https://askubuntu.com/questions/995274
复制相似问题