installation – Sources disagree on hashes for supposely identical version when trying to install CUDA 11.2 toolkit

I am new to GPU computing and I am trying to install CUDA on my linux 20.04 focal with kernel 5.4.0 workstation that is equipped with NVIDIA quadro p4000 GPU.

I have followed the instructions in this link:

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions

and when I did step 3.8 (sudo apt-get install cuda) I get this message:

Sources disagree on hashes for supposely identical version ‘11.2.2-1’ of ‘cuda-command-line-tools-11-2:amd64’
and when I tried nvcc –version after the installation finished with the above message and a few other similar messages I got nothing which means it didn’t install.

Actually I am trying to do the installation on a remote machine so I was not able to do any restarts during the installation if that is actually needed, because I don’t have access to the physical machine.

can you please help me figure out what is going wrong with my installation?