Issue with Installing Nvidia Driver on Linux Server with Docker

Hello, I’ve been encountering a persistent issue while attempting to install the Nvidia driver (various versions) on a Linux server using the Docker image nvidia/cuda:12.2.0-devel-ubuntu22.04. Every time I attempt the installation, I consistently encounter the following error:

apt-get install nvidia-driver-550
Unpacking xfonts-base (1:1.0.5) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-OShSnN/61-libnvidia-compute-550-server_550.54.15-0ubuntu0.22.04.2_amd64.deb
 /tmp/apt-dpkg-install-OShSnN/84-nvidia-utils-550-server_550.54.15-0ubuntu0.22.04.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’ve tried multiple versions of the Nvidia driver, but the result remains consistent. Has anyone else experienced this issue, and if so, were you able to find a resolution? Any insights or suggestions would be greatly appreciated.

Thank you in advance for your assistance!

The error message is mighty uninformative. Maybe there are already comflicting packages installed?
dpkg -l |grep nvidia

The comand shows nothing