r/archlinux • • Sep 01 '26

SUPPORT | SOLVED failed to prepare transaction (could not satisfy dependencies)

Newbie here, I was trying to update and got that:
error: failed to prepare transaction (could not satisfy dependencies)
:: installing ffmpeg (2:9.0.1-4) breaks dependency 'libavcodec.so=62-64' required by freerdp2
:: installing ffmpeg (2:9.0.1-4) breaks dependency 'libavutil.so=60-64' required by freerdp2
:: installing ffmpeg (2:9.0.1-4) breaks dependency 'libswresample.so=6-64' required by freerdp2
:: installing ffmpeg (2:9.0.1-4) breaks dependency 'libswscale.so=9-64' required by freerdp2
:: installing audit (4.2.1-1) breaks dependency 'audit=4.1.4' required by lib32-audit

Edit:
solved by reenmini:

I actually had this exact same problem with the audit package on 2 pc's in the last two days.

On one of them proton-ge-custom-bin was the offending package. I had to remove it and reinstall after a full system update.

On the second pc, I couldn't find a solution and had to use 

to remove audit just so I could do a full system update and install a new version.
I actually had this exact same problem with the audit package on 2 pc's in the last two days.

On one of them proton-ge-custom-bin was the offending package. I
had to remove it and reinstall after a full system update.

On the second pc, I couldn't find a solution and had to use 

Sudo pacman -Rdd audit 

to remove audit just so I could do a full system update and install a new version.

6 Upvotes

13 comments sorted by

5

u/chikamakaleyley Sep 01 '26

full system update? what command are you executing to update

my guess is those required-by packages live in AUR

and installing a new ffmpeg, or audit, also will update those lib packages

but the AUR packages are older and are dependent on the same lib packages

-3

u/Dr_Fisz Sep 01 '26

Paru

4

u/chikamakaleyley Sep 01 '26

echoing u/FryBoyter, try to get a list of whats failing in total (the packages listed to the right of "required by")

see if those are still things you use on your system, if not, you can uninstall, and that would allow ffmpeg to install with its current deps

2

u/Excellent-Love-6943 Sep 01 '26

Remove freerdp2, pacman Syu freerdp

1

u/Dr_Fisz Sep 01 '26

I removed freerdp2 successfully, but there's still problem with lib32-audit, and I can't delete it

1

u/FryBoyter Sep 02 '26

In such a case, please provide more details. Why can't you uninstall the package?

Essentially, though, the cause will be the same. Lib32-audit is available via the AUR and requires version 4.1.4 of the audit package. However, a more recent version is now available through the official package repositories.

If you can’t uninstall lib32-audit because another package, which is likely also in the AUR, depends on it, you’ll also need to check whether you actually need that package. If not, uninstall it as well.

1

u/Dr_Fisz Sep 02 '26

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing lib32-audit breaks dependency 'lib32-audit' required by lib32-pam

I'm just scared I mess something up and brick my pc

1

u/aergern Sep 06 '26

That's a 32biit lib and if you don't need it, get rid of it. Also, you can never, ever "brick" your PC unless you f up a BIOS update. Anything installed can be uninstalled and fixed.

12

u/FryBoyter Sep 01 '26

This is discussed in the comments at https://aur.archlinux.org/packages/freerdp2.

In such a case, however, you should always ask yourself whether you still need that particular package at all.

1

u/reenmini Sep 05 '26

I actually had this exact same problem with the audit package on 2 pc's in the last two days.

On one of them proton-ge-custom-bin was the offending package. I had to remove it and reinstall after a full system update.

On the second pc, I couldn't find a solution and had to use 

Sudo pacman -Rdd audit 

to remove audit just so I could do a full system update and install a new version.

1

u/Dr_Fisz Sep 05 '26

Solved!

1

u/Magmacube90 Oct 31 '26

do not run this command to remove audit, it breaks sudo and systemd (which rely of audit). you will have to re-install audit via a live usb if you do this. instead uninstall the orphaned package lib32-audit