Cannot update system

It has only been a week or two since I have updated my system. I have been away from my machine and it has been powered off for over a week (dont know if this makes a difference).

I typically update like this:

  1. From the Welcome screen, run Update Mirrors (Arch, reflector-simple)
  2. From the Welcome screen, run Update Mirrors (EndeavorOS)
  3. From the Welcome screen, click Configure eos-update-notifier
  4. From the notifier configure dialog, click Operation test
  5. Then when the notification for updates pops up, I click it and install them

However, today, when running #2, I am getting the following:

error: GPGME error: No data
==> eos-rankmirrors: info: extracting /var/cache/pacman/pkg/endeavouros-mirrorlist-24.4-1-any.pkg.tar.zst ...
==> eos-rankmirrors: info: ranking EndeavourOS mirrors, please wait ...
==> Warning about https://de.freedif.org/EndeavourOS/repo/$repo/$arch:
    Connection failed. The mirror may be temporarily or permanently offline.
    Continuing.
==> Warning about https://endeavour.remi.lu/repo/$repo/$arch:
    Connection failed.
    Continuing.
==> Warning about https://fastmirror.pp.ua/endeavouros/repo/$repo/$arch:
    Connection failed. The mirror may be temporarily or permanently offline.
    Continuing.
/usr/bin/eos-rankmirrors: line 186: [: too many arguments
/usr/bin/eos-rankmirrors: line 189: [: too many arguments
/usr/bin/eos-rankmirrors: line 192: [: too many arguments
==> Info: Results of ranking EndeavourOS mirrors:

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# EndeavourOS mirrorlist, ranked by eos-rankmirrors at 06/17/2024 08:55:19 AM.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Server = https://mirror.nimatarlani.com/endeavouros/repo/$repo/$arch
Server = https://mirrors.gigenet.com/endeavouros/repo/$repo/$arch
Server = https://mirror.funami.tech/endeavouros/repo/$repo/$arch
Server = https://fosszone.csd.auth.gr/endeavouros/repo/$repo/$arch
Server = https://md.mirrors.hacktegic.com/endeavouros/repo/$repo/$arch
Server = https://endeavouros.ip-connect.info/repo/$repo/$arch
Server = https://mirror.archlinux.tw/EndeavourOS/repo/$repo/$arch
Server = https://mirror.moson.org/endeavouros/repo/$repo/$arch
Server = https://mirror.alpix.eu/endeavouros/repo/$repo/$arch
Server = https://mirrors.urbanwave.co.za/endeavouros/repo/$repo/$arch
Server = https://mirror.jingk.ai/endeavouros/repo/$repo/$arch
Server = https://ftp.belnet.be/mirror/endeavouros/repo/$repo/$arch
Server = https://mirrors.nxtgen.com/endeavouros-mirror/repo/$repo/$arch
Server = https://mirrors.jlu.edu.cn/endeavouros/repo/$repo/$arch
Server = https://mirror.freedif.org/EndeavourOS/repo/$repo/$arch
Server = https://mirror.accum.se/mirror/endeavouros/repo/$repo/$arch
Server = https://mirror.albony.xyz/endeavouros/repo/$repo/$arch
Server = https://mirror.sjtu.edu.cn/endeavouros/repo/$repo/$arch
Server = https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Mirror ranking info at (UTC) 06/17/2024 03:55:19 PM:
# The following fields are shown for each mirror:
#   mirror:          The mirror address
#   update-level:    Ordinal number of the latest update (larger is newer)
#   fetch-time:      Measures the speed of the mirror (smaller is faster)
#
# mirror                                                             update-level  fetch-time  
# ~~~~~~                                                             ~~~~~~~~~~~~  ~~~~~~~~~~  
# https://mirror.nimatarlani.com/endeavouros/repo/$repo/$arch        <!DOCTYPE     html>       1.153276
# https://mirrors.gigenet.com/endeavouros/repo/$repo/$arch           2202          0.310804    
# https://mirror.funami.tech/endeavouros/repo/$repo/$arch            2202          0.534530    
# https://fosszone.csd.auth.gr/endeavouros/repo/$repo/$arch          2202          0.651927    
# https://md.mirrors.hacktegic.com/endeavouros/repo/$repo/$arch      2202          0.715503    
# https://endeavouros.ip-connect.info/repo/$repo/$arch               2202          0.750195    
# https://mirror.archlinux.tw/EndeavourOS/repo/$repo/$arch           2202          0.767801    
# https://mirror.moson.org/endeavouros/repo/$repo/$arch              2202          0.834879    
# https://mirror.alpix.eu/endeavouros/repo/$repo/$arch               2202          0.877147    
# https://mirrors.urbanwave.co.za/endeavouros/repo/$repo/$arch       2202          0.888593    
# https://mirror.jingk.ai/endeavouros/repo/$repo/$arch               2202          0.920426    
# https://ftp.belnet.be/mirror/endeavouros/repo/$repo/$arch          2202          0.999123    
# https://mirrors.nxtgen.com/endeavouros-mirror/repo/$repo/$arch     2202          1.020124    
# https://mirrors.jlu.edu.cn/endeavouros/repo/$repo/$arch            2202          1.215069    
# https://mirror.freedif.org/EndeavourOS/repo/$repo/$arch            2202          1.217149    
# https://mirror.accum.se/mirror/endeavouros/repo/$repo/$arch        2202          1.292126    
# https://mirror.albony.xyz/endeavouros/repo/$repo/$arch             2202          1.890730    
# https://mirror.sjtu.edu.cn/endeavouros/repo/$repo/$arch            2202          2.522804    
# https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch  2201          0.995709    

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

### Original mirrorlist before ranking:

######################################################
####                                              ####
###        EndeavourOS Repository Mirrorlist       ###
####                                              ####
######################################################
#### Entry in file /etc/pacman.conf:
###     [endeavouros]
###     SigLevel = PackageRequired
###     Include = /etc/pacman.d/endeavouros-mirrorlist
######################################################
### Tip: Use the 'eos-rankmirrors' program to rank
###      these mirrors or re-order them manually.
######################################################

## Belgium
#Server = https://ftp.belnet.be/mirror/endeavouros/repo/$repo/$arch

## China
#Server = https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch
#Server = https://mirrors.jlu.edu.cn/endeavouros/repo/$repo/$arch
#Server = https://mirror.sjtu.edu.cn/endeavouros/repo/$repo/$arch

## Germany
#Server = https://mirror.alpix.eu/endeavouros/repo/$repo/$arch
#Server = https://de.freedif.org/EndeavourOS/repo/$repo/$arch
#Server = https://mirror.moson.org/endeavouros/repo/$repo/$arch

## Greece
#Server = https://fosszone.csd.auth.gr/endeavouros/repo/$repo/$arch

## France
#Server = https://endeavour.remi.lu/repo/$repo/$arch

## India
#Server = https://mirror.albony.xyz/endeavouros/repo/$repo/$arch
#Server = https://mirrors.nxtgen.com/endeavouros-mirror/repo/$repo/$arch

## Iran
#Server = https://mirror.nimatarlani.com/endeavouros/repo/$repo/$arch

## Moldova
#Server = https://md.mirrors.hacktegic.com/endeavouros/repo/$repo/$arch

## Singapore
#Server = https://mirror.jingk.ai/endeavouros/repo/$repo/$arch
#Server = https://mirror.freedif.org/EndeavourOS/repo/$repo/$arch

## South Africa
#Server = https://mirrors.urbanwave.co.za/endeavouros/repo/$repo/$arch

## South Korea
#Server = https://mirror.funami.tech/endeavouros/repo/$repo/$arch

## Sweden
#Server = https://mirror.accum.se/mirror/endeavouros/repo/$repo/$arch

## Taiwan
#Server = https://mirror.archlinux.tw/EndeavourOS/repo/$repo/$arch

## Ukraine
#Server = https://fastmirror.pp.ua/endeavouros/repo/$repo/$arch
#Server = https://endeavouros.ip-connect.info/repo/$repo/$arch

## United States
#Server = https://mirrors.gigenet.com/endeavouros/repo/$repo/$arch

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==> Moving old EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.bak.
==> Writing new ranked EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.
Root Password: 

The first line and the lines about the too many arguments are concerning. Never seen them before.

error: GPGME error: No data
...
/usr/bin/eos-rankmirrors: line 186: [: too many arguments
/usr/bin/eos-rankmirrors: line 189: [: too many arguments
/usr/bin/eos-rankmirrors: line 192: [: too many arguments

I also get this when running the update (Operation Test)

Checking for updates ...
==> ERROR: Cannot fetch updates
Checking AUR updates ...
 -> could not open file /var/lib/pacman/sync/endeavouros.db: Unrecognized archive format

Press ENTER to close this window: 

I tried https://stackoverflow.com/a/67850084, but I did not delete the sync folder. Only renamed it. And I have since put it back.

Any help would be greatly appreciated. I am unable to update my system.

Thanks!

1 Like

This server is out.

Remove that line from your /etc/pacman.d/endeavouros-mirrorlist

Run sudo pacman -Syu afterwards.

Tried that. I still get

error: GPGME error: No data
:: Synchronizing package databases...
 endeavouros                                  15.4 KiB  48.7 KiB/s 00:00 [-----------------------------------------] 100%
 core is up to date
 extra is up to date
 multilib is up to date
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)

Please post the URLs:

cat /etc/pacman.d/endeavouros-mirrorlist | eos-sendlog

cat /etc/pacman.d/mirrorlist | eos-sendlog

and also:

file /var/lib/pacman/sync/*

endeavouros-mirrorlist: https://0x0.st/XTo9.html
mirrorlist: https://0x0.st/XTop.txt

file /var/lib/pacman/sync/*
/var/lib/pacman/sync/core.db:            gzip compressed data, from Unix, original size modulo 2^32 593920
/var/lib/pacman/sync/endeavouros.db:     XZ compressed data, checksum CRC64
/var/lib/pacman/sync/endeavouros.db.sig: HTML document, ASCII text, with very long lines (4070)
/var/lib/pacman/sync/extra.db:           gzip compressed data, from Unix, original size modulo 2^32 32952320
/var/lib/pacman/sync/multilib.db:        gzip compressed data, from Unix, original size modulo 2^32 655360

Try:

sudo rm -r /var/lib/pacman/sync

sudo pacman -Syyu

1 Like

That’s better. I now get to the Proceed with installation.


Total Download Size:   1374.12 MiB
Total Installed Size:  3188.40 MiB
Net Upgrade Size:       233.01 MiB

:: Proceed with installation? [Y/n] 

I will update and see how it goes.

1 Like

Back after a reboot. Thank you pebcak. This seems to have solved it.

1 Like

Glad it worked out!

And also, welcome to EnOS’ community @esunder !

:enos: :handshake:t5:

Thank you! I’ve actually been using EnOS problem free since March! Just got hung up this morning. :slight_smile:

1 Like

Although you have resolved your issue. I just wanted to let you know that you don’t have to update your mirrors before every update. I very rarely change mine. Also be on the lookout for .pacnew files after updates.

Often times you will have mirrorlist.pacnew and endeavouros-mirrorlist.pacnew after updates to the mirrors. These usually have changes to the mirrors in them, so you can know which mirrors are still active when things do go wrong.

2 Likes

So I can skip step #1 and #2 that I am currently performing?

And if the .pacnew files change after an update, I should then perform those steps?

Yes, you really only need to update your mirrors if you are having trouble with them.

No, usually you are supposed to look at what changed and if it is important then incorporate those changes into your config. Most people use some kind of diff tool to automatically handle it for easy changes, but you should inspect the files just to be sure.

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