web-dev-qa-db-ja.com

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

状況を助けたり明確にしたりしなかったので、助けをいただければ幸いです。

2
ZuOverture

LaunchPad bug 1743018 からわかるように、バグは Timo Aaltonen(tjaalton) によって修正されます。修正パッケージを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にすぐにアップロードされます。

2
N0rbert