Conflicting files with amd-ucode and linux-firmware

When I was downgrading linux-firmware, conflicting files was owned by amd-ucode and downgrade was unsuccessful.


Package (1)     Old Version          New Version          Net Change

linux-firmware  20250508.788aadc8-2  20231110.74158e7a-1  -76.50 MiB

Total Installed Size:  204.38 MiB
Net Upgrade Size:      -76.50 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                           [----------------------------------------------------] 100%
(1/1) checking package integrity                                                         [----------------------------------------------------] 100%
(1/1) loading package files                                                              [----------------------------------------------------] 100%
(1/1) checking for file conflicts                                                        [----------------------------------------------------] 100%

error: failed to commit transaction (conflicting files)
linux-firmware: /usr/lib/firmware/amd-ucode/README.zst exists in filesystem (owned by amd-ucode)
linux-firmware: /usr/lib/firmware/amd-ucode/microcode_amd.bin exists in filesystem (owned by amd-ucode)
linux-firmware: /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin exists in filesystem (owned by amd-ucode)
linux-firmware: /usr/lib/firmware/amd-ucode/microcode_amd_fam16h.bin exists in filesystem (owned by amd-ucode)
linux-firmware: /usr/lib/firmware/amd-ucode/microcode_amd_fam17h.bin exists in filesystem (owned by amd-ucode)
linux-firmware: /usr/lib/firmware/amd-ucode/microcode_amd_fam19h.bin exists in filesystem (owned by amd-ucode)
Errors occurred, no packages were upgraded.

Then I temporarily removed amd-ucode and downgraded linux-firmware. Again while installing amd-ucode it shows error due to conflicting flies owned by linux-firmware.

Package (1)     New Version          Net Change

core/amd-ucode  20250508.788aadc8-2    0.29 MiB

Total Installed Size:  0.29 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [--------------] 100%
(1/1) checking package integrity                   [--------------] 100%
(1/1) loading package files                        [--------------] 100%
(1/1) checking for file conflicts                  [--------------] 100%
error: failed to commit transaction (conflicting files)
amd-ucode: /usr/lib/firmware/amd-ucode/README.zst exists in filesystem (owned by linux-firmware)
amd-ucode: /usr/lib/firmware/amd-ucode/microcode_amd.bin exists in filesystem (owned by linux-firmware)
amd-ucode: /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin exists in filesystem (owned by linux-firmware)
amd-ucode: /usr/lib/firmware/amd-ucode/microcode_amd_fam16h.bin exists in filesystem (owned by linux-firmware)
amd-ucode: /usr/lib/firmware/amd-ucode/microcode_amd_fam17h.bin exists in filesystem (owned by linux-firmware)
amd-ucode: /usr/lib/firmware/amd-ucode/microcode_amd_fam19h.bin exists in filesystem (owned by linux-firmware)
Errors occurred, no packages were upgraded.

Any solution ?

An Arch linux article says :

The problem is usually trivial to solve (although to be sure, you should try to find out how these files got there in the first place). A safe way is to first check if another package owns the file (pacman -Qo /path/to/file ). If the file is owned by another package, file a bug report. If the file is not owned by another package, rename the file which “exists in filesystem” and re-issue the update command. If all goes well, the file may then be removed.

What was the command you used? The package versions are clearly wrong. Maybe the mirrors are out of date.
Can you show the contents of file /etc/pacman.d/mirrorlist ?

sudo pacman -U https://archive.archlinux.org/packages/l/linux-firmware/linux-firmware-20231110.74158e7a-1-any.pkg.tar.zst

I was downgrading linux-firmware to deal with gpu error during wake up from suspend. I think the mirror list is fine.

This causes a partial upgrade situation which is not supported by Arch and will lead to problems.
I’d suggest fully updating the system (sudo pacman -Syu or some alternative command), and then deal with the GPU & suspend issue in a new thread.

1 Like

You are downgrading to a very old firmware version from November 2023. This can not work if you have amd-ucode installed as well.

The reason is, that in in Feb. 2024 /usr/lib/firmware/amd-ucode was moved to amd-ucode package.

If you insist to use that old linux-firmware package you need to uninstall amd-ucode.

1 Like

Oh! Thanks for the information.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.