작심삼일

[cuda] E: Unable to correct problems, you have held broken packages. 본문

정리/잡 에러들

[cuda] E: Unable to correct problems, you have held broken packages.

yun_s 2024. 9. 10. 21:25
728x90
반응형

에러

cuda를 설치하는데 아래와 같은 에러가 나왔다.

ooooo@ooooo:~$ sudo apt-get -y install cuda
Reading package lists... Done
Building dependency tree... Done
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:
nsight-systems-2023.2.3 : Depends: libtinfo5 but it is not installable
E: Unable to correct problems, you have held broken packages.

 

해결 방안

1. 아래 파일을 연다.

sudo nano /etc/apt/sources.list.d/ubuntu.sources

 

2. 아래 내용을 맨 마지막에 붙여넣는다.

Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: lunar
Components: universe
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

 

3. sudo update, upgrade하고 다시 install cuda하면 된다.

sudo apt update
sudo apt upgrade
sudo apt-get -y install cuda
728x90
반응형
Comments