重新安装显卡驱动,查阅了资料将过程记录如下:
1.下载deb安装包
打开nvidia官网查找对应的驱动版本,A800所在的选项卡位置如图:
点击查找后下载得到的是nvidia-driver-local-repo-ubuntu2004-550.90.07_1.0-1_amd64.deb安装包
2.安装过程
安装过程参考参考链接的1.2过程,部分脚本要进行调整:
cat > /etc/apt/preferences.d/nvidia <<EOF
Package: *
Pin: release o=NVIDIA
Pin-Priority: 550
EOF
dpkg -i nvidia-driver-local-repo-ubuntu2004-550.90.07_1.0-1_amd64.deb
apt-key --keyring /usr/share/keyrings/nvidia-driver-local-D17F1750-keyring.gpg add /var/nvidia-driver-local-repo-ubuntu2004-550.90.07/D17F1750.pub
apt-get update
apt-get install -y cuda-drivers
apt-get purge -y nvidia-driver-local-repo-ubuntu2004-550.90.07
apt-key --keyring /usr/share/keyrings/nvidia-driver-local-D9CB5EF8-keyring.gpg del D17F1750
rm -vf /etc/apt/preferences.d/nvidia
中间出现了连不上docker源的错误:could not connect to download.docker.com
切换源:echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null