[Workaround] Error while updating: Unrecognized archive format, failed to prepare transaction (invalid or corrupted database)

Dear users,

Some of our mirrors are experiencing technical difficulties. As a consequence of this issue, you may see errors like below:

error: could not open file /var/lib/pacman/sync/Reborn-OS.db: Unrecognized archive format
error: failed to prepare transaction (invalid or corrupted database)

Until we diagnose and fix our mirrors, below is a workaround that you can run on a terminal to successfully update your RebornOS:

  1. Sort mirrors (this may appear to fail with an error, but please continue):
sudo refresh-mirrors

There may be an error, but please continue.

  1. Copy the partially populated mirrorlist to the correct directory:
sudo cp /tmp/pacman.d/reborn-mirrorlist /etc/pacman.d/reborn-mirrorlist
  1. Re-download the databases and update:
sudo pacman -Syyu
  1. After we announce that the mirrors are fixed, you can run the below again to replace the temporary mirrorlist with the full mirror-list:
sudo refresh-mirrors

If you have any difficulty following these instructions, please post on the Forum or on Discord for help.

Thank you!

1 Like