Cannot update the system (could not open file /var/lib/pacman/local/pyside6-6.4.0.1-1/files: No such file or directory)

hello guy
sudo pacman -Syu showing me this error

error: could not open file /var/lib/pacman/local/pyside6-6.4.0.1-1/files: No such file or directory
warning: could not fully load metadata for package pyside6-6.4.0.1-1
error: failed to prepare transaction (invalid or corrupted package)

please help

Hi

I presume the directory is not on your system so create it and see if the error disappears.

sudo mkdir /var/lib/pacman/local;sudo chown root:root /var/lib/pacman/local/;sudo chmod 755 /var/lib/pacman/local/

This is the output

mkdir: cannot create directory ‘/var/lib/pacman/local’: File exists

try this:
sudo rm -r /var/lib/pacman/local/pyside6-6.4.0.1-1
sudo pacman -S --dbonly pyside6

Problem solved…
Thanks a lot :+1:

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