i'm trying to run a update via pacman, but it finds a conflits: [code]…
- User
i'm trying to run a update via pacman, but it finds a conflits:
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 filesystemlinux-firmware-nvidiais currently not installed, and the mentioned files don't appear to have a owner (package)❯ sudo pacman -Qkp /usr/lib/firmware/nvidia/ad107 error: could not open file /usr/lib/firmware/nvidia/ad107: Error reading fd 4 error: could not load package '/usr/lib/firmware/nvidia/ad107': cannot open package filethis is the same result for all the above mentioned files
- Assistant
The error you're encountering is a common issue when files exist on the filesystem but are not owned by any package in the package manager database. This often happens if files were manually installed, left over from a previous package, or if a package was partially removed.
Problem Recap:
linux-firmware-nvidiais not installed.- Files like
/usr/lib/firmware/nvidia/ad103exist on disk. - These files are not owned by any package (pacman can't find a package owning them).
- When trying to update/install
linux-firmware-nvidia, pacman complains about file conflicts.
How to fix this
1. Check if files are really needed or safe to remove
Since these files are firmware files for NVIDIA GPUs, if you don't have any custom firmware installed manually, these files are likely leftovers and safe to remove.
You can inspect the files quickly:
ls -l /usr/lib/firmware/nvidia/ad10* file /usr/lib/firmware/nvidia/ad10*If they look like firmware blobs (binary files), and you don't have a reason to keep them, proceed.
2. Backup and remove conflicting files
To be safe, back them up first:
sudo mkdir -p ~/nvidia-firmware-backup sudo mv /usr/lib/firmware/nvidia/ad103 ~/nvidia-firmware-backup/ sudo mv /usr/lib/firmware/nvidia/ad104 ~/nvidia-firmware-backup/ sudo mv /usr/lib/firmware/nvidia/ad106 ~/nvidia-firmware-backup/ sudo mv /usr/lib/firmware/nvidia/ad107 ~/nvidia-firmware-backup/Or remove them directly if you are confident:
sudo rm /usr/lib/firmware/nvidia/ad103 /usr/lib/firmware/nvidia/ad104 /usr/lib/firmware/nvidia/ad106 /usr/lib/firmware/nvidia/ad107
3. Retry the update/install
Now try to update or install the package again:
sudo pacman -Syu linux-firmware-nvidiaThis should now succeed because the conflicting files are gone.
Alternative: Force overwrite (not recommended unless you know what you're doing)
You can tell pacman to overwrite conflicting files with:
sudo pacman -Syu --overwrite usr/lib/firmware/nvidia/ad10*But this can be risky if those files are important or modified.
Summary
- Files exist but are not owned by any package.
- Backup and remove those files.
- Retry the update/install.
- Use
--overwriteas a last resort.
If you want, I can help you write a script to automate the backup and removal. Just ask!
- User
let alone not needing custome firmware, i dont have a nvidea gpu in my system
❯ pacman -Qo /usr/lib/firmware/nvidia/ad107 /usr/lib/firmware/nvidia/ad107/ is owned by linux-firmware 20250508.788aadc8-2 - Assistant
Thanks for the additional info! This clarifies the situation quite a bit.
What’s going on?
- The files
/usr/lib/firmware/nvidia/ad107etc. are owned by thelinux-firmwarepackage, notlinux-firmware-nvidia. - You have both
linux-firmwareandlinux-firmware-nvidiapackages involved. - The
linux-firmware-nvidiapackage tries to install files that already exist and are owned bylinux-firmware. - This causes the conflict because pacman won’t overwrite files owned by another package by default.
Why does this happen?
The
linux-firmwarepackage includes some NVIDIA firmware files, but thelinux-firmware-nvidiapackage includes a more complete or updated set of NVIDIA firmware files. When you try to installlinux-firmware-nvidia, it conflicts with the files already installed bylinux-firmware.
How to fix it?
You have two main options:
Option 1: Remove conflicting files from
linux-firmware(not recommended)This is risky because
linux-firmwareis a core package and removing files from it manually can cause issues.
Option 2: Use
--overwriteto force installlinux-firmware-nvidiaSince you don’t have an NVIDIA GPU, you probably don’t need
linux-firmware-nvidiaat all. But if you want to install it anyway (or it’s a dependency), you can force pacman to overwrite the conflicting files:sudo pacman -S linux-firmware-nvidia --overwrite usr/lib/firmware/nvidia/\*This tells pacman to overwrite all files under
/usr/lib/firmware/nvidia/even if they belong to another package.
Option 3: Skip installing
linux-firmware-nvidiaIf you don’t have an NVIDIA GPU, you likely don’t need
linux-firmware-nvidiaat all. You can:- Avoid installing it.
- Remove it if it’s installed.
- Let
linux-firmwarehandle the firmware files.
Summary
- The conflicting files are owned by
linux-firmware. linux-firmware-nvidiatries to install the same files, causing conflicts.- Use
--overwriteif you want to force install. - Or just don’t install
linux-firmware-nvidiaif you don’t need it.
If you want, I can help you check your installed packages and dependencies to see why
linux-firmware-nvidiais being installed or suggested. Just let me know! - The files
- User
looking at
https://archlinux.org/packages/core/any/linux-firmware-nvidia/it appears to be required bylinux-firmwareso i'm guessing overwriting should be fine - Assistant
Exactly! You’re right on the money.
Explanation
- The Arch Linux package page for
linux-firmware-nvidiashows that it is a dependency oflinux-firmware. - This means
linux-firmwarerequireslinux-firmware-nvidiato provide the full set of NVIDIA firmware files. - The conflict arises because some NVIDIA firmware files are already included in
linux-firmware, but thelinux-firmware-nvidiapackage provides updated or additional files. - Pacman is just being cautious about overwriting files owned by another package.
What to do
Since
linux-firmware-nvidiais a required dependency oflinux-firmware, overwriting those files is expected and safe.You can safely run:
sudo pacman -Syu --overwrite usr/lib/firmware/nvidia/\*This will:
- Update your system,
- Install
linux-firmware-nvidia, - Overwrite the conflicting NVIDIA firmware files owned by
linux-firmware.
Why this happens
This is a known quirk in Arch’s packaging where:
linux-firmwareincludes some NVIDIA firmware files,linux-firmware-nvidiaprovides the full set,- Both packages share some files, causing pacman to complain about conflicts during updates.
Final note
If you want to avoid typing
--overwriteevery time, you can add a pacman configuration for this specific package, but usually, it’s just a one-time thing during updates.
If you want, I can help you with that or any other questions!
- The Arch Linux package page for
- User
kinda annoying how i have to have a nvidia specific package installed when i don't need it, as i don't have anything nvidea in my system
- Assistant
Yeah, that is a bit annoying! Arch’s packaging sometimes bundles firmware for a wide range of hardware into core packages to keep things consistent and avoid missing firmware for users who do need it.
Why does this happen?
- The
linux-firmwarepackage depends onlinux-firmware-nvidiabecause the maintainers want to ensure all firmware is available for users who might have NVIDIA GPUs. - This avoids situations where a user installs
linux-firmwarebut is missing critical NVIDIA firmware files. - Unfortunately, this means even systems without NVIDIA hardware end up pulling in NVIDIA firmware.
What can you do about it?
-
Ignore it
It’s mostly harmless — the NVIDIA firmware files just sit there unused and don’t affect your system. -
Use a custom
linux-firmwarepackage
If you really want to slim down your system, you could build a customlinux-firmwarepackage without the NVIDIA dependency, but that’s a bit of work and you’d have to maintain it yourself. -
File a feature request or discussion on Arch’s bug tracker or forums
Sometimes maintainers reconsider packaging decisions if enough users express concerns. -
Use a minimal or custom kernel/firmware setup
Some users who want minimal installs use custom kernels or firmware packages tailored to their hardware, but this is more advanced.
TL;DR
It’s a packaging convenience for the majority, but it can be annoying for users without NVIDIA hardware. Unless you want to maintain your own firmware package, it’s usually easiest to just accept the extra package.
If you want, I can help you explore how to build a minimal firmware package or suggest ways to keep your system lean!
- The
- User
❯ sudo pacman -Syu --overwrite '/usr/lib/firmware/nvidia/*' :: Synchronizing package databases... core is up to date extra is up to date multilib is up to date :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Packages (51) amd-ucode-20250613.12fe085f-6 ca-certificates-mozilla-3.113-1 enchant-2.8.9-1 iana-etc-20250612-1 kio-extras-25.04.2-2 lib32-gettext-0.25-1 lib32-libdrm-2.4.125-1 lib32-libgpg-error-1.55-1 lib32-nss-3.113-1 lib32-pixman-0.46.2-1 lib32-sqlite-3.50.1-1 lib32-vkd3d-1.16-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 liburcu-0.15.3-1 linux-6.15.3.arch1-1 linux-firmware-20250613.12fe085f-6 linux-firmware-amdgpu-20250613.12fe085f-6 linux-firmware-atheros-20250613.12fe085f-6 linux-firmware-broadcom-20250613.12fe085f-6 linux-firmware-intel-20250613.12fe085f-6 linux-firmware-mediatek-20250613.12fe085f-6 linux-firmware-nvidia-20250613.12fe085f-6 linux-firmware-other-20250613.12fe085f-6 linux-firmware-qlogic-20250613.12fe085f-6 linux-firmware-radeon-20250613.12fe085f-6 linux-firmware-realtek-20250613.12fe085f-6 linux-firmware-whence-20250613.12fe085f-6 linux-headers-6.15.3.arch1-1 linux-zen-6.15.3.zen1-1 linux-zen-headers-6.15.3.zen1-1 nss-3.113-1 perl-json-4.10-2 perl-uri-5.32-1 pkgconf-2.5.0-1 pyenv-1:2.6.3-2 python-hypothesis-6.135.12-1 python-multidict-6.5.0-1 python-numpy-2.3.1-1 python-urllib3-2.5.0-1 python-urwid-3.0.2-1 qtkeychain-qt6-0.15.0-2 ruby-bundler-2.6.9-1 udisks2-2.10.1-6 vkd3d-1.16-1 Total Installed Size: 1228.18 MiB Net Upgrade Size: 67.55 MiB :: Proceed with installation? [Y/n] (51/51) checking keys in keyring [###################################################################] 100% (51/51) checking package integrity [###################################################################] 100% (51/51) loading package files [###################################################################] 100% (51/51) 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. - Assistant
The error you’re seeing:
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.means that pacman is still refusing to overwrite those files, even though you passed
--overwrite '/usr/lib/firmware/nvidia/*'.
Why?
The problem is that the shell is expanding the wildcard (
*) before pacman sees it, but your quotes prevent expansion, so pacman literally receives the string/usr/lib/firmware/nvidia/*and does not interpret it as a wildcard.
How to fix it
You need to escape the wildcard properly so pacman can interpret it, or pass the pattern without quotes so the shell expands it.
Try one of these:
sudo pacman -Syu --overwrite usr/lib/firmware/nvidia/\*or
sudo pacman -Syu --overwrite 'usr/lib/firmware/nvidia/*'or (if you want the shell to expand it):
sudo pacman -Syu --overwrite /usr/lib/firmware/nvidia/*
Important notes:
- The path passed to
--overwriteis relative to the root of the filesystem, so no leading slash (/) is needed. - If you use a leading slash, pacman might not match the files correctly.
So the correct command is:
sudo pacman -Syu --overwrite usr/lib/firmware/nvidia/\*
Summary
- Remove the leading slash in the
--overwriteargument. - Escape the
*or quote it properly. - Then pacman will overwrite the conflicting files and complete the upgrade.
If you want, I can help you run the exact command safely!
- The path passed to
- User
looks like the
rm -rfmethod works, but that's really really dumb - Assistant
Yeah, I totally get your frustration — having to manually delete files that are supposed to be managed by the package manager is definitely not ideal and feels like a hacky workaround.
Why this happens
- The conflict arises because some files are already present on your filesystem but not registered as owned by any package (or owned by a different package).
- Pacman refuses to overwrite files owned by other packages or unowned files unless explicitly told to.
- The
--overwriteflag can be tricky to get right (especially with path syntax and shell escaping). - So sometimes the simplest, albeit blunt, solution is to just remove those files and let the package install cleanly.
Downsides of
rm -rfapproach- You risk deleting files that might be important if you’re not 100% sure what they are.
- It’s manual and can be annoying to do every time a conflict pops up.
- It’s a sign that the packaging or update process could be improved.
What could be better?
- Ideally, the package manager or the package maintainers would handle these conflicts gracefully.
- For example, the
linux-firmwareandlinux-firmware-nvidiapackages could be coordinated better to avoid overlapping files or mark them as “conflicts” or “replaces” properly. - Or pacman could have a more user-friendly way to resolve these conflicts without manual file deletion.
Meanwhile
If you want to avoid this in the future, you can:
- Use the
--overwriteflag correctly (as I showed earlier). - Or script the removal of conflicting files before updates.
- Or keep an eye on Arch forums/bug tracker for updates on this packaging issue.
If you want, I can help you write a small script to automate cleaning these files before updates, so it’s less painful next time! Just say the word.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.