Ubuntu下通过命令行升级更新cuda版本

此方法不是很完美,可以仅供参考,具体ubuntu安装cuda方法可参看文章:

https://blog.frank1998.uk/2025/10/ubuntucuda_7.html


---------------------------------------------------------------------------------------------------


1、查看系统版本信息,在命令行中运行:

lsb_release -a

查看系统版本信息,如:24.04


2、添加 NVIDIA CUDA 仓库

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb


sudo dpkg -i cuda-keyring_1.1-1_all.deb

 

3、更新APT仓库列表

sudo apt update


4、安装 CUDA 12.8 Toolkit


sudo apt-get -y install cuda-12-8


5、重启系统


sudo reboot


6、查看cuda版本信息


nvcc -V





评论

此博客中的热门博文

通过命令行在Github上发布项目的新版本

利用GitHub免费的静态页面托管空间发布网页

本地部署OpenAvatarChat实时交互数字人系统