On 1/9/26 1:02 PM, David C Rankin wrote:
All, Devs,

  From earlier discussions, I thought the empty stray directory problem in /var/cache/pacman/pkg had been identified and solved. But I was hit again today with directories created this year, e.g. sudo pacman -Sc

error: could not open file /var/cache/pacman/pkg/download-peUZUV: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-uq8lgk: Error reading fd 7

   Where, e.g.:

$ sudo ls -al /var/cache/pacman/pkg/download-peUZUV
total 352
drwx------ 2 alpm alpm   4096 Jan  1 03:42 .
drwxr-xr-x 4 root root 352256 Jan  8 21:56 ..

  I went ahead and just removed both directories. If there are any logs you are interested in, let me know, but I know the commit that led to this has already been identified. I'm just not sure of the fix.




About a week ago? I had the same experience for the first time too. I just deleted it then, but checking it again now, it looks like this.

```
$ sudo ls -ld /var/cache/pacman/pkg/download-* | wc -l
63


$ sudo ls -ld /var/cache/pacman/pkg/download-* | head
drwx------ 2 alpm alpm 4096 Jan 9 11:48 /var/cache/pacman/pkg/download-28I5Oo drwx------ 2 alpm alpm 4096 Jan 7 00:12 /var/cache/pacman/pkg/download-3ZkRUE drwx------ 2 alpm alpm 4096 Dec 27 10:35 /var/cache/pacman/pkg/download-4aMUAG drwx------ 2 alpm alpm 4096 Dec 29 01:46 /var/cache/pacman/pkg/download-5JBYpv drwx------ 2 alpm alpm 4096 Dec 24 16:23 /var/cache/pacman/pkg/download-5w81q8 drwx------ 2 alpm alpm 4096 Dec 24 00:49 /var/cache/pacman/pkg/download-5ZHjo0 drwx------ 2 alpm alpm 4096 Jan 3 10:58 /var/cache/pacman/pkg/download-6n979v drwx------ 2 alpm alpm 4096 Dec 23 16:55 /var/cache/pacman/pkg/download-7pWCZl drwx------ 2 alpm alpm 4096 Jan 4 01:11 /var/cache/pacman/pkg/download-8TyCD4 drwx------ 2 alpm alpm 4096 Dec 23 16:53 /var/cache/pacman/pkg/download-8zjKSH


$ 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-wkipue: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-yC3b43: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-7pWCZl: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-CWoUmQ: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-i4u1Jc: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-kx8Qmw: Error reading fd 7 error: could not open file /var/cache/pacman/pkg/download-RbJkbg: Error reading fd 7
(... snip)

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n]
removing unused sync repositories...
```


--
dontdieych

Reply via email to