• Package Upgrade slow


    Hi, I am new to Antergos OS. It seems pretty cool to me. Loving it. But facing one problem that is its take too much time to upgrade packages. Although my internet connection is fully okay but still facing this trouble. Is it mirror related issue ? Please help me to solve this problem
    Thanks :)

  • @umarekanto
    In /etc/pacman.d there are two files, mirrorlist and antergos-mirrorlist. You can edit them, put best (often the closest) mirrors in the beginning.
    Or there is a program ‘reflector’ that can be used for finding best mirrors. Install it and command
    reflector -h
    to see available options.

  • Just install reflector and run

    sudo reflector --verbose --age 8 --fastest 128 --latest 64 --number 32 --sort rate --save /etc/pacman.d/mirrorlist
    

    This should auto-sort your mirrors for you:grinning:.

    Hope this helps!

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • @Keegan Do I need to edit again the mirrors list manually after running this command ? Or it will automatically solve the problem ?

  • @Keegan said in Package Upgrade slow:

    sudo reflector --verbose --age 8 --fastest 128 --latest 64 --number 32 --sort rate --save /etc/pacman.d/mirrorlist

    This will --save automaticly but better with a backup:

    sudo cp  /etc/pacman.d/mirrorlist  /etc/pacman.d/mirrorlist.bak
    sudo reflector --verbose --age 8 --fastest 128 --latest 64 --number 32 --sort rate --save /etc/pacman.d/mirrorlist
    

    /etc/pacman.d/antergos-mirrorlist

    You can easy setup by your self by copy the Server from your country to the top under the automatic selection.

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • @umarekanto said in Package Upgrade slow:

    @Keegan Do I need to edit again the mirrors list manually after running this command ? Or it will automatically solve the problem ?

    It should automatically solve the problem:slight_smile:.

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • P.S. Either of the commands offered by us (the one from @joekamprad and the one from myself) will solve the problem. They are essentially the same, although @joekamprad’s might be a bit better.

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • I got my solution. Marked it as solved. Thanks to everyone for helping me out from this trouble. :)

  • You’re welcome:grinning:. Just glad we could help! If you ever need anything again, don’t hesitate to ask! We would love to help:grinning:.

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • @Keegan said in Package Upgrade slow:

    might be a bit better.

    Not better, it is only a bit more secure TO HAVE BACKUPS ;)

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • Okay, little problem here

    It was okay till last night. But packages from Antergos Repo. are still slow now. But from Core, Community, and extra are okay. How do I solve this problem ?

  • @umarekanto said in Package Upgrade slow:

    Antergos Repo. are still slow now

    do you put your countries server on top of antergos-mirrors list?
    Also unhash the sourceforge entry is a temporary option, to get better speed, they sometimes choose bad servers…

    ###                                        ###
    ##                                          ##
    #       Antergos Repository Mirrorlist       #
    ##                                          ##
    ###                                        ###
    
    
    ###                              ###
    ##                                ##
    #    Automated Mirror Selection    #
    ##                                ##
    ###                              ###
    
    Server = http://mirrors.antergos.com/$repo/$arch
    #Server = http://sourceforge.net/projects/antergos/files/mirror/$repo/$arch
    
    
    ###                              ###
    ##                                ##
    #     Manual Mirror Selection      #
    ##                                ##
    ###                              ###
    
    # "YOUR-COUNTRY"
    Server = http://mirror....
    

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • @joekamprad
    Hey Joe! (you know Jimi Hendrix don’t you?) ;)

    Is there a program like reflector that can change the antergos-mirrorlist?
    There must be such a beast, since the installer creates the file.

    Edit at 18:41 UTC:
    couldn’t wait for an answer, just wrote a quick hack of a bash script that generates /etc/pacman.d/antergos-mirrorlist.

    While generating the list, it

    1. checks the availability of servers
    2. can prefer up to date servers (you can specify how recently updated the repos should be, e.g. at most 10 hours)
    3. can prefer or exclude given countries
    4. can prefer protocols (https or http) to be used
  • @joekamprad 0_1505137163743_Screenshot at 2017-09-11 19-38-26.png

    Well, Antergos doesn’t have any local mirror in my country. But I have chosen this one ? Is this config okay ?

  • Yes all servers are o.k. but some users have problems with some of them so choose what is near you works, you can unhash (#) also http://sourceforge … if the slowness persist ;)

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • Bild Text

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • @manuel said in Package Upgrade slow:

    couldn’t wait for an answer, just wrote a quick hack of a bash script that generates /etc/pacman.d/antergos-mirrorlist.

    Ooh… that sounds interesting! I think I can probably use your script to create a GUI application out of it if you are OK with it:grinning:. Just give me a link and I’ll start working on it right away - if you’re fine with that of course. I would suspect that many other Antergos users could benefit from something like this.

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • @manuel said in Package Upgrade slow:

    couldn’t wait for an answer, just wrote a quick hack of a bash script that generates /etc/pacman.d/antergos-mirrorlist.

    YES! i overread thisone before, should be handy, and with the grow of mirror numbers for Antergos more and more …

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • @Keegan
    It is ok for me! But let me still work on it a bit more, it needs some polishing and I still want to play with some new ideas how to improve it, e.g. better support for ranking servers.
    The basic operation is ok now, I’ve been testing it quite a lot. And there are some design choices that may need some discussion, but we’ll see it later.

  • Feel free to open a treat here: https://forum.antergos.com/category/38/development
    To discuss and improve!

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

Posts 37Views 547
Log in to reply