2

I am using BlackArch Linux. When trying to download a package I get this error:

error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format

Thanks for helping!

1
  • Please edit your question and post the output of for file in core extra community multilib; do file /var/lib/pacman/sync/$file.db; done.
    – terdon
    Jul 22, 2021 at 13:28

1 Answer 1

2

This issue is caused by a bad domain in the mirror list.

  1. Remove existing sync files
    sudo rm -R /var/lib/pacman/sync/
    
  2. Edit your mirror list and move your country mirror to the top of the list (You can use any text editor)
    sudo gedit /etc/pacman.d/mirrorlist
    
  3. Now simply do
    sudo pacman -Syu
    
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .