Failed to update a package due to insufficient space. How to fix it

Hello, after having a package fail to update due to insufficient space, I was able to get my computer working again. However, now that package always throws errors during my updates and during this most recent update attempt stopped me from updating at all. How can I update or fix this package, ideally without a full reinstall.

Screenshot_20251220_115310

Hello and welcome,

We could remove the problem paths, ex;

sudo rm -rf /var/lib/pacman/local/breeze-icons*
sudo rm -rf /var/cache/pacman/pkg/breeze-icons*

Then reinstall;

sudo pacman -Syu breeze-icons

I am not sure how to best share this. After inputting those first 2 commands, I attempted the 3rd. It goes through the update, allows me to input password, then gives me a giant list followed by “errors occurred, no packages were upgraded.” Looking at the ones listed, it seems that these files still exist in the filesystem. I imagine somewhere I can find an error log but the konsole doesn’t have enough space to display all the error messages.

Please show the whole thing somehow if possible .. you can also use a pastebin service if it is quite large, ex;

(besides the script there is also a link to a bunch of services you can use yourself)

We can just tell pacman to overwrite everything but it would be better if we could give it a particular scope of paths. Assuming thats the only issue afoot.

https://paste.cachyos.org/p/1f7e388.log

Hopefully that worked?

It seemes that was just the return from cachyos-bugreport.sh ?

Which is normally good for troubleshooting .. but it does not contain anything like the output of your attempted sync.

Ok maybe try something like this to create the log;

script -c "sudo pacman -Syu" pacman.log

Then paste it;

paste-cachyos pacman.log

OR if you do not have paste-cachyos then something like;

curl -sSF"file=@pacman.log" https://paste.cachyos.org

When i input the first line, it returned “error: failed to synchronize all databases (unable to lock database)”

Apparently I had octopi running. It worked after turning that off.

https://paste.cachyos.org/p/c8c4eb9.log

Ok, rather than an overwrite I think it would probably be easier to do an uninstall/reinstall dance.

sudo pacman -Rdd breeze-icons

Dont worry they are coming right back..

sudo pacman -Syu breeze-icons

When using the first command I get the error “error: target not found: breeze-icons” but attempting the second command still give the same errors from before

Ah so it does not think its currently installed. Right.
Makes sense as to why the exists on filesystem error is there.

Anyways here we go;

sudo pacman -Syu breeze-icons --overwrite '/usr/include/KF6/BreezeIcons/*' --overwrite '/usr/lib/cmake/KF6BreezeIcons/*' --overwrite '/usr/lib/libKF6BreezeIcons*' --overwrite '/usr/share/icons/breeze*'

Thank you! Seems like that fixed it!