Ubuntu 22.04 LTS 버전에서 cuda 설치가 안될 때
Ubuntu 에서 cuda를 설치하려고 하니 위와 같은 에러가 발생했다.
" The following packages have unmet dependencies:
libcufile-11-4 : Depends: liburcu6 but it is not installable
E: Unable to correct problems, you have held broken packages."
liburcu6라는 패키지를 설치 못해서 생기는 에러인데,
Ubuntu 22.04 버전에서 liburcu6를 지원하지 않아서 생기는 에러이다.
https://ubuntu.pkgs.org/20.04/ubuntu-main-amd64/liburcu6_0.11.1-2_amd64.deb.html
위의 링크가 liburcu6 패키지에 대한 문서인데, 20.04버전에서 배포하고 있는 것을 확인했다.
https://askubuntu.com/questions/1407962/unable-to-install-cuda-on-ubuntu-22-04-wsl2
Unable to install CUDA on Ubuntu 22.04 WSL2
I was following the chain of commands provided here: https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=WSL-Ubuntu&target_version=2.0&target...
askubuntu.com
같은 문제를 가진 사람의 질문이 있었고
위의 답변대로 하니 cuda가 설치되었다.
sudo add-apt-repository ppa:cloudhan/liburcu6
sudo apt update
sudo apt install liburcu6
liburcu6 패키지를 22.04에서 설치 가능하도록 다른 레포에서 불러오는 형식으로 패키지를 설치하는 것 같다.