Nvidia-driver-510 not working Ubuntu 20.04 Akitio Node eGPU Geforce GTX 1060 6GB FIXED

I’ve installed the latest recommended driver for my Geforce GTX 1060 6GB graphics card via Software & Updates (nvidia-driver-510) on a fresh install of Ubuntu 20.04.4 LTS. However, the driver doesn’t seem to be working. If I run nvidia-smi, I get the following:

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Attached is nvidia-bug-report.log.

nvidia-bug-report.log (413.6 KB)

nvidia-driver-390 works though, if I run nvidia-smi I get this:
Thu Mar 3 21:14:11 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 390.144 Driver Version: 390.144 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 106… Off | 00000000:3B:00.0 Off | N/A |
| 0% 30C P0 20W / 120W | 0MiB / 6078MiB | 3% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+
nvidia-driver-450 and nvidia-driver-470 also work.
Weirdly enough, nvidia-driver-510 now works. It’s almost as if installing 390 and then reinstalling 510 fixed the problems.
Thu Mar 3 21:54:26 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 510.47.03 Driver Version: 510.47.03 CUDA Version: 11.6 |
|-------------------------------±---------------------±---------------------+
| 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 NVIDIA GeForce … Off | 00000000:3B:00.0 On | N/A |
| 0% 34C P2 23W / 120W | 238MiB / 6144MiB | 1% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1390 G /usr/lib/xorg/Xorg 110MiB |
| 0 N/A N/A 1537 G /usr/bin/gnome-shell 125MiB |
±----------------------------------------------------------------------------+