While calling "pacman -Sc" I got the following errors: [root@rhino ~]# 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-gLbPvZ: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-uTHinP: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-5u2OCC: Error reading fd 7 Database directory: /var/lib/pacman/ :: Do you want to remove unused repositories? [Y/n] y removing unused sync repositories... [root@rhino ~]# The reason is that the paths are actually pointing to directories: [root@rhino ~]# rm /var/cache/pacman/pkg/download-gLbPvZ rm: cannot remove '/var/cache/pacman/pkg/download-gLbPvZ': Is a directory [root@rhino ~]# rm -r /var/cache/pacman/pkg/download-gLbPvZ [root@rhino ~]# rm -r /var/cache/pacman/pkg/download-uTHinP [root@rhino ~]# rm -r /var/cache/pacman/pkg/download-5u2OCC After deleting the directories manually no more errors: [root@rhino ~]# 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... Database directory: /var/lib/pacman/ :: Do you want to remove unused repositories? [Y/n] removing unused sync repositories... [root@rhino ~]# Maybe pacman could check for directories as well to avoid manual clean up. Wish you all a happy new year, Victor PS: I would have loved to report this issue directly to the GitLab instance but I somehow fail in the process to register...
