nvidia-smi command not found (Resolved)
第一种情况:nvidia-driver没装好
第二种情况:清理系统时把nvidia-smi依赖的软件包清理掉了
解决方法:
install nvidia-utils-(version)
- 例如:nvidia-utils-460
可能会遇到的错误;
dl@ubuntu18.04:~$ sudo apt install nvidia-utils-460
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
at librealsense2 librealsense2-udev-rules
使用'sudo apt autoremove'来卸载它(它们)。
建议安装:
nvidia-driver-460
下列【新】软件包将被安装:
nvidia-utils-460
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
需要下载 363 kB 的归档。
解压缩后会消耗 1,174 kB 的额外空间。
获取:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64 nvidia-utils-460 460.27.04-0ubuntu1 [363 kB]
错误:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64 nvidia-utils-460 460.27.04-0ubuntu1
Hash 校验和不符
Hashes of expected file:
- SHA512:47c534e4b788be2a778206de11c3a07e06532568175654f95112d3156adf49c254c85c601cc93cb4e7b52af48cb88cbda72b7e731dbf5957d01be67c133e9c1d
- SHA256:f0f57aca96c54bc95a7151781cd45432706f98b3a8d066aa21ef99557c697c96
- SHA1:546077e07b37ee5f4dc46f42708f276f656a65b9 [weak]
- MD5Sum:48606decc9f057e716d3fb497d7919ba [weak]
- Filesize:362634 [weak]
Hashes of received file:
- SHA512:bc770960aa6d85b16aed7a3e9bbcb0daebfd85a6834534f14115a75a6254e27014a13ebed367c758d86f20dca588b74f3e0f5c174b0a0524e4c9b1d690b1cdc6
- SHA256:b8bba790dcb16497a66985c32b60a7bf85c2d3b731bd7fbd74d0941361f6f3cb
- SHA1:acddf54609df69be3d3d07696a04f69f68b4b604 [weak]
- MD5Sum:14d867b7f98d03ce7025a2ca2a32ca4a [weak]
- Filesize:32 [weak]
Last modification reported: Sun, 24 Jan 2021 10:35:33 +0000
已下载 32 B,耗时 4秒 (8 B/s)
E: 无法下载 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64/./nvidia-utils-460_460.27.04-0ubuntu1_amd64.deb Hash 校验和不符
Hashes of expected file:
- SHA512:47c534e4b788be2a778206de11c3a07e06532568175654f95112d3156adf49c254c85c601cc93cb4e7b52af48cb88cbda72b7e731dbf5957d01be67c133e9c1d
- SHA256:f0f57aca96c54bc95a7151781cd45432706f98b3a8d066aa21ef99557c697c96
- SHA1:546077e07b37ee5f4dc46f42708f276f656a65b9 [weak]
- MD5Sum:48606decc9f057e716d3fb497d7919ba [weak]
- Filesize:362634 [weak]
Hashes of received file:
- SHA512:bc770960aa6d85b16aed7a3e9bbcb0daebfd85a6834534f14115a75a6254e27014a13ebed367c758d86f20dca588b74f3e0f5c174b0a0524e4c9b1d690b1cdc6
- SHA256:b8bba790dcb16497a66985c32b60a7bf85c2d3b731bd7fbd74d0941361f6f3cb
- SHA1:acddf54609df69be3d3d07696a04f69f68b4b604 [weak]
- MD5Sum:14d867b7f98d03ce7025a2ca2a32ca4a [weak]
- Filesize:32 [weak]
Last modification reported: Sun, 24 Jan 2021 10:35:33 +0000
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?
Resolve:
- sudo apt-get update
https://packages.ubuntu.com/bionic/amd64/nvidia-utils-460/download
- sudo echo "deb http://security.ubuntu.com/ubuntu bionic-security main restricted" >> /etc/apt/sources.list
- sudo apt update