# How do I remove corrupt / invalid packages

**URL:** <https://forum.endeavouros.com/t/how-do-i-remove-corrupt-invalid-packages/31333>\
**Category:** Newbie\
**Created:** [September 5, 2022, 1:42am UTC](https://forum.endeavouros.com/t/how-do-i-remove-corrupt-invalid-packages/31333 "2022-09-05T01:42:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Zircon34](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/zircon34/32/135623_2.png) [@Zircon34](https://forum.endeavouros.com/u/Zircon34)\
**Post date:** [September 5, 2022, 1:50am UTC](https://forum.endeavouros.com/t/how-do-i-remove-corrupt-invalid-packages/31333/3 "2022-09-05T01:50:00Z")

</div>

I had that with a laptop that I did not update for a month or more. Could that be the case?

If so, this helped me

> [@\[FAQ\] Issues with “signature is marginal trust”, "signature is unknown trust", or “invalid or corrupted package”](https://forum.endeavouros.com/t/faq-issues-with-signature-is-marginal-trust-signature-is-unknown-trust-or-invalid-or-corrupted-package/6756):
>
> If you’re getting an error similar to “Can’t update: signature from \*\*\* is marginal trust” or “invalid or corrupted package” you probably just need to update your package signing keys: sudo pacman -Sy archlinux-keyring endeavouros-keyring sudo pacman -Syu Also make sure your system clock is correct! Of course, it’s also possible that the package file actually is corrupt. Remove it from /var/cache/pacman/pkg/ so pacman will download it again. If no package file is explicitly mentioned then yo…

Don’t forget to `sudo grub-install` after the update worked but before rebooting to avoid the recent grub problem. Assuming you did not update for a while… Else you are going to be stuck in an unbootable system.

> [@The latest grub package update needs some manual intervention](https://forum.endeavouros.com/t/the-latest-grub-package-update-needs-some-manual-intervention/30689):
>
> (Grub 2:2.06.r322.gd9b4638c5-1) Grub Update Causing Unbootable OS On UEFI Systems A grub update today is causing boot issues on UEFI systems. It will make most systems unbootable so take care! with no intervention, the system will just boot directly into Firmware with no way to boot the OS. If you have this issue follow these instructions: First boot onto an EndeavourOS Live ISO. Ensure that you are booting the ISO via UEFI mode. Follow these instructions to chroot into your install: [ht…](https://discovery.endeavouros.com/system-rescue/arch-chroot-for-efi-uefi-systems/2021/03/)

---

_[View the full topic](https://forum.endeavouros.com/t/how-do-i-remove-corrupt-invalid-packages/31333)._
