Pacman cannot access a repo from local file:///path/to/repo

Description:

Additional info:

Pacman v7 cannot access my Pacman repository in my local, but Pacman 6 has no issue.

  • Pacman v7.0.0
  • libalpm v15.0.0

Steps to reproduce:

  1. Step 1, My pacman config /etc/pacman.conf to add:
[zesko_repo]
Server = file:///media/share/zesko_pacman_repo 
  1. $ sudo pacman -Syu
:: Synchronizing package databases...
 zesko_repo.db failed to download
 core is up to date
 extra is up to date
error: failed retrieving file 'zesko_repo.db' from disk : Couldn't open file /media/share/zesko_pacman_repo/zesko_repo.db
error: failed to synchronize all databases (failed to retrieve some files)
  1. I tried to run $ sudo chown :alpm -R /media/share/zesko_pacman_repo, that does not fix this issue.

  2. Btrfs rollback to the old Pacman 6 that has no issue.

Is there any info on how to fix the problem?