Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  34] [ 0]  / answers: 1 / hits: 15068  / 2 Years ago, tue, may 31, 2022, 4:45:36

I just installed Ubuntu 18.04.5 LTS on my workstation along with the recommended nvidia drivers, where I used sudo ubuntu-drivers autoinstall to do so, and ubuntu-drivers devices recommends installing nvidia-driver-450-server - distro non-free recommended.


However, after installing the recommended driver, my package system is broken. When I try to update the software using the "Software updater", I get the following message:



The package system is broken. Check if you are using third party
repositories. If so disable them, since they are a common source of
problems.
Furthermore run the following command in a Terminal: apt-get install -f
Transaction failed: The package system is broken
The following packages have unmet dependencies: libnvidia-gl-450: Depends: libnvidia-common-450 but it is not installed
Depends: libgcc1 (>= 1:4.2) but 1:8.4.0-1ubuntu1~18.04 is installed
libnvidia-gl-450:i386: Depends: libnvidia-common-450 but it is not installed


A forced installation of the package using sudo apt-get install -f libnvidia-common-450 yields the following error:



dpkg: error processing archive /var/cache/apt/archives/libnvidia-common-450_450.80.02-0ubuntu0.18.04.2_all.deb
(--unpack):
trying to overwrite '/usr/share/nvidia/nvidia-application-profiles-450.80.02-key-documentation',
which is also in package libnvidia-common-450-server 450.80.02-0ubuntu0.18.04.3
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-common-450_450.80.02-0ubuntu0.18.04.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


And nothing is resolved. Trying to reconfigure the package using sudo dpkg --configure -a says that the package libnvidia-common-450 is not installed. I'm not sure where to go next, and any advice would be greatly appreciated.


More From » 18.04

 Answers
3

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

[#2517] Tuesday, May 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingsta

Total Points: 391
Total Questions: 103
Total Answers: 124

Location: Bonaire
Member since Wed, Mar 29, 2023
1 Year ago
ingsta questions
Sun, Oct 23, 22, 01:42, 2 Years ago
Sat, Oct 30, 21, 11:27, 3 Years ago
Sun, Nov 28, 21, 12:49, 2 Years ago
;