• (Solved) Pacman Won't Update Software


    2015-03-27--1427508947_1366x768_scrot.png
    I keep getting this error about the servers. Does anyone know how to fix this? If so, can you please provide me step by step instructions by doing so! Thank you! Also, this usually happens every now and then and I haven’t even messed with anything. Why is this so?

  • It looks like your mirrorlist file is either missing or corrupted. Try reinstalling it and then use reflector to update the list with the best mirrors for your location:

    sudo pacman -S pacman-mirrorlist --force
    sudo pacman -S reflector
    sudo reflector -l 30 -f 15 --save /etc/pacman.d/mirrorlist
    sudo pacman -Syyu
    

    Let us know if that solves it for you!

  • @lots.0.logs said:

    sudo pacman -S pacman-mirrorlist --force
    sudo pacman -S reflector
    sudo reflector -l 30 -f 15 --save /etc/pacman.d/mirrorlist
    sudo pacman -Syyu

    2015-03-28--1427542931_1366x768_scrot.png
    Still got an error

  • Hi,

    Please, check your /etc/pacman.d/mirrorlist file. If all lines are commented, please, uncomment at least one server.
    If it’s empty or non existant, create it (this is an example with three servers that you can copy as it is):

    Server = http://mirror.tyborek.pl/arch/$repo/os/$arch
    Server = http://arch.tamcore.eu/$repo/os/$arch
    Server = http://mirror.nl.leaseweb.net/archlinux/$repo/os/$arch
    
  • @karasu
    Can you please give me step by step instructions on how to do this? Sorry I am new when it comes to the world of Linux

  • @ChrisMX3417 You can do it in several ways - via terminal text editor or via GUI text editor - anyway you need root permissions (sudo) to edit /etc/pacman.d/mirrorlist file so I recommend to use terminal. Open terminal and try to do the following:

    sudo nano /etc/pacman.d/mirrorlist

    Then check your mirror list, uncomment lines or add news as @karasu mentioned. Don’t forget to save file after editing - Ctrl+X and then type “y” and press Enter. After than try to update software again.

    Arvis Lācis (@arvislacis)

  • @ChrisMX3417

    Since your new to Linux you might still be confused by the term “comment out” a line or two.

    Just in case you don’t know that just means remove the ## in front of any line or two that begins with:

    Server = http;// …

    You need at least one line like above that is not commented out.

    #Server = http;//… on all of them = BAD.

    Hope you get it straightened out and sorry if you already knew what they where talking about.

  • @arvislacis 2015-03-28--1427600474_1366x768_scrot.png
    I did the sudo nano /etc/pacman.d/mirrorlist command and I honestly don’t know what to do next. Sorry for all the hassle

  • It looks like you already have reflector installed on your system. If that’s the case, all you have to do to fix the mirrorlist is run the following command:

    sudo reflector -l 30 -f 15 --save /etc/pacman.d/mirrorlist
    
  • @lots.0.logs 2015-03-29--1427602018_1366x768_scrot.png
    The command isn’t working?

  • That’s weird. Your mirrorlist contains the header that reflector adds but you don’t have reflector. Ok so here is the easiest method to fix it:

    1. Press Alt+F2.
    2. Input the following: sudo gedit /etc/pacman.d/mirrorlist.
    3. Press Enter
    4. Erase the current contents from the file and then copy/paste the following:
    ################################################################################
    ################# Arch Linux mirrorlist generated by Reflector #################
    ################################################################################
    
    # With:       reflector -l 30 -p http -f 20 --save /etc/pacman.d/mirrorlist
    # When:       2015-03-28 05:01:51 UTC
    # From:       https://www.archlinux.org/mirrors/status/json/
    # Retrieved:  2015-03-28 05:01:40 UTC
    # Last Check: 2015-03-28 04:57:17 UTC
    
    Server = http://mirrors.advancedhosters.com/archlinux/$repo/os/$arch
    Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
    Server = http://mirror.rit.edu/archlinux/$repo/os/$arch
    Server = http://www.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
    Server = http://arch.tamcore.eu/$repo/os/$arch
    Server = http://arch.localmsp.org/arch/$repo/os/$arch
    Server = http://ftp.nluug.nl/os/Linux/distr/archlinux/$repo/os/$arch
    Server = http://mirror.js-webcoding.de/pub/archlinux/$repo/os/$arch
    Server = http://archlinux.my-universe.com/$repo/os/$arch
    Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
    Server = http://mirror.archlinux.no/$repo/os/$arch
    Server = http://mirror.one.com/archlinux/$repo/os/$arch
    Server = http://mirror.tyborek.pl/arch/$repo/os/$arch
    Server = http://mirror.fluxent.de/archlinux/$repo/os/$arch
    Server = http://os-sharing.org/archlinux/$repo/os/$arch
    Server = http://arch.nimukaito.net/$repo/os/$arch
    Server = http://archlinux.beccacervello.it/archlinux/$repo/os/$arch
    Server = http://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch
    Server = http://archlinux.bln-ua.net/$repo/os/$arch
    Server = http://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch
    
    1. Save the file.
    2. Run sudo pacman -Syyu OR use the Pamac GUI to update your system. (It seems that PacmanXG is not working properly. )

    After you do that , would you mind posting the contents of your install log here? It’s located at /var/log/cnchi-DATE-OF-INSTALL.log

    Thanks!

  • Most likely it was an update and you got a mirrorllist.new.
    Happened to me and I just did as the above postings indicated.

  • This post is deleted!
  • @lots.0.logs 2015-03-30--1427690587_1366x768_scrot.png .
    I just need to be root user and I don’t know how. I’m so used to the world of Windows 7 haha

  • to get to root type in terminal -

    sudo /path to mirror list file

    Otherwise you can type root thunar (the file manager) but for some reason this isn’t working for me.

    When it opens in root I cant get thunar to remove the “you are in root” message and actually let me see/edit the files.

    Any help with this would be great.

  • @ChrisMX3417 Did you open the file using the steps I provided? It should have asked you for your root password before gedit appeared. You can’t open gedit from the terminal as root so if its not working the way I explained then you will have to do it this way:

    1. Create a new file in /tmp named mirrorlist.
    2. Copy/paste the mirrorlist that I provided.
    3. Save the file.
    4. Run the following command in a terminal:
    sudo cp /tmp/mirrorlist /etc/pacman.d
    

    @Yoshiserry The “You are in root” message cannot be removed, but you can still browse and edit files…or at least you should be able to.

    Cheers!

  • This post is deleted!
  • thanks lot.0.logs - except when i open thunar as root as view the root on the left hand visual pane, i9 see nothing. everything is blank in the main window where you would see files.

  • Try this (it may fix the issue):

    sudo ln -s "/usr/share/themes/Numix Frost/gtk-2.0" /root/.config/gtk-2.0
    sudo ln -s "/usr/share/themes/Numix Frost/gtk-3.0" /root/.config/gtk-3.0
    
  • @ChrisMX3417 , did you get it working OK yet?

Posts 21Views 7872
Log in to reply