sudo lshw -c display
sudo ubuntu-drivers devices
# 확인한 그래픽 드라이버 이름을 적어서 설치
sudo apt install nvidia-driver-535
# 재부팅
sudo reboot
# 바뀐 드라이버 조회
sudo lshw -c display
출처 : https://webnautes.tistory.com/1843
아래 링크에 접속하여 원하는 버전의 cuda 클릭 (11.8 로 진행)
https://developer.nvidia.com/cuda-toolkit-archive
Linux, x86_64, Ubuntu, 22.04, runfile(local) 차례로 선택

아래에 보이는 명령을 한줄씩 실행하여 설치진행

출처 : https://webnautes.tistory.com/1844