Got really annoyed when I run yay -Syu and encounter this error. And MORE HATE FOR MYSELF because I always forget how to fix this. That's the reason why I am here typing on my keyboard writing this post. I HAVE TO WRITE IT DOWN!

TL;DR

# find /var/cache/pacman/pkg/ -iname "*.part" -delete

And... WHALA!


Detail

Look for .part files (partially downloaded packages) in /var/cache/pacman/pkg/ and remove them (often caused by usage of a custom XferCommand in pacman.conf).


Some commands might help

  • pacman -Sy archlinux-keyring
  • pacman-key --refresh-keys

References


Share


Donation

如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。

If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.


Related Posts