Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: is there another option besides rankmirrors? [SOLVED] (Read 1066 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

is there another option besides rankmirrors? [SOLVED]

sudo  rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
bash: /etc/pacman.d/mirrorlist: Permission denied


i had renamed mirrorlist to mirrolist.backup before running the command but it doesnt run....  am i not a member of the right group?

Re: is there another option besides rankmirrors?

Reply #1
Hello,

in your example you run rankmirrors as root (sudo) but forward the output to /atc/pacman.d/mirrorlist as normal user (bash).
So run bash as root or login as root in shell or use different commands to the job.

You might also consider adding "-r system" switch to rankmirrors command.

Re: is there another option besides rankmirrors?

Reply #2
Hello,

in your example you run rankmirrors as root (sudo) but forward the output to /atc/pacman.d/mirrorlist as normal user (bash).
So run bash as root or login as root in shell or use different commands to the job.

You might also consider adding "-r system" switch to rankmirrors command.


TY TY!