Problem NVIDIA P102-100 execute nvidia-settings on Ubuntu Server 18.04

I connected to the ubuntu system through ssh. The version of the system is ubuntu server 18.04. When I execute the nvidia-settings -q all command, an error message appears and the content is

$ nvidia-settings -q all
Unable to init server : Could not connect : Connection refused
ERROR : The control display is undefined ; please run nvidia-settings --help for usage information.

$nvidia-smi
±----------------------------------------------------------------------------+
| NVIDIA-SMI 440.82 Driver Version: 440.82 CUDA Version: 10.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 P102-100 Off | 00000000:04:00.0 Off | N/A |
| 0% 39C P0 54W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 1 P102-100 Off | 00000000:05:00.0 Off | N/A |
| 0% 37C P0 53W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 2 P102-100 Off | 00000000:06:00.0 Off | N/A |
| 0% 38C P0 53W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 3 P102-100 Off | 00000000:07:00.0 Off | N/A |
| 0% 38C P0 56W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 4 P102-100 Off | 00000000:08:00.0 Off | N/A |
| 0% 37C P0 56W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 5 P102-100 Off | 00000000:09:00.0 Off | N/A |
| 0% 36C P0 54W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 6 P102-100 Off | 00000000:0A:00.0 Off | N/A |
| 0% 38C P0 56W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 7 P102-100 Off | 00000000:0B:00.0 Off | N/A |
| 0% 35C P0 55W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 8 P102-100 Off | 00000000:0C:00.0 Off | N/A |
| 0% 37C P0 54W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 9 P102-100 Off | 00000000:0D:00.0 Off | N/A |
| 0% 32C P0 47W / 250W | 0MiB / 10156MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+

$ cat /var/log/nvidia-installer.log
reation time: Thu Jul 30 02:02:32 2020
installer version: 440.82

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line:
./nvidia-installer
-s
-k
4.15.0-112-generic

Using built-in stream user interface
-> Detected 32 CPUs online; setting concurrency level to 32.
ERROR: An NVIDIA kernel module ‘nvidia’ appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module’s usage count, for which the simplest remedy is to reboot your computer.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

$ nvidia-bug-report.sh
nvidia-bug-report.log.gz (2.6 MB)