본문 바로가기
여러가지/Ubuntu & Linux

[Ubuntu & Linux] NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. 에러해결방법

by 포스트it 2023. 7. 26.
728x90
반응형

 

[Ubuntu & Linux] NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. 에러해결방법

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

그래픽카드 상태를 보려고 했더니 갑자기 에러가 발생하였다.

에러를 찾아보니 딥러닝 작업을 종료하지 않은채로 서버의 전원이나 시스템 종료했을 때 종종 발생한다고 하였다.

 

해결방법은 재설치라고 하여 재설치를 하게 되었다.

 

어떤 드라이버가 설치되어있는지 확인
$ apt --installed list | grep nvidia-driver
nvidia-driver-535/focal-updates,focal-security,now 535.54.03-0ubuntu0.20.04.4 amd64 [installed]

 

드라이버 삭제 후 다시 재설치를 해준다.
$ sudo apt remove nvidia-driver-535
$ sudo apt autoremove

# 재설치
$ sudo apt-get install nvidia-driver-535

※ 재설치 후 반드시 재부팅을 해줘야 정상 작동합니다.

728x90
반응형

댓글