Problem with old cuda installation

Hi I have a problem with some cuda packages. It seems that nvidia-smi works properly. How can I fix the problem and make sure that cuda is running properly
michael@sanfrancisco:~$ sudo apt --fix-broken install
[sudo] password for michael:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… failed.
The following packages have unmet dependencies:
libnvinfer-dev : Depends: cuda-cudart-dev-10-2 but it is not installable
libnvinfer7 : Depends: cuda-cudart-10-2 but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
michael@sanfrancisco:~$ nvidia-smi
Thu May 5 17:24:36 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 455.45.01 Driver Version: 455.45.01 CUDA Version: 11.1 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 208… On | 00000000:65:00.0 On | N/A |
| 35% 39C P8 38W / 250W | 381MiB / 11016MiB | 1% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1271 G /usr/lib/xorg/Xorg 26MiB |
| 0 N/A N/A 1323 G /usr/bin/gnome-shell 15MiB |
| 0 N/A N/A 3871 G /usr/lib/xorg/Xorg 169MiB |
| 0 N/A N/A 3977 G /usr/bin/gnome-shell 122MiB |
| 0 N/A N/A 4334 G …gAAAAAAAAA --shared-files 43MiB |
±----------------------------------------------------------------------------+