You are not logged in.

#1 2019-10-23 10:48:59

Irets
Member
Registered: 2019-02-01
Posts: 143

[SOLVED] Dependency breakage with pacman and yay after pacman -Syu

When attempting to run pacman -Syu, I cant seem to be able to update my machine.
It fails when pacman starts to look for conflicting packages.


This is me running the command and it's output.

> sudo pacman -Syu
[sudo] password for irets: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
:: Replace ilmbase with extra/openexr? [Y/n] y
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing pacman (5.2.0-2) breaks dependency 'pacman<=5.1.3' required by yay

Yay -Syu also fails with the following;

> yay -Syu
[sudo] password for irets: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                                                                                                                               4.9 MiB  4.15M/s 00:01 [---------------------------------------------------------------------------------------------------] 100%
 multilib is up to date
:: Starting full system upgrade...
:: Replace ilmbase with extra/openexr? [Y/n] y
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing pacman (5.2.0-2) breaks dependency 'pacman<=5.1.3' required by yay
Error installing repo packages

What should I do here?

Last edited by Irets (2019-10-24 02:21:46)

Offline

#2 2019-10-23 10:50:23

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Get rid of yay, it hasn't been updated to work with the newly released pacman 5.2 yet.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2019-10-23 11:00:27

c00ter
Member
From: Alaskan in Washington State
Registered: 2014-08-28
Posts: 386

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Yay-git, on the other hand, has been updated to include pacman 5.2.  https://aur.archlinux.org/packages/yay-git/


UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Offline

#4 2019-10-23 11:14:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2019-10-23 17:15:15

lacii
Member
Registered: 2019-02-26
Posts: 2

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

I haven't found information on the Arch Linux homepage regarding this issue, could anyone help me out?
System upgrade fails:

sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing pacman (5.2.0-2) breaks dependency 'pacman<=5.1.3' required by yay

Edit: I want to keep yay installed aswell.

Last edited by lacii (2019-10-23 17:16:40)

Offline

#6 2019-10-23 17:22:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Yeah, that happens with AUR packages. Uninstall yay until it's updated, or don't update anything. Now that you've updated the databases, you can't even really install anything.

Edit: looks like it's already been updated, so uninstall, update, then rebuild/reinstall the new version. Or use a local repo to update everything at the same time.

Last edited by Scimmia (2019-10-23 17:24:08)

Offline

#7 2019-10-23 17:32:28

lacii
Member
Registered: 2019-02-26
Posts: 2

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Thank you for the quick answer! I have one question left: if I uninstall yay, will it keep the config files? So will it "know" after reinstall which packages were installed through yay, and is able to upgrade all AUR packages with a single command?

Offline

#8 2019-10-23 17:39:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Yay doesn't maintain a configuration file of this, it relies on pacman -Qm to inform of foreign "non-repo" packages

Offline

#9 2019-10-23 17:58:15

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Mod note: Merging with existing topic.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2019-10-24 02:21:07

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Removing yay with

pacman -R yay

has made my install a rolling one again.
I replaced yay with yay-git from AUR afterwards and everything seems to be working fine, marking as solved.

Offline

#11 2019-10-25 14:04:40

Morganamilo
Package Maintainer (PM)
Registered: 2017-12-05
Posts: 77

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

yay was updated as soon as pacman-5.2 hit core. The dependency issue comes from your locally installed yay.
Seems as pacman and yay can't be updated in the same transaction you get that error. No matter if there is an update or not.

Simply remove yay, upgrade your system, then install the new version of yay. No need to use yay-git or anything else.

Last edited by Morganamilo (2019-10-25 14:43:19)

Offline

#12 2019-10-26 23:00:07

pikachu64
Member
Registered: 2019-04-16
Posts: 5

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Another solution if you don't mind having an outdated pacman for the meantime

pacman -Syu --ignore pacman

Offline

#13 2019-10-26 23:05:26

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

pikachu64 wrote:

Another solution if you don't mind having an outdated pacman for the meantime

pacman -Syu --ignore pacman

Partial upgrades are unsupported.

Offline

#14 2019-10-27 00:29:29

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

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

And that would in no way "solve" anything here as it does not update yay, so it just brushes the existing problem under the rug while creating potentially several new ones.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#15 2019-10-27 00:30:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Yeah, that is an *extremely* dumb thing to do. Great way to break your package manager, making things much more difficult to fix.

Offline

#16 2019-10-27 01:54:32

Warper
Member
From: Quito, Ecuador
Registered: 2008-04-08
Posts: 47

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Hey everyone,

I found this solution in the AUR info for yay and it worked for me:

yay -S yay-bin
sudo pacman -Syu
yay -S yay

Offline

#17 2019-10-30 10:25:23

philcos
Member
From: Oporto, European Union
Registered: 2019-10-08
Posts: 2

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

Warper wrote:

Hey everyone,

I found this solution in the AUR info for yay and it worked for me:

yay -S yay-bin
sudo pacman -Syu
yay -S yay

This solution works like a charm!

Offline

#18 2019-10-30 12:38:10

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

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

That's a ridiculous solution.  The first command 1) removes yay, and 2) installs yay-bin, then the second 3) upgrades the system, then the third 4) removes yay-bin, and 5) installs yay.

Given a previous solution that already did steps 1, 3, and 5, adding steps 2 and 4 of installing then removing a package you never use or have interest in does not help in any way.  Think about what you are doing before you are doing it.  And if you have no idea what these commands do but rather see them as magical incantation you definitely should not be using any AUR helper, and possibly not even arch linux.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#19 2019-10-30 13:08:07

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Dependency breakage with pacman and yay after pacman -Syu

This question has been asked and answered (see posts #6 and #11).

Closing.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB