Nvidia package failed to install

Asked by Gjergj Plepi

When I try to run update, I get the following error:

Package failed to install:

Error while installing package: trying to overwrite '/lib/firmware/nvidia/570.172.08/gsp_ga10x.bin', which is also in package nvidia-firmware-570-570.172.08 570.172.08-0ubuntu0.24.04.1

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gjergj Plepi
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the full output that you receive for the following commands (to be executed in a terminal window):

uname -a
lsb_release -crid
sudo dpkg --configure -a
apt policy nvidia-firmware-570-*172*

Revision history for this message
Gjergj Plepi (gp1221) said :
#2

Thank you for you reply! Below are the details:

--- uname -a ---
Linux <myhostname> 6.8.0-79-generic #79-Ubuntu SMP PREEMPT_DYNAMIC Tue Aug 12 14:42:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

--- lsb_release -crid ---
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble

--- sudo dpkg --configure -a ---
dpkg: dependency problems prevent configuration of nvidia-dkms-570:
 nvidia-dkms-570 depends on nvidia-firmware-570 (= 570.172.08-0ubuntu1); however:
  Version of nvidia-firmware-570 on system is 570.158.01-0ubuntu1.
dpkg: error processing package nvidia-dkms-570 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-kernel-common-570:
 nvidia-kernel-common-570 depends on nvidia-firmware-570 (= 570.172.08-0ubuntu1); however:
  Version of nvidia-firmware-570 on system is 570.158.01-0ubuntu1.
dpkg: error processing package nvidia-kernel-common-570 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nvidia-dkms-570
 nvidia-kernel-common-570

--- apt policy nvidia-firmware-570-*172* ---
nvidia-firmware-570-server-570.172.08:
  Installed: (none)
  Candidate: 570.172.08-0ubuntu0.24.04.1
  Version table:
     570.172.08-0ubuntu0.24.04.1 500
        500 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages
nvidia-firmware-570-570.172.08:
  Installed: 570.172.08-0ubuntu0.24.04.1
  Candidate: 570.172.08-0ubuntu0.24.04.1
  Version table:
 *** 570.172.08-0ubuntu0.24.04.1 500
        500 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Try the following:

issue the command

sudo apt install nvidia-firmware-570=570.172.08-0ubuntu1 -f

and report the results

Revision history for this message
Gjergj Plepi (gp1221) said :
#4

--- sudo apt install nvidia-firmware-570=570.172.08-0ubuntu1 -f ---

The following packages will be upgraded:
  nvidia-firmware-570
1 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.
2 not fully installed or removed.
Need to get 0 B/64,9 MB of archives.
After this operation, 20,5 kB of additional disk space will be used.
(Reading database ... 536604 files and directories currently installed.)
Preparing to unpack .../nvidia-firmware-570_570.172.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-firmware-570 (570.172.08-0ubuntu1) over (570.158.01-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-firmware-570_570.172.08-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/lib/firmware/nvidia/570.172.08/gsp_ga10x.bin', which is also in package nvidia-firmware-570-570.172.08 570.172.08-0ubuntu0.24.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/nvidia-firmware-570_570.172.08-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#5

Strange, there seem to be two packages with almost identical names, conflicting with each other.

What is the output of the command

apt policy nvidia-firmware-570 nvidia-firmware-570-570.172.08

Revision history for this message
Gjergj Plepi (gp1221) said :
#6

--- apt policy nvidia-firmware-570 nvidia-firmware-570-570.172.08 ---

nvidia-firmware-570:
  Installed: 570.158.01-0ubuntu1
  Candidate: 570.172.08-0ubuntu1
  Version table:
     570.172.08-0ubuntu1 500
        500 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64 Packages
 *** 570.158.01-0ubuntu1 500
        500 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64 Packages
        100 /var/lib/dpkg/status
     570.148.08-1ubuntu1 500
        500 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64 Packages
     570.148.08-0ubuntu1 500
        500 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64 Packages
nvidia-firmware-570-570.172.08:
  Installed: 570.172.08-0ubuntu0.24.04.1
  Candidate: 570.172.08-0ubuntu0.24.04.1
  Version table:
 *** 570.172.08-0ubuntu0.24.04.1 500
        500 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The cause is clear for me:

You are trying to install the NVidia driver packages from two different sources, from the Ubuntu repositories and from the NVidia.com web pages. They are in conflict to each other.

You have the choice: Either install only packages from the NVidia.com pages, then you have to uninstall the Ubuntu ones first, or you do it the other way round.

For checking what you currently have installed: What is the output of the command

dpkg -l | grep -i nvidia | grep 570

Revision history for this message
Gjergj Plepi (gp1221) said :
#8

Thanks!