You are not logged in.

#1 2021-05-24 13:51:18

surajkarki
Member
From: Nepal
Registered: 2021-05-24
Posts: 5
Website

failed to prepare transaction( could not satisfy dependencies)

Hello . I have a problem regarding the package update in arch linux. When i try to update all my software using "sudo pacman -Syu". It doesnt let me to update the packages and show me the error. In past i was also enabled the multilib in pacman and then after some time i disabled it. The error  which is  shows in my terminal is

The terminal display:

error: failed to prepare transaction (could not satisfy dependencies)
:: installing libelf (0.184-1) breaks dependency 'libelf=0.183' required by lib32-libelf


I tried to delete these but there deletion is restricted. Cause they also have dependency on other.
thank you in advance...

Last edited by surajkarki (2021-05-24 18:05:18)

Offline

#2 2021-05-24 14:05:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,694

Re: failed to prepare transaction( could not satisfy dependencies)

First, change your title to something meaningful. 

Then post your /etc/pacman.conf file.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2021-05-24 14:58:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,501
Website

Re: failed to prepare transaction( could not satisfy dependencies)

I gather you've disabled multilib in your pacman.conf but have not removed your existing multilib packages.  Note that nothing about this is actually urgent - so not only is your title uninformative, it's also needlessly demanding (which is effectively disrespectful, albeit unintentionally).  That's not a good approach for seeking technical help online.  You'd benefit in the future from reading documents like our code of conduct and ESR's guide on asking tech support questions.  Following that advice will result in future attempts at seeking help resulting in faster and better results with less friction.

EDIT: the new title is excellent, thanks for the revision.

Last edited by Trilby (2021-05-24 20:15:22)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2021-05-24 17:45:37

surajkarki
Member
From: Nepal
Registered: 2021-05-24
Posts: 5
Website

Re: failed to prepare transaction( could not satisfy dependencies)

Ok sir, this is my post here that is why i did not know how to ask for help. I will take care of all this stuff from next time.

Offline

#5 2021-05-24 18:38:28

surajkarki
Member
From: Nepal
Registered: 2021-05-24
Posts: 5
Website

Re: failed to prepare transaction( could not satisfy dependencies)

I also try to uninstall multilib packages that are remail in my pacman.
i used this command 'sudo pacman -R $(paclist multilib | cut -f1 -d' ')'

which gives me this error in the terminal

xargs: expac: No such file or directory
[sudo] password for surajkarki:
error: no targets specified (use -h for help)

Offline

#6 2021-05-24 20:08:13

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: failed to prepare transaction( could not satisfy dependencies)

'sudo pacman -R $(paclist multilib | cut -f1 -d' ')'
xargs: expac: No such file or directory
[sudo] password for surajkarki:
error: no targets specified (use -h for help)

Not seeing how xargs / expac was invoked from paclist.

What if you try the command from Official_repositories#Disabling_multilib.

Offline

#7 2021-05-24 20:19:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,501
Website

Re: failed to prepare transaction( could not satisfy dependencies)

Thanks for the good revision of the thread title.

Note that the command in the wiki will only work when the [multilib] and following line(s) are uncommented in your pacman.conf.  The wiki advises removing the packages first, then commenting / removing the repo from pacman.conf.

So if you have skipped the first step (or it failed) but you've already removed [multilib] from your pacman.conf, the best approach would be to uncomment or add-back those lines to pacman.conf, then follow the steps in the wiki link provided above.

Last edited by Trilby (2021-05-24 20:20:02)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2021-05-26 06:14:24

surajkarki
Member
From: Nepal
Registered: 2021-05-24
Posts: 5
Website

Re: failed to prepare transaction( could not satisfy dependencies)

Thank you sir.

Offline

#9 2021-05-26 07:52:03

surajkarki
Member
From: Nepal
Registered: 2021-05-24
Posts: 5
Website

Re: failed to prepare transaction( could not satisfy dependencies)

Thank you all of you for helping. Now its ok.

Offline

Board footer

Powered by FluxBB