You are not logged in.

#1 2019-12-18 11:30:13

jared
Member
From: Germany
Registered: 2012-01-16
Posts: 55
Website

[SOLVED] Pacman can not satisfy dependencies

Hi all,

I am getting the following error on running pacman -Syu:

...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing protobuf (3.11.1-2) breaks dependency 'protobuf=3.10.1' required by python2-protobuf

I am aware, that partial upgrades are unsupported. That's why I am hesitant to do any of the 'fixes' I found so far.

I'd love to get an advice what I can or should do.
Thanks.

Last edited by jared (2019-12-21 11:01:47)

Offline

#2 2019-12-18 11:33:37

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,950

Re: [SOLVED] Pacman can not satisfy dependencies

AUR packages are your responsibility, not pacmans.

Uninstall python2-protobuf, update the system, and then rebuild/reinstall python2-protobuf.


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-12-18 11:57:51

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,957
Website

Re: [SOLVED] Pacman can not satisfy dependencies

FWIW, python2-protobuf was in [extra] until last week https://git.archlinux.org/svntogit/pack … 829d2dbe55, but this is a good opportunity to re-assess whether you still need python2 package (as py2 is EOL in two weeks time).

Last edited by WorMzy (2019-12-18 11:58:32)


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2019-12-18 12:06:41

jared
Member
From: Germany
Registered: 2012-01-16
Posts: 55
Website

Re: [SOLVED] Pacman can not satisfy dependencies

@Slithery,

thank you for your quick reply.

I had to remove not only python2-protobuf but also python2-axolotl.

I updated, tried to reinstall the two:

$ pacman -S python2-axolotl
[sudo] password for user: 
error: target not found: python2-axolotl
[user@host ~] 
$ pacman -S python2-protobuf
error: target not found: python2-protobuf

Apart from that, everything seems fine.

It seems I have problems with the Heroku-CLI package https://aur.archlinux.org/packages/heroku-cli. Looking into that now.

How do you know, that AUR packages are causing the problem, not from pacman?

Again, thank you for your help!

Offline

#5 2019-12-18 14:58:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,421

Re: [SOLVED] Pacman can not satisfy dependencies

jared wrote:

How do you know, that AUR packages are causing the problem, not from pacman?

It is not absolute.  It is more an application of Occam's razor.   Packages in Core and Extra are carefully scrutinized by devs before they are moved to the repositories.  TUs do the same before things move to community.   This work (almost) guarantees there will be no issues with broken dependencies.

When it comes to the AUR, that task falls upon you.  As the blocking package is not in the three main repositories, it did not get updated.  Pacman noticed that an update would break the dependencies for that foreign package and therefore blocked.  After the system was updated, you were able to rebuild the foreign package against the new libraries (which are the new dependencies for that package -- you can check that with pacman -Qi packagename)

It could have been a package in one of the three main repositories -- it has happened in the past -- but the probability is much closer to 1 that the fault was an AUR package that had been installed by the user.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2019-12-18 15:02:53

xerxes_
Member
Registered: 2018-04-29
Posts: 278

Re: [SOLVED] Pacman can not satisfy dependencies

Python2 is EOL in two weeks? How do you know that? And what it means: will I have to uninstall python2 and all it's dependencies?

Offline

#7 2019-12-18 15:10:25

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,950

Re: [SOLVED] Pacman can not satisfy dependencies

jared wrote:

How do you know, that AUR packages are causing the problem, not from pacman?

Because pacman complained about python2-protobuf, which is an AUR package.


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

#8 2019-12-18 15:14:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,421

Re: [SOLVED] Pacman can not satisfy dependencies

xerxes_ wrote:

Python2 is EOL in two weeks? How do you know that? And what it means: will I have to uninstall python2 and all it's dependencies?

https://pythonclock.org/
https://www.python.org/dev/peps/pep-0373/
https://www.infoworld.com/article/33652 … hon-2.html
https://www.theregister.co.uk/2019/09/0 … on_2_2020/
https://stackoverflow.com/questions/483 … python-2-7

No, you do not need to remove it.  It is likely still a dependency of other things you may have installed (last I checked, mercurical still requires it)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2019-12-18 16:51:57

loqs
Member
Registered: 2014-03-06
Posts: 11,668

Re: [SOLVED] Pacman can not satisfy dependencies

See https://wiki.archlinux.org/index.php/Us … conversion and that list only covers packages that list python2 as a direct dependency.

Offline

#10 2019-12-21 11:03:01

jared
Member
From: Germany
Registered: 2012-01-16
Posts: 55
Website

Re: [SOLVED] Pacman can not satisfy dependencies

Thank you for your help everyone.
Enjoy the festive season.

Offline

Board footer

Powered by FluxBB