Ubuntu 18.04 broken install problem with libnvidia-common-450 package

I solved this issue by using the the following command to reinstall libnvidia-common-450-server:

sudo apt-get -o Dpkg::Options::="--force-overwrite" install -f libnvidia-common-450-server

The problem started after following an online article to install nvidia drivers. This was the error I was getting:

libnvidia-gl-450-server: Depends: libnvidia-common-450-server but it
is not installed Depends: libgcc1 (>= 1:4.2) but
1:8.4.0-1ubuntu1~18.04 is installed libnvidia-gl-450-server:i386:
Depends: libnvidia-common-450-server but it is not installed

Same issue. Also because of it could not update via Software updater and other issues installing lead to same dependency error. This fixed it for me too:

sudo apt-get -o Dpkg::Options::="--force-overwrite" install -f libnvidia-common-450

Tags:

Nvidia

Dpkg

18.04