Pacman -Sc errors

running pacman -Sc after some time, I get this errors

LC_ALL=C 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-ckcW1u: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-jxnfEm: Error reading fd 7
error: could not open file /var/cache/pacman/pkg/download-1pYMLP: Error reading fd 7

is first time i get this errors, my pacman has ā€˜keep installed’ and the other packages got removed

I don’t know what they are and how long are there

should I delete them?

I don’t know if it was you, but this was reported on the pacman-dev mailing list: Bug report for "pacman -Sc" (not) handling directories - Pacman-dev - lists.archlinux.org

I believe these are just remnants of unfinished downloads, and they can be deleted without issues.

2 Likes

You can delete these (empty) directories. Creation seems to be a bug, it is already tracked upstream:

IMHO the weird error messages are a bug in itself but we’ll see how the developers handle this.

2 Likes

no, was not me but thanks to pointing it out

thanks, deleted and now no any more errors

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