37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
```shell
|
|
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
|
|
sudo apt-get update
|
|
sudo apt-get -y install cuda-toolkit-12-8
|
|
sudo apt-get install -y cuda-drivers
|
|
```
|
|
|
|
```shell
|
|
nvidia-smi
|
|
```
|
|
|
|
```shell
|
|
nvcc -V
|
|
```
|
|
|
|
```
|
|
E: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/restricted/l/linux-restricted-modules/linux-objects-nvidia-570-6.8.0-63-generic_6.8.0-63.66+3_amd64.deb 403 Forbidden [IP: 101.6.15.130 80]
|
|
E: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/restricted/l/linux-restricted-signatures/linux-signatures-nvidia-6.8.0-63-generic_6.8.0-63.66+3_amd64.deb 403 Forbidden [IP: 101.6.15.130 80]
|
|
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
|
|
|
|
```
|
|
|
|
```
|
|
(base) root@ss-IdeaPad-PC:/etc/apt/sources.list.d# cat ubuntu.sources
|
|
Types: deb
|
|
URIs: http://cn.archive.ubuntu.com/ubuntu/
|
|
Suites: noble noble-updates noble-backports
|
|
Components: main restricted universe multiverse
|
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
|
|
|
Types: deb
|
|
URIs: http://security.ubuntu.com/ubuntu
|
|
Suites: noble-security
|
|
Components: main restricted universe multiverse
|
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
|
``` |