4.1.1 installer fails while installing CUDA

Multiple errors when it attempts to install CUDA (SDK 4.1.1, Ubuntu 22 w/ an Nvidia card capable of up to CUDA 12.2):

Do you want to install CUDA 12.1 automatically [Y/n] ?
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
--2024-05-10 17:28:46--  https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 152.195.19.142
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|152.195.19.142|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4332 (4.2K) [application/x-deb]
Saving to: ‘cuda-keyring_1.0-1_all.deb’

cuda-keyring_1.0-1_all.deb                                                     100%[=================================================================================================================================================================================================>]   4.23K  --.-KB/s    in 0s      

2024-05-10 17:28:46 (59.4 MB/s) - ‘cuda-keyring_1.0-1_all.deb’ saved [4332/4332]

(Reading database ... 201225 files and directories currently installed.)
Preparing to unpack cuda-keyring_1.0-1_all.deb ...
Unpacking cuda-keyring (1.0-1) over (1.0-1) ...
Setting up cuda-keyring (1.0-1) ...

A deprecated public CUDA GPG key appear to be installed.
To remove the key, run this command:
sudo apt-key del 7fa2af80

Hit:1 http://software.breakfaststudio.com/packages/apt stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease                    
Hit:3 http://software.breakfaststudio.com/packages/apt jammy InRelease       
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease            
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease          
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package cuda-12-1
./linux_install_release.sh: line 371: [: : integer expression expected
./linux_install_release.sh: line 373: [: : integer expression expected
Detected Nvidia driver 535.171, capable of running CUDA 12.2 (need 12.1)
Do you want to also install the static version of the ZED SDK (AI module will still require libsl_ai.so) [Y/n] ?
Do you want to install the AI module (required for Object detection and Neural Depth, recommended), cuDNN 8.9 and TensorRT 8.6 will be installed [Y/n] ?
Install samples (recommended) [Y/n] ?n
cp: target '/usr/local/cuda/lib64/' is not a directory
cp: target '/usr/local/cuda/include/' is not a directory
chmod: cannot access '/usr/local/cuda/include/': No such file or directory
chmod: cannot access '/usr/local/cuda/lib64/*': No such file or directory
ls: cannot access '/usr/local/cuda/lib64/libnvinfer_builder_resource.so.8.6.1*': No such file or directory
basename: missing operand
Try 'basename --help' for more information.

Installation fails.

Hi @JC31

Have you tried to run the command sudo apt-key del 7fa2af80 as suggested?
Then try again to install the SDK.

Yes, I did try that. No effect except removing that warning from the output, unfortunately.

Thanks,
J

What’s the new log after removing the deprecated key?