Problems with nvidia software


As a result of checking with dpkg --configure -a, the package cannot be installed due to the following problems.

sudo dpkg --configure -a
Errors were encountered while processing:

Even when I try to install software called tomboy with apt install tomboy, I get the following message:

sudo apt-get install -f nvidia-460
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool libaccinj64-9.1 libcufft9.1 libcufftw9.1 libcusolver9.1 libcusparse9.1 libnppc9.1 libnppial9.1 libnppicc9.1 libnppicom9.1 libnppidei9.1
libnppif9.1 libnppig9.1 libnppim9.1 libnppist9.1 libnppisu9.1 libnppitc9.1 libnpps9.1 libnvblas9.1 libnvgraph9.1 libnvrtc9.1 libnvtoolsext1 libnvvm3 libthrust-dev libvdpau-dev
libxatracker2 libxvmc1 linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04 linux-hwe-5.4-headers-5.4.0-58 linux-hwe-5.4-headers-5.4.0-59 linux-image-generic-hwe-18.04
nvidia-cuda-doc nvidia-cuda-gdb nvidia-opencl-dev ocl-icd-opencl-dev opencl-c-headers thermald x11-apps x11-session-utils xbitmaps xinit xinput
Use ‘sudo apt autoremove’ to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
7 not fully installed or removed.
Need to get 0 B/164 MB of archives.
After this operation, 554 MB of additional disk space will be used.
(Reading database … 288461 files and directories currently installed.)
Preparing to unpack …/nvidia-460_460.32.03-0ubuntu1_amd64.deb …
Unpacking nvidia-460 (460.32.03-0ubuntu1) …
dpkg: error processing archive /var/cache/apt/archives/nvidia-460_460.32.03-0ubuntu1_amd64.deb (–unpack):
trying to overwrite ‘/usr/lib/x86_64-linux-gnu/’, which is also in package libglx-mesa0:amd64 20.0.8-0ubuntu1~18.04.1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

How should I solve this problem?

Thank you.