Update fails "unable to satisfy dependency"

hi there,

when i try to update manjaro (xfce), I get the following message:

could not satisfy dependencies:

  • unable to satisfy dependency ‘python2-py’ required by python2-pytest
  • unable to satisfy dependency ‘python2-pluggy’ required by python2-pytest
  • unable to satisfy dependency ‘python2-more-itertools’ required by python2-pytest
  • unable to satisfy dependency ‘python2-atomicwrites’ required by python2-pytest
  • unable to satisfy dependency ‘python2-wcwidth’ required by python2-pytest
  • unable to satisfy dependency ‘python2-funcsigs’ required by python2-pytest
  • unable to satisfy dependency ‘python2-pathlib2’ required by python2-pytest
  • unable to satisfy dependency ‘python2-importlib-metadata’ required by python2-pytest
  • unable to satisfy dependency ‘python2-setuptools-scm’ required by python2-pytest

and I dont know what to do about it. I havent updated my system for a while (I was away for some months). any ideas how to begin? Thank you!!

Hello, almost all of python2-pytest dependencies have been deleted, which of your packages require this?

1 Like

:arrow_down:

1 Like

hi Lolix, how can I find that out?
I tried this command:

sudo pacman -Qi python2-pytest | grep “Required By”

with no results, guess i did something wrong.

What is the result of pacman -Qi python2-pytest

this package is in aur, and is break (reported by @Lolix :ok_hand:)

if LANG=C pacman -Qi python2-pytest | grep “Required By” is empty, you can remove it

pacman -Qi python2-pytest
error: package ‘python2-pytest’ was not found

that is the thing: I do not think python2-pytest is installed at all…

Two things come to mind. First check that all repos are sync (and force sync if possible). And secondly, the package is in AUR (en) - python2-pytest, can you check have you installed in your system any of the packages for which, python2-pytest is a dependency?

1 Like

thank you for your advice. no, it seems I have not installed python2-pytest from AUR either.

one thing is strange: when I sync/ update like this

sudo pacman -Syu

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community               7,0 MiB  8,69 MiB/s 00:01 [######################] 100%
 multilib is up to date
:: Starting full system upgrade...
warning: python-pyqt5: local (5.15.6-7.1) is newer than extra (5.15.6-7)
warning: sndio: local (20180120-1) is newer than community (1.8.1-1)
 there is nothing to do

there is “nothing to do”,

but when i i click on the package manager gui, it tells me i have 19 updates and they are all python… maybe i did some weird python install in the past or something…

Yes, but I think that is being pulled as a dependency for some other package that you have installed. That’s why I ask, not for that package, but for the packages that requires it.

2 Likes

That is not strange but points to AUR package updates: pacman doesn’t do AUR and therefore has no updates.
What you refer to as “package manager gui” is actually called pamac and it can do AUR as well if set up as such.

1 Like

Thank you all for your explanations and patience!

how can i mark sndio downgradable? also in pamac?

same for the python2-pytest: for checking what depends on that package? do i see this here in pamac?

$ sudo pacman -Syuu

https://wiki.manjaro.org/index.php/Pamac#Preferences
use “Enable downgrade”.

$ pactree -r python2-pytest
1 Like
pactree -r python2-pytest
error: package 'python2-pytest' not found

and then i got this:

Why don’t you just remove it? Uninstall all the AUR stuff you don’t use

1 Like

that is exactly what i want to do , but i dont know how :frowning:
python2-pytest doesnt show up in pamac as installed, and nowhere else…

All info given indeed says, python2-pytest is not installed on your machine.

Do you have a package installed which requires python2-pytest?
Maybe python2-automat if I read that one screenshot correctly?

Check for any and all installed python2 packages:

$ pacman -Qs python2

and possibly remove them.

Do you have orphaned packages?

$ pacman -Qdt
1 Like

yes, I got it solved with help from all of you. I managed to deinstall python2-automat and then went from there package by package and deinstalled with the dependend programs. Thanks !! :slight_smile:

1 Like