APT를 사용하려고 할 때마다 다음 오류가 발생합니다.
The following packages have unmet dependencies:
clinfo-amdgpu-pro : Depends: ocl-icd-libopencl1-amdgpu-pro but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
시도하면 sudo apt --fix-broken install
다음이 제공됩니다.
Unpacking ocl-icd-libopencl1-amdgpu-pro:amd64 (21.40.1-1337803) ...
dpkg: error processing archive /var/cache/apt/archives/ocl-icd-libopencl1-amdgpu
-pro_21.40.1-1337803_amd64.deb (--unpack):
trying to overwrite '/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so.1', whic
h is also in package libopencl1-amdgpu-pro:amd64 17.40-492261
Errors were encountered while processing:
/var/cache/apt/archives/ocl-icd-libopencl1-amdgpu-pro_21.40.1-1337803_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
답변1
다음 명령을 사용해 보십시오:
sudo dpkg --purge ocl-icd-libopencl1-amdgpu-pro