When I run sudo pacman -Sc, I get the following error
$ sudo pacman -Sc
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] y
removing old packages from cache...
error: could not open file /var/cache/pacman/pkg/download-4OLa2G: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-XSO4gN: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-oWfncl: Error reading fd 7
Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] y
removing unused sync repositories...
I get the same or similar here. It’s probably just it cant read the it because it’s no longer in that repo.
[ricklinux@rick-ms7c37 ~]$ sudo pacman -Sc
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]
removing old packages from cache...
error: could not open file /var/cache/pacman/pkg/download-Rq5Ryo: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-ngTjC4: Error reading fd 7
Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n]