You are not logged in.
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
Get rid of yay, it hasn't been updated to work with the newly released pacman 5.2 yet.
Offline
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
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
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
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
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
Yay doesn't maintain a configuration file of this, it relies on pacman -Qm to inform of foreign "non-repo" packages
Offline
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
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
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
Another solution if you don't mind having an outdated pacman for the meantime
pacman -Syu --ignore pacman
Offline
Another solution if you don't mind having an outdated pacman for the meantime
pacman -Syu --ignore pacman
Offline
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
Yeah, that is an *extremely* dumb thing to do. Great way to break your package manager, making things much more difficult to fix.
Offline
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
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
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
This question has been asked and answered (see posts #6 and #11).
Closing.
Offline