[] × sudo pacman -S base-devel
warning: base-devel-1-2 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…
error: could not open file /var/lib/pacman/local/base-devel-1-2/files: No such file or directory
warning: could not fully load metadata for package base-devel-1-2
error: failed to prepare transaction (invalid or corrupted package)
[] × yay -S base-devel
Sync Explicit (1): base-devel-1-2
warning: base-devel-1-2 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…
error: could not open file /var/lib/pacman/local/base-devel-1-2/files: No such file or directory
warning: could not fully load metadata for package base-devel-1-2
error: failed to prepare transaction (invalid or corrupted package)
→ error installing repo packages
Does that file exist on your system? If not try just creating it, it’s an empty file on my system. sudo touch /var/lib/pacman/local/base-devel-1-2/files
[] × sudo pacman -S base-devel
warning: base-devel-1-2 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…
warning: could not fully load metadata for package base-devel-1-2
error: failed to prepare transaction (invalid or corrupted package)
╭─serejo1@serejo in ~ as took 0s
[] × yay -S base-devel
Sync Explicit (1): base-devel-1-2
warning: base-devel-1-2 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…
warning: could not fully load metadata for package base-devel-1-2
error: failed to prepare transaction (invalid or corrupted package)
→ error installing repo packages
╰─λ sudo pacman -Syu base-devel
:: Synchronizing package databases…
endeavouros is up to date
core is up to date
extra is up to date
multilib is up to date
warning: base-devel-1-2 is up to date – reinstalling
:: Starting full system upgrade…
warning: dracut: local (107-1) is newer than endeavouros (106-1)
resolving dependencies…
looking for conflicting packages…
warning: could not fully load metadata for package base-devel-1-2
error: failed to prepare transaction (invalid or corrupted package)