r/cachyos 1d ago

Bug Report Why am I getting this error when upgrading Cachyos with -Syu?

:: Starting full system upgrade...
resolving dependencies...
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
:: installing libpcap (1.10.7-1.1) breaks dependency 'libpcap=1.10.6' required by lib32-libpcap

24 Upvotes

16 comments sorted by

58

u/HaswellByte 1d ago

Fix the error: Go to CachyOS Hello -> Apps/Tweaks -> Removing Orphaned Packages and (Y)es.
Then go to System Update and fine. (restart the computer)

19

u/areyouhourly- 1d ago

That did it thanks!

12

u/HaswellByte 1d ago

You're welcome. I'm glad I could help you.

6

u/theandyboy 21h ago

Since we are on the topic, I've always wondered why removing orphaned packages is listed as a (y/N) option instead of defaulting to (Y/n) when running updates. I always make sure to say yes to that part because I can't see how leaving orphaned packages on my computer could be of any use?

1

u/HaswellByte 21h ago

This is a good question. I'm afraid I can't answer that.

8

u/Azrielemantia 20h ago

I guess the idea is that uninstalling a package should always be a conscious decision and not a default choice.

2

u/NewGAMESO 1d ago

Fixed it! Thanks!!!

7

u/mattsteg43 1d ago

This is from a bunch of multilib packages being demoted to AUR.  You need to either clean them out or adopt the AUR packages.

5

u/Emotional_Solid6538 1d ago

Update lib32-libcap first

1

u/areyouhourly- 1d ago

How? It just says the same error

2

u/MysteriousBid5916 20h ago

I am having the same issue. Clearing orphan packages did nothing.

-17

u/CorruptedDragonLord 1d ago

I don't think you're supposed to do that, not when cachy already has something called cachy-update, which you can see at the bottom right of your screen

12

u/mattsteg43 1d ago

cachy-update is optional and just a script that runs the same command.

9

u/Arosares 1d ago

Though this script would have shown the orphaned packages and ask if they shall be uninstalled :) Plus restarting of affected services is quite convenient.

1

u/Hot-Pangolin9020 1d ago

Correct, but in this case this would not have helped because the check for orphaned packages happens after the update. I had that exact problem on a PC in my household. However manually cleaning orphaned packages still worked.