Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Update error causes upgrade to fail, due to conflicting files ? (Read 1645 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Update error causes upgrade to fail, due to conflicting files ?

Update  failed to complete  :

"
# pacman -Syu
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 lib32 is up to date
 extra is up to date
 multilib is up to date
 universe is up to date
:: Starting full system upgrade...
warning: rsync-openrc: local (20210505-2) is newer than world (20210502-1)
warning: wxwidgets-common: local (3.3.0-1) is newer than world (3.2.8.1-2)
warning: wxwidgets-gtk3: local (3.3.0-1) is newer than world (3.2.8.1-2)
resolving dependencies...
looking for conflicting packages...

Packages (44) adwaita-fonts-49.0-2  at-spi2-core-2.56.3-1  colord-1.4.8-1
              device-mapper-2.03.33-1.1  fontconfig-2:2.17.0-2  gssdp-1.6.4-1
              libadwaita-1:1.7.5-1  libblockdev-3.3.1-1
              libblockdev-crypto-3.3.1-1  libblockdev-fs-3.3.1-1
              libblockdev-loop-3.3.1-1  libblockdev-mdraid-3.3.1-1
              libblockdev-nvme-3.3.1-1  libblockdev-part-3.3.1-1
              libblockdev-swap-3.3.1-1  libcolord-1.4.8-1  libeinfo-0.62.5-1
              libffi-3.5.1-1  libgoa-3.54.4-1  libplist-2.7.0-1
              libunwind-1.8.2-1  linux-firmware-20250627-1
              linux-firmware-amdgpu-20250627-1
              linux-firmware-atheros-20250627-1
              linux-firmware-broadcom-20250627-1
              linux-firmware-cirrus-20250627-1  linux-firmware-intel-20250627-1
              linux-firmware-mediatek-20250627-1
              linux-firmware-nvidia-20250627-1  linux-firmware-other-20250627-1
              linux-firmware-radeon-20250627-1
              linux-firmware-realtek-20250627-1
              linux-firmware-whence-20250627-1  lvm2-2.03.33-1.1  mujs-1.3.7-1
              netpbm-10.86.47-1  openrc-0.62.5-1  pango-1:1.56.4-1
              sqlite-3.50.2-1  taglib-2.1.1-1  terminus-font-4.49.1-8
              vte-common-0.80.3-1  vte3-0.80.3-1  xfsprogs-6.15.0-1

Total Installed Size:  434.73 MiB
Net Upgrade Size:       69.31 MiB

:: Proceed with installation? [Y/n] Y
(44/44) checking keys in keyring                   [######################] 100%
(44/44) checking package integrity                 [######################] 100%
(44/44) loading package files                      [######################] 100%
(44/44) checking for file conflicts                [######################] 100%
error: failed to commit transaction (conflicting files)
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad103 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad104 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad106 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad107 exists in filesystem
Errors occurred, no packages were upgraded.
"

Download worked normally,  just that the upgrade itself  terminates early due to conflicts, apparently.

Thanks in advance,
*

Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #1
It is saying these firmware files already exist and it refused to just overwrite them, which is usually a good thing

linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad103 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad104 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad106 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad107 exists in filesystem


Did you install them manually?

You can override this with the overwrite switch on pacman.  But you need to know what you are doing.

Pacman does not recognize those file as being installed by the system

From man pacman

 --overwrite <glob>
           Bypass file conflict checks and overwrite conflicting files. If the
           package that is about to be installed contains files that are
           already installed and match glob, this option will cause all those
           files to be overwritten. Using --overwrite will not allow
           overwriting a directory with a file or installing packages with
           conflicting files and directories. Multiple patterns can be
           specified by separating them with a comma. May be specified multiple
           times. Patterns can be negated, such that files matching them will
           not be overwritten, by prefixing them with an exclamation mark.
           Subsequent matches will override previous ones. A leading literal
           exclamation mark or backslash needs to be escaped.



Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #2
From Arch news:
linux-firmware >= 20250613.12fe085f-5 upgrade requires manual intervention

Quote
With 20250613.12fe085f-5, we split our firmware into several vendor-focused packages. linux-firmware is now an empty package depending on our default set of firmware.

Unfortunately, this coincided with upstream reorganizing the symlink layout of the NVIDIA firmware, resulting in a situation that Pacman cannot handle. When attempting to upgrade from 20250508.788aadc8-2 or earlier, you will see the following errors:

Code: [Select]
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad103 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad104 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad106 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad107 exists in filesystem

To progress with the system upgrade, first remove linux-firmware, then reinstall it as part of the upgrade:

Code: [Select]
# pacman -Rdd linux-firmware
# pacman -Syu linux-firmware


Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #3
To progress with the system upgrade, first remove linux-firmware, then reinstall it as part of the upgrade:

Thanks - that worked here.
HP Z640 - 72 x Intel Xeon E5-2699 v3 @ 2.30GHz, 128 GiB RAM, 4GiB + 32GiB NVIDIA

Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #4
From Arch news:
linux-firmware >= 20250613.12fe085f-5 upgrade requires manual intervention

Quote
With 20250613.12fe085f-5, we split our firmware into several vendor-focused packages. linux-firmware is now an empty package depending on our default set of firmware.

Unfortunately, this coincided with upstream reorganizing the symlink layout of the NVIDIA firmware, resulting in a situation that Pacman cannot handle. When attempting to upgrade from 20250508.788aadc8-2 or earlier, you will see the following errors:

Code: [Select]
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad103 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad104 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad106 exists in filesystem
linux-firmware-nvidia: /usr/lib/firmware/nvidia/ad107 exists in filesystem

To progress with the system upgrade, first remove linux-firmware, then reinstall it as part of the upgrade:

Code: [Select]
# pacman -Rdd linux-firmware
# pacman -Syu linux-firmware


This might be worthy of being made sticky, as we are likely to see it over and over.

Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #5
If I recall correctly, Artix expects its users to check Arch and Artix news on occasion. Can't remember who I heard that policy from. Personally I think it makes more sense to copy news to our site if and when it becomes relevant.

Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #6
If I recall correctly, Artix expects its users to check Arch and Artix news on occasion. Can't remember who I heard that policy from. Personally I think it makes more sense to copy news to our site if and when it becomes relevant.



Users are incredible naive and stupid.  I am a perfect example.

Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #7
I hear ya. I don't post the news so it's not up to me.

Re: Update error causes upgrade to fail, due to conflicting files ?

Reply #8
That fix worked.

Thanks.