Pacman-mirrors 4.7.3-1 problems

[dad@dad3000 ~]$ sudo pacman-mirrors -f0
[sudo] password for dad: 
.: INFO Downloading mirrors from repo.manjaro.org
Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 57, in <module>
    pm.run()
  File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 905, in run
    self.build_common_mirror_list()
  File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 441, in build_common_mirror_list
    mirror_selection = self.filter_user_branch(mirror_selection)
  File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 710, in filter_user_branch
    if mirror["branches"][idx] == 1:
IndexError: list index out of range
[dad@dad3000 ~]$

Hm. Your profile says you are on unstable, yes? If so, maybe

sudo pacman-mirrors -aB unstable

then try again again.

[dad@dad3000 ~]$ sudo pacman-mirrors -aB unstable
[sudo] password for dad: 
.: INFO Branch in config is changed
.: INFO Downloading mirrors from repo.manjaro.org
Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 57, in <module>
    pm.run()
  File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 905, in run
    self.build_common_mirror_list()
  File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 441, in build_common_mirror_list
    mirror_selection = self.filter_user_branch(mirror_selection)
  File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 710, in filter_user_branch
    if mirror["branches"][idx] == 1:
IndexError: list index out of range
[dad@dad3000 ~]$

I was just hoping because that last line of code reads from "branch".
A reinstall of pacman-mirrors would be my next idea, but maybe someone else can help further..
(it does not seem a release issue ... is there anything youve done recently that could be related?)

are you using a custom mirror file?

~ >>> ls /var/lib/pacman-mirrors                                                            
custom-mirrors.json  status.json

The primary reason it happens is because your mirror pool is empty.

That can occur for a number of reasons but it boils down to a limited pool of mirrors which again might not be uptodate. What ever the reason, it should have been caught as mentioned as secondary reason.

The second reason is my bad because I did not catch the error.

Try remove the limits on your mirror pool by running

sudo pacman-mirrors -c all

[dad@dad3000 ~]$ sudo pacman-mirrors -c all
[sudo] password for dad:
.: INFO Downloading mirrors from repo.manjaro.org
Traceback (most recent call last):
File "/usr/bin/pacman-mirrors", line 57, in
pm.run()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 905, in run
self.build_common_mirror_list()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 441, in build_common_mirror_list
mirror_selection = self.filter_user_branch(mirror_selection)
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 710, in filter_user_branch
if mirror["branches"][idx] == 1:
IndexError: list index out of range
[dad@dad3000 ~]$
[dad@dad3000 ~]$ ls /var/lib/pacman-mirrors
status.json
[dad@dad3000 ~]$

This is fixed in version 4.7.4. Please update your system.

On x32-unstable:
[dad@dad3000 ~]$ sudo pacman -Syy
[sudo] password for dad:
:: Synchronizing package databases...
core 187.0 KiB 675K/s 00:00 [#################################] 100%
extra 2.3 MiB 494K/s 00:05 [#################################] 100%
community 4.9 MiB 399K/s 00:13 [#################################] 100%
[dad@dad3000 ~]$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
warning: kodi: ignoring package upgrade (16.1-6 => 17.6-4.0)
warning: libcdio: ignoring package upgrade (0.94-2 => 2.0.0-1.0)
there is nothing to do
[dad@dad3000 ~]$

remove core/x86_64/pacman-mirrors-4.7.4-2-any.pkg.tar.xz.sig
replace core/x86_64/pacman-mirrors-4.7.4-2-any.pkg.tar.xz

...

What are you doing? pacman-mirrors is version 4.7.4-1 in the x32-* repos (I uploaded it about three hours ago).

If you're running an i686 system you need to let us know up front as the repos are not the same as the main Manjaro x86_64 repos.

Here's a direct route to install the fixed i686 package:

sudo pacman -U https://mirror.netzspielplatz.de/manjaro/packages/x32-stable/core/i686/pacman-mirrors-4.7.4-1-any.pkg.tar.xz

I'm pretty sure there are security fixes in these packages, so you should update them.

Kodi don't work after 16 on this system...new libcdio breaks Kodi 16....so...

Did you report the bug? If you didn't it will continue to be broken.

No one cares about Kodi on a Pentium 4...I get laughed at!

I appreciate the work that gets done for Manjaro support but I gotta tell you this support site is an unnavigable maze & it's a wonder anything gets posted correctly.

This is a forum. It works more or less as most forums do (with some modern bling).
What exactly do you find difficult? You seem to be posting and getting responses just fine.

There are two whole groups of people who spend a tonne of time making things work (and keeping things working) on 32-bit CPUs.

  1. https://www.archlinux32.org/
  2. this forum, right here.

However, this thread is about pacman-mirrors. Is that resolved now?

Swimmingly!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by