You are not logged in.

#1 2025-12-16 08:15:27

mokkurkalve
Member
From: Bergen, Norway
Registered: 2009-08-29
Posts: 80

Pacman won't delete empty directories?

After upgrade to pacman 7.1.0.r7.gb9f7d4a-1:

sudo pacman -Scc

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] y
removing all files from cache...
error: could not remove /var/cache/pacman/pkg/download-ABawgh: Is a directory

That never happened before....
And these are empty directories with ownership like this:

drwx------ 2 alpm alpm 4.0K Dec 16 08:57 download-ABawgh

And must be manually deleted like "sudo rmdir download-ABawgh/" before pacman stops throwing errors.


"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts

Offline

#2 2025-12-16 09:08:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,619
Website

Re: Pacman won't delete empty directories?

This is a left over directory from cancelling a download in pacman-7.0.   Once you have deleted it, they should never be left behind again.

Offline

#3 2025-12-16 20:46:18

mokkurkalve
Member
From: Bergen, Norway
Registered: 2009-08-29
Posts: 80

Re: Pacman won't delete empty directories?

Allan wrote:

This is a left over directory from cancelling a download in pacman-7.0.   Once you have deleted it, they should never be left behind again.

Mm. I'm using yay, and I'm pretty shure yay are making new ones. Seems it happens when a AUR packages are updated. But I have to look into that later. Tired now. Anyway I will have to report that elsewhere, incase....


"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts

Offline

#4 2025-12-20 02:15:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,619
Website

Re: Pacman won't delete empty directories?

It appears this was a new regression introduced in pacman-7.1.0 - seems the patch fixed one bug and made a worse one!

Offline

#5 2025-12-21 14:23:58

mokkurkalve
Member
From: Bergen, Norway
Registered: 2009-08-29
Posts: 80

Re: Pacman won't delete empty directories?


"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts

Offline

#6 2025-12-21 22:38:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,619
Website

Re: Pacman won't delete empty directories?

It is nothing to do with yay...

Offline

Board footer

Powered by FluxBB