Hi,
I have cuda 12.1 and I want to downgrade it to 11.6
I follow this link
But when I reach the part of installing the 11.6 from this link,
I got error. May I know how to solve it? I have tried autoremove,upgrade, update… but none of them worked.
Thx
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
--2023-04-16 20:30:45-- https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 190 [application/octet-stream]
Saving to: ‘cuda-ubuntu2004.pin’
cuda-ubuntu2004.pin 100%[===================>] 190 --.-KB/s in 0s
2023-04-16 20:30:45 (23.4 MB/s) - ‘cuda-ubuntu2004.pin’ saved [190/190]
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
[sudo] password for nvidia:
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
--2023-04-16 20:31:10-- https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2681112370 (2.5G) [application/x-deb]
Saving to: ‘cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb.3’
cuda-repo-ubuntu200 100%[===================>] 2.50G 9.80MB/s in 4m 52s
2023-04-16 20:36:02 (8.76 MB/s) - ‘cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb.3’ saved [2681112370/2681112370]
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo dpkg -i cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
(Reading database ... 209668 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb ...
Unpacking cuda-repo-ubuntu2004-11-6-local (11.6.0-510.39.01-1) over (11.6.0-510.39.01-1) ...
Setting up cuda-repo-ubuntu2004-11-6-local (11.6.0-510.39.01-1) ...
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo apt-key add /var/cuda-repo-ubuntu2004-11-6-local/7fa2af80.pub
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo apt-get update
Get:1 file:/var/cuda-repo-ubuntu2004-11-6-local InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-6-local InRelease
Get:2 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Get:3 file:/var/cudnn-local-repo-ubuntu2204-8.8.1.3 InRelease [1,575 B]
Get:2 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Get:4 file:/var/cuda-repo-ubuntu2004-11-6-local Release [564 B]
Get:3 file:/var/cudnn-local-repo-ubuntu2204-8.8.1.3 InRelease [1,575 B]
Get:4 file:/var/cuda-repo-ubuntu2004-11-6-local Release [564 B]
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:7 http://hk.archive.ubuntu.com/ubuntu jammy InRelease
Hit:8 http://hk.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:9 http://hk.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:10 https://ppa.launchpadcontent.net/flexiondotorg/nvtop/ubuntu jammy InRelease
Reading package lists... Done
W: file:/var/cuda-repo-ubuntu2004-11-6-local/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ udo apt-get -y install cuda-11-6
Command 'udo' not found, but can be installed with:
sudo apt install udo
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo apt-get -y install cuda-11-6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcufile-11-6 : Depends: liburcu6 but it is not installable
E: Unable to correct problems, you have held broken packages.
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ Err:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Hit:8 https://ppa.launchpadcontent.net/flexiondotorg/nvtop/ubuntu jammy InRelease
Get:9 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease [24.3 kB]
Get:10 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main i386 Packages [12.3 kB]
Get:11 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main amd64 Packages [24.8 kB]
Get:12 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main Translation-en [5,948 B]
Reading package lists... Done
W: file:/var/cuda-repo-ubuntu2004-11-6-local/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Err:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Hit:8 https://ppa.launchpadcontent.net/flexiondotorg/nvtop/ubuntu jammy InRelease
Get:9 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease [24.3 kB]
Get:10 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main i386 Packages [12.3 kB]
Get:11 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main amd64 Packages [24.8 kB]
Get:12 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main Translation-en [5,948 B]
Reading package lists... Done -server # version 470.182.03-0ubuntu0.22.04.1
W: file:/var/cuda-repo-ubuntu2004-11-6-local/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Err:7: command not found
Command 'The' not found, did you mean: verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
command 'the' from deb the (3.3~rc1-3build1)dotorg/nvtop/ubuntu jammy InRelease
command 'he' from deb node-he (1.2.0-3)aphics-drivers/ppa/ubuntu jammy InRelease [24.3 kB]
Try: sudo apt install <deb name>ent.net/graphics-drivers/ppa/ubuntu jammy/main i386 Packages [12.3 kB]
E:: command not foundunchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main amd64 Packages [24.8 kB]
N:: command not foundunchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main Translation-en [5,948 B]
Reading package lists... Done
Hit:8: command not foundbuntu2004-11-6-local/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Get:9: command not foundveloper.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Get:10: command not found//developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is not signed.
Get:11: command not foundepository can't be done securely, and is therefore disabled by default.
Get:12: command not foundage for repository creation and user configuration details.
Reading: command not foundwnload.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
bash: syntax error near unexpected token `('ied because the public key is not available: NO_PUBKEY A4B469963BF863CC
W:: command not foundnchpadcontent.net/flexiondotorg/nvtop/ubuntu jammy InRelease
bash: syntax error near unexpected token `('ics-drivers/ppa/ubuntu jammy InRelease [24.3 kB]
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
--2023-04-17 23:10:56-- https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 190 [application/octet-stream]
Saving to: ‘cuda-ubuntu2004.pin’
cuda-ubuntu2004.pin 100%[===================>] 190 --.-KB/s in 0s
2023-04-17 23:11:01 (14.2 MB/s) - ‘cuda-ubuntu2004.pin’ saved [190/190]
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
--2023-04-17 23:11:12-- https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.199.39.144
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.199.39.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2681112370 (2.5G) [application/x-deb]
Saving to: ‘cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb.4’
cuda-repo-ubuntu200 100%[===================>] 2.50G 8.41MB/s in 4m 36s
2023-04-17 23:15:48 (9.27 MB/s) - ‘cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb.4’ saved [2681112370/2681112370]
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo dpkg -i cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb
(Reading database ... 209679 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb ...
Unpacking cuda-repo-ubuntu2004-11-6-local (11.6.0-510.39.01-1) over (11.6.0-510.39.01-1) ...
Setting up cuda-repo-ubuntu2004-11-6-local (11.6.0-510.39.01-1) ...
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo apt-key add /var/cuda-repo-ubuntu2004-11-6-local/7fa2af80.pub
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo apt-get update
Get:1 file:/var/cuda-repo-ubuntu2004-11-6-local InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-6-local InRelease
Get:2 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Get:3 file:/var/cudnn-local-repo-ubuntu2204-8.8.1.3 InRelease [1,575 B]
Get:2 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Get:4 file:/var/cuda-repo-ubuntu2004-11-6-local Release [564 B]
Get:3 file:/var/cudnn-local-repo-ubuntu2204-8.8.1.3 InRelease [1,575 B]
Get:4 file:/var/cuda-repo-ubuntu2004-11-6-local Release [564 B]
Get:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease [1,581 B]
Err:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Hit:7 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:8 https://ppa.launchpadcontent.net/flexiondotorg/nvtop/ubuntu jammy InRelease
Hit:9 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease
Reading package lists... Done
W: file:/var/cuda-repo-ubuntu2004-11-6-local/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ udo apt-get -y install cuda-11.6
Command 'udo' not found, but can be installed with:
sudo apt install udo
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$ sudo apt-get -y install cuda-11.6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcuda-11.6-1' for regex 'cuda-11.6'
Note, selecting 'cuda-11-6' for regex 'cuda-11.6'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcufile-11-6 : Depends: liburcu6 but it is not installable
E: Unable to correct problems, you have held broken packages.
(base) nvidia@nvidia-Kuangshi16-Super-Series-GM6PX7X:~$