For months now, I have been receiving this error every time I try to use the command -Scc :
error: could not remove /var/cache/pacman/pkg/download-byOH5d: Is a directory
error: could not remove /var/cache/pacman/pkg/download-ZkcgKu: Is a directory
error: could not remove /var/cache/pacman/pkg/download-hcUUzI: Is a directory
error: could not remove /var/cache/pacman/pkg/download-4udYJD: Is a directory
error: could not remove /var/cache/pacman/pkg/download-uvwPIu: Is a directory
error: could not remove /var/cache/pacman/pkg/download-uyqbJM: Is a directory
error: could not remove /var/cache/pacman/pkg/download-gQfw9u: Is a directory
error: could not remove /var/cache/pacman/pkg/download-ETInkG: Is a directory
error: could not remove /var/cache/pacman/pkg/download-55BcnD: Is a directory
error: could not remove /var/cache/pacman/pkg/download-uY9w5u: Is a directory
error: could not remove /var/cache/pacman/pkg/download-YtlsQu: Is a directory
error: could not remove /var/cache/pacman/pkg/download-wesP5T: Is a directory
error: could not remove /var/cache/pacman/pkg/download-lmn2Wt: Is a directory
error: could not remove /var/cache/pacman/pkg/download-O8gFCT: Is a directory
error: could not remove /var/cache/pacman/pkg/download-iKPAme: Is a directory
error: could not remove /var/cache/pacman/pkg/download-JKT2Y2: Is a directory
error: could not remove /var/cache/pacman/pkg/download-cWwI5a: Is a directory
error: could not remove /var/cache/pacman/pkg/download-iF1Yv4: Is a directory
error: could not remove /var/cache/pacman/pkg/download-K0FFbd: Is a directory
error: could not remove /var/cache/pacman/pkg/download-QALbyg: Is a directory
error: could not remove /var/cache/pacman/pkg/download-vSe6Gn: Is a directory
error: could not remove /var/cache/pacman/pkg/download-NQ9RWv: Is a directory
Using -Sc produces a similar result, only with “Is a directory” replaced with “Error reading fd 7” and “could not remove” replaced with “could not open”.
I have attempted to look online for any sort of solution. Most of what I find says to remove these files manually. However, this is not an option for me. Each of these folders has an orange-yellow lock icon and I am prevented from even opening the folders, let alone deleting them. So any attempts to delete manually fail each time.
Is there anything else I can try aside from reinstalling the OS?