Victor Toni <[email protected]> wrote:

> 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.
> 

I am just a user. I have no role at archlinux what so ever.
Ignoring directories is an option. It could be the basic issue is these 
directories should have been cleaned up before pacman -Sc could run into them.
https://gitlab.archlinux.org/pacman/pacman/-/issues/297

> 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...

I don't know why, and where, you failed. I guess this is better discussed at 
[email protected], or bbs.archlinux.org.
Are you aware to the notice at 
https://gitlab.archlinux.org/users/sign_in about accountsupport? 

Reply via email to