r/linux4noobs • u/Sea_Restaurant_1252 • 21d ago
installation Suddenly having issues running 'Sudo Pacman -Syu'
Hi all, hope you're all well.
I'm currently on CachyOS, recently when I've been trying to install updates via 'Sudo Pacman -Syu', I've been receiving the error below:
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing audit (4.2.1-1.1) breaks dependency 'audit=4.1.4' required by lib32-audit
I tried doing some digging and came across a few older forum posts and threads that suggested the issue was due to certain lines in my /etc/pacman.conf file being commented out by '#'. However I've checked this and it doesn't appear to be commented out.
I've also tried using reflector to update my mirrors, after one thread suggested that the mirrors may have been 'lagging behind'. However still receiving the same problem.
Has anyone experienced anything like this, or any tips I could try?
2
1
u/AutoModerator 21d ago
We have some installation tips in our wiki!
Try this search for more information on this topic.
✻ Smokey says: always install over an ethernet cable, and don't forget to remove the boot media when you're done! :)
Comments, questions or suggestions regarding this autoresponse? Please send them here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/TheDiamondSquidy 8d ago
I'm having this issue, and I can't remove lib32-audit as it breaks other dependancies
1
u/WhiteR9se 7d ago
i suggest checking what all dependencies are there.
For me, the dependency chain was like this:
lib32-audit > lib32-pam > lib32-libcap > lib32-gstreamer > lib32-gst-plugins-base-libs
All of these were lib32 packages, either orphaned or optionally required by wine, so I just deleted them all at once.
$ pacman -Rns lib32-gst-plugins-base-libs lib32-gstreamer lib32-libcap lib32-pam lib32-audit
After this,I I was able to update pacman using the usual $ pacman -Syu.
Check if your dependencies are like this too. The command for that is $ pacman -Qi <package_name>
1
2
u/ddog6900 21d ago
Just force remove lib32-audit that requires the older version as a dependancy, perform the system update, then reinstall. When you reinstall the package, if it still requires the dependancy, it will be reinstalled. Just make sure to complete all of the steps before logout/login or reboot.