Error while trying to install CUDA on ubuntu 18.04

Hi there,

I have Ubuntu 18.04 and I tried the commends in the installation guide. but when I entered
sudo apt install -y cuda
but I got a lot of 404 not found error
I tried to add --fix-missing but that didn’t help.

Has someone else got that problem too?

lspci | grep -i nvidia
3a:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

uname -m
x86_64

gcc --version
gcc (Ubuntu 11.1.0-1ubuntu1~18.04.1) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uname -r
5.4.0-107-generic