fosskers / aura

A multilingual package manager for Arch Linux and the AUR.
https://fosskers.github.io/aura/
GNU General Public License v3.0
1.76k stars 114 forks source link

Make It use pacman Mirrors #756

Closed AkhilStaro closed 2 years ago

AkhilStaro commented 2 years ago

I really like using aura but here in my region i have to update my mirrors almost every day for downloading packages, aura seems to not use my pacman mirrors so, i have to use pacman or yay. if there is a mirrorlist file for aura then please let me know, if it doesn't have one, then please make it use the pacman mirrorlist. Ty Hope you add this feature

fosskers commented 2 years ago

Aura does use pacman's mirrors, since -S commands call pacman directly. Were you seeing evidence of the contrary? If so I'm curious.

AkhilStaro commented 2 years ago

A lot of times, even after updating my mirrors i get error "could not retrieve 'file' from 'my mirror server'. also if -S calls pacman then -A would not use my pacman mirrors right ?

fosskers commented 2 years ago

That's right, -A doesn't interact with remote mirrors.

AkhilStaro commented 2 years ago

Ok so... i expect you to fix it, maybe ? Then I can close this issue.

fosskers commented 2 years ago

I'm not sure what the problem is, so I'm not sure what the fix would be.

AkhilStaro commented 2 years ago

I want '-A' to interact with the pacman mirrors, Thats it.

fosskers commented 2 years ago

In what way? -A is for interacting withe the AUR. The AUR has nothing to do with the official repos. Any time that official packages are needed (as dependencies, for instance), pacman is consulted directly, which would use whatever mirrors you have specified.

AkhilStaro commented 2 years ago

I Am Sorry Sir, that was a stupid Request, I reframe it to : When I run aura to install an AUR package, I get an error "cound not retrieve file from 'my mirror server'. Is there a way to fix that problem, Btw sorry for late reply.

fosskers commented 2 years ago

Could you copy-paste exactly what you're seeing, or provide a screenshot?

AkhilStaro commented 2 years ago

Hey It's been a long time after I posted this issue and I have reinstalled my system a week ago, I don't face the problem anymore and I am not able to recreate the issue again, The following is all the information i can provide : Before (when I had to issue) I was using the AUR package aura, and Now (when I don't face the issue anymore) I am using aura-bin

Below is my neofetch (current) :

akhilesh@AkhilStar ~> neofetch
                   -`                    akhilesh@AkhilStar
                  .o+`                   ------------------
                 `ooo/                   OS: Arch Linux btw x86_64
                `+oooo:                  Host: Dell Inc. 031GJ4
               `+oooooo:                 Kernel: 5.17.9-zen1-1-zen
               -+oooooo+:                Uptime: 1 hour, 45 mins
             `/:-:++oooo+:               Packages: 682 (pacman)
            `/++++/+++++++:              Shell: fish 3.4.1
           `/++++++++++++++:             Resolution: 1366x768
          `/+++ooooooooooooo/`           DE: Xfce 4.16
         ./ooosssso++osssssso+`          WM: Xfwm4
        .oossssso-````/ossssss+`         WM Theme: Qogir-dark
       -osssssso.      :ssssssso.        Theme: Qogir-dark [GTK2/3]
      :osssssss/        osssso+++.       Icons: Qogir-dark [GTK2/3]
     /ossssssss/        +ssssooo/-       Terminal: alacritty
   `/ossssso+/:-        -:/+osssso+-     Terminal Font: Iosevka Term Extended
  `+sso+:-`                 `.-/+oso:    CPU: Intel i3-4005U (4) @ 1.600GHz
 `++:.                           `-/+/   GPU: Intel Haswell-ULT
 .`                                 `/   Memory: 1794MiB / 3839MiB

Only difference is that I was using the Qtile window manager in xfce sessions(Swapped xfwm4 with Qtile) and the standard linux kernel before my last install.

I hope this much information in enough to fix the issue for someone else who's facing it, If I am missing something let me know.

PS: I really appreciate how you replied very fast after I first posted the issue :)

edit : grammatical edits edit(again): I am pretty sure the problem occured after I updated my mirrors :

akhilesh@AkhilStar ~> refreshmirrors
[sudo] password for akhilesh:
[2022-05-25 15:28:14] WARNING: failed to rate http(s) download (http://mirror.sahil.world/community/os/x86_64/community.db): HTTP Error 403: Forbidden
[2022-05-25 15:28:16] WARNING: failed to rate http(s) download (https://mirror.sahil.world/community/os/x86_64/community.db): HTTP Error 403: Forbidden
akhilesh@AkhilStar ~> sudo aura -Axa something?
ERROR(The one I mentioned earlier)

refresh mirrors is aliased to :

alias refreshmirrors="sudo reflector --download-timeout 59 -a 48 -c IN -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist"

and -c is flag used to represent the region and IN is my country code listed in

countrt

fosskers commented 2 years ago

I'm glad to hear that you aren't having the issue anymore! I'll go ahead and close this then.