Could not fully load metadata for package python-pexpect

When updating with pacman (# pacman -Syu) I am getting the following error (pamac returns an identical error)

:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/python-pexpect-4.9.0-2/desc: Bad message
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package python-pexpect-4.9.0-2
error: failed to prepare transaction (invalid or corrupted package)

The package python-pexpect has been removed from the system and file “desc” causing the error also does not exist

Screenshot_2025-04-09_23-40-02

I have run the pacman-static bin file as suggested in pacman’s wiki page but this bin file ends up delivering the same error message.

No program in my system depends on python-pexpect. Is there a way to make pacman “forget” the need to check this python-pexpect file?

Thank you very much.

After booting from a Manjaro installation USB and running fsck the currupt file was fixed and the problem was solved (https://askubuntu.com/a/1359041). Thank you.

1 Like

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