I downloaded EndeavourOS around 2 years ago and haven’t been using it on this laptop for a while, so I expected a few hiccups when upgrading the packages and the overall system. I went down an immense rabbit hole trying to repair my system (learning new vocabulary along the way, since I’m sort of new to Arch), but I’ve come to the point where I feel I’m closer to fixing it. My issues ranged from dead mirrors to the GPGME error after sudo pacman -Syu, a slew of which I would assume I fixed since I don’t see the errors anymore(?) I feel this post’s solution got me really close, but it’s producing the error I’m getting now:
The issue I’m currently facing is right after running sudo pacman -Syu, I would get this error: could not open file /var/lib/pacman/sync/endeavouros.db: Unrecognized archive format and error: failed to prepare transaction (invalid or corrupted database) After some inspection, I realized the file type is HTML, which I’m very confused about.
Please let me know if I need to provide any more information as I’m truly clueless as to the remedy. I’m also trying to avoid flashing another EndeavourOs copy since I’d like to keep the files here. Any and all help is VERY much appreciated! (please let me know if there is some sort of post structure I should adopt given this is my first one)
:: Synchronizing package databases...
endeavouros 1262.0 B 1265 B/s 00:01 [-------------------------------------------------------------------] 100%
core is up to date
extra is up to date
multilib is up to date
error: could not open file /var/lib/pacman/sync/endeavouros.db: Unrecognized archive format
warning: archlinux-keyring-20240709-1 is up to date -- skipping
error: target not found: endeavouros-keyring
Interestingly enough, when I ran the command, all those Arch package updates went through! So, now we should tackle the EnOS packages… Should I uncomment that same section in pacman.conf and update again?
You are a godsend! It only took 3 iterations for it work! I really appreciate the help.
Some final thoughts: yay also happened to work as well (yay!) Should I do both yay and pacman -Syu weekly to avoid similar issues? Also, do mirrors change status over time (i.e. I have to rerun eos-rankmirrors before updating?)Thanks in advance
Archlinux is a fast moving rolling release so you should not let too long a time to pass between updates.
yay is a pacman wrapper with AUR support. That means whatever you could do with pacman you could do with yay and some more. You could use it to manage packages from the repoos that are specified in your /etc/pacman.conf and also those from AUR.
With pacman you could only manage the packages from the repos specified in /etc/pacman.conf.
It could happen, however not that frequent, that some mirrors are not “active” for various reasons.
You woudln’t need to refresh your mirrors before each updates. Only when you have some issues like low download speed, some mirrors being out of order etc. which may cause issues for you to update your system, you could try refreshing the mirrors.