# Problem updating, cannot remove corrupt file halting system upgrade

**URL:** <https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546>\
**Category:** Pacman & AUR helpers\
**Created:** [July 21, 2023, 9:07pm UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546 "2023-07-21T21:07:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiloneie](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kiloneie/32/47467_2.png) [@Kiloneie](https://forum.endeavouros.com/u/Kiloneie)\
**Post date:** [July 21, 2023, 9:07pm UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/1 "2023-07-21T21:07:05Z")

</div>

electron25-25.3.0-1-x86\_64.pkg.tar.zst is being reported by pacman to be corrupt. I tried removing it using “sudo rm”, at one point the command happened, but the file persisted, now using the same command, it tells me the file doesn’t exist, yet i can see it in there using Dolphin and pacman cannot proceed. I tried updating keyrings via "  
sudo pacman -Sy endeavouros-keyring", but they are updated so no problem there. I read online to change attributes of that file, but like with the “rm” command, it cannot find it anymore, but it’s still there…

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 21, 2023, 9:15pm UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/2 "2023-07-21T21:15:32Z")

</div>

Try:

```plaintext
sudo pacman -Sy archlinux-keyring
sudo pacman -Syu

```

If it doesn’t work, please post the full output here.

---

<div class="post-metadata">

**Author:** ![Kiloneie](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kiloneie/32/47467_2.png) [@Kiloneie](https://forum.endeavouros.com/u/Kiloneie)\
**Post date:** [July 21, 2023, 9:24pm UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/3 "2023-07-21T21:24:35Z")

</div>

I don’t understand how arch’s keyring was the solution here… but okay. I need a updating problems solutions cheatsheet somewhere. This happens every time i don’t update in months.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 21, 2023, 9:27pm UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/4 "2023-07-21T21:27:59Z")

</div>

> [@Kiloneie](#):
>
> I don’t understand how arch’s keyring was the solution here… but okay.

The vast the majority of the packages come from the Arch repos, not the EOS repo. The EOS repo only has a small number of packages that are either tools we create or things we package because we need them in the installer.

---

<div class="post-metadata">

**Author:** ![eznix](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/eznix/32/2043_2.png) [@eznix](https://forum.endeavouros.com/u/eznix)\
**Post date:** [July 21, 2023, 9:47pm UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/5 "2023-07-21T21:47:14Z")

</div>

> [@Kiloneie](#):
>
> This happens every time i don’t update in months.

That is the issue. The archlinux-keyring dates faster than every few months. 😆

The package was most likely not corrupt. But it was signed by a newer key than the keys in the old archlinux-keyring package.

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [July 21, 2023, 9:55pm UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/6 "2023-07-21T21:55:19Z")

</div>

> [@Kiloneie](#):
>
> sudo rm

this is not a command that should be use dto remove a package on archbased/arch and in general … you need to use package management to remove packages, same as installing them… If not you will break the package db

---

<div class="post-metadata">

**Author:** ![manuel](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/manuel/32/396_2.png) [@manuel](https://forum.endeavouros.com/u/manuel)\
**Post date:** [July 22, 2023, 8:27am UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/7 "2023-07-22T08:27:21Z")

</div>

For updating your system you could consider using command

```auto
eos-update

```

This updates keyrings first if needed. Then it updates the rest.

To see its options, use command

```auto
eos-update -h

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [July 24, 2023, 8:28am UTC](https://forum.endeavouros.com/t/problem-updating-cannot-remove-corrupt-file-halting-system-upgrade/43546/8 "2023-07-24T08:28:01Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
