Skip to content

Can't run pacman -Syu.

:: Synchronizing package databases...

core 158.2 KiB 70.7 KiB/s 00:02 [##########################] 100%

extra 1765.0 KiB 1462 KiB/s 00:01 [##########################] 100%

community 6.7 MiB 6.06 MiB/s 00:01 [##########################] 100%

multilib 176.2 KiB 568 KiB/s 00:00 [##########################] 100%

:: Starting full system upgrade...

:: Replace med with community/med-openmpi? [Y/n]

:: Replace python-crypto with community/python-pycryptodome? [Y/n]

:: Replace wxgtk-common with extra/wxwidgets-common? [Y/n]

:: Replace wxgtk3 with extra/wxwidgets-gtk3? [Y/n]

resolving dependencies...

looking for conflicting packages...

:: hdf5-openmpi and hdf5 are in conflict. Remove hdf5? [y/N] y

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

:: removing python-crypto breaks dependency 'python-crypto=2.6.1' required by python-pycrypto

51 points46 comments
Open on Reddit
About this post
Posted
Archived
Score
51 · 86% up
Kind
Text
ID
wranvv

Author

8
posts
17
comments
0
media
View profile

47 comments

  1. Find who owns that package pacman -Qo python-pycrypto
  2. If the owner is no one, it's likely an AUR package.
  3. Panic, let the dread really settle in
  4. Fix yourself up a coffee, let the anxiety mix with panic.
  5. Try to remove the python-crypto package to find out which AUR package needs it
  6. Remove that AUR package. Burn it if you have to.
  7. Do a pacman -Syu
  8. Try to install that AUR package again. If it fails, make sure to leave a helpful comment in the AUR website. Try not to threaten the authors, as they are penniless volunteers who will laugh at any mention of lawyers because they know you are just as penniless as they are.
87 points

I ran pacman -Syu, and it didn't work. I tried running it again by saying y to removing hdf5, but it still didn;t finish. Here is my output.

​

EDIT: Nevermind, I fixed the issue by running pacman -Sy archlinux-keyring.

1 points

This sometimes happens with AUR packages. Occasionally I have had to temporarily uninstall a package or two, update the system packages, and then reinstall the problematic package. Although it seems like about 75% of the time, I don't bother reinstalling the package at all as it turns out it was/had become unnecessary.

65 points

Why is it always python packages though? 🤣

23 points

Somebody thought it was a good idea for the arch standard to be pacman/aur for python packages instead of depending on the standard pip repositories so now we have a mess of poorly maintained arch mirrors

Maybe overly critical of what was a well intentioned idea but historically it has caused me endless issues

0 points

:: Replace python-crypto with community/python-pycryptodome? [Y/n]

Could you instead say no to this, then perform the update.

So keep python-crypto by answering N and when you do a pacman -syu again it will prompt for the same replacement.

This would allow you to update but it may not solve the dependency issue.

12 points

I had the same problem with MPI. I had to delete the freecad package to continue, but I can't install it again now

2 points

I did this and it went fine.

:: Replace med with community/med-openmpi? [Y/n] y
:: hdf5-openmpi and hdf5 are in conflict. Remove hdf5? [y/N] y
2 points

pip list and see if the package is installed with pip. If it is, remove the package installed with pip.

2 points
unknown author

Deleted before we saved it.

1 points

Puthon-pypcrypto is causing your issue, it wants to delete one of it's dependencies for some reason

-5 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.