nvidia-dkms-418 : Depends: nvidia-kernel-common-418 but it is not installed

I am getting this error all the time, whenever I am upgrade the system through terminal.
Also, while installing the other software through also facing the same.

mine is ubuntu 18.10

graphics card : Geforce 1080 Ti

like below error…

You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
nvidia-dkms-418 : Depends: nvidia-kernel-common-418 but it is not installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

The same below error:…

(Reading database … 562452 files and directories currently installed.)
Preparing to unpack …/nvidia-kernel-common-418_418.56-0ubuntu0~gpu18.10.1_amd64.deb …
Unpacking nvidia-kernel-common-418 (418.56-0ubuntu0~gpu18.10.1) …
dpkg: error processing archive /var/cache/apt/archives/nvidia-kernel-common-418_418.56-0ubuntu0~gpu18.10.1_amd64.deb (–unpack):
trying to overwrite ‘/lib/udev/rules.d/71-nvidia.rules’, which is also in package nvidia-410 410.78-0ubuntu0~gpu16.04.1
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-kernel-common-418_418.56-0ubuntu0~gpu18.10.1_amd64.deb
ImageMagick PDF and PostScript restriction removal
E: Sub-process /usr/bin/dpkg returned an error code (1)