[command]/usr/sbin/pacman -Sc --noconfirm
Packages to keep:
All locally installed packages
Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n] error: could not open file /var/cache/pacman/pkg/download-oI5TPm: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-XwpIUd: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-Y8E6Dy: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-ulF0Q5: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-9NvvM1: Error reading fd 7
The issue arises when run this command, is still open https://gitlab.archlinux.org/pacman/pacman/-/issues/297 Morganamilo/paru#1511
Let's see or make a workaround like
rm -f /var/cache/pacman/pkg/*.