The current pacman-mirrors crash Pamac and mirror updating

Today I received an update for pacman-mirrors, from 4.23.1-5 to 4.23.2-1.
When I open Pamac (pamac-manager) and I click on Preferences, Pamac will crash with the following errors:

Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 20, in <module>
    from pacman_mirrors import pacman_mirrors
ModuleNotFoundError: No module named 'pacman_mirrors'
Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 20, in <module>
    from pacman_mirrors import pacman_mirrors
ModuleNotFoundError: No module named 'pacman_mirrors'
Segmentation fault (core dumped)

Also if i execute sudo pacman-mirrors --fasttrack
I got:

Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 20, in <module>
    from pacman_mirrors import pacman_mirrors
ModuleNotFoundError: No module named 'pacman_mirrors'

EDIT:
I noticed that has installed files under /usr/lib/python3.10/site-packages but on my system (Stable branch) I am still on python 3.9.

6 Likes

Same on my system :confused:

Same here.

Edit: Just downgraded to the previous version.

Sounds like a pacman-mirrors build based on python 3.10 was pushed premarturly to stable branch.

Unfortunately I don’t have the previous package (4.23.1-5); does someone have this package? I can’t also install anything.

EDIT: found it here: http://ftp.riken.jp/Linux/manjaro/stable/core/x86_64/pacman-mirrors-4.23.1-5-any.pkg.tar.zst

2 Likes

I just downgraded successfully by installing the old version from cache.

You should be able to this by running:

sudo pacman -U /var/cache/pacman/pkg/pacman-mirrors-4.23.1-5-any.pkg.tar.zst

… if the package is still in the pacman cache.

11 Likes

As said I don’t have it on my system: I cleared the cache.

2 Likes

That’s great to hear.

I just wanted to reply, that you might find it somewhere in a repo :slight_smile:

or we can use in stable shiny-mirrors

7 Likes

Hey!

After updating pacman-mirrors to 4.23.2-1 just now, it’s pretty broke…

-> % sudo pacman-mirrors --geoip
Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 20, in <module>
    from pacman_mirrors import pacman_mirrors
ModuleNotFoundError: No module named 'pacman_mirrors'

Thank you.
M.

I simply installed shiny-mirrors to get over the hump for now.

Interestingly, though, yay now says this about pacman-mirrors:

-> % yay -Suy
:: 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...
 there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
 -> Missing AUR Packages:  pacman-mirrors
 there is nothing to do

Why would pacman/yay think that pacman-mirrors was from the AUR all of a sudden?

M.

1 Like

Thank you, this helped to make it work again.

Thank you man!!!

Same here.

I was unaware of shiny-mirrors. Thanks for the info!

1 Like

Hi, I just did a fresh installation of Manjaro and after updating to the new pacman-mirrors version (4.23.2-1) my package manager crashes, when opening the settings.

BR
Chris

sudo pacman -U /var/cache/pacman/pkg/pacman-mirrors-4.23.1-5-any.pkg.tar.zst

Thanks, but for some reason, I only have the new version in the cache. Not sure if I updated anything at all or it’s just the fresh install.

Now you just have to wait for your mirrors to sync and then sudo pacman -Syyu

5 Likes

Works again for me :slight_smile: Big Thanks!