Im with a weird problema with base-devel

[:red_circle:] × 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)

[:red_circle:] × 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

now the error changed

[:red_circle:] × 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 :mage: took 0s
[:red_circle:] × 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

Try running: sudo pacman -Syu base-devel

return it

╰─λ 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)

Try running this.

sudo rm -rf /var/lib/pacman/local/base-devel-1-2/
sudo rm /var/cache/pacman/pkg/base-devel-1-2-any.pkg.tar.zst
sudo pacman -Syu base-devel

that really did fix it

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.