# Corrupt package is preventing me from updating system

**URL:** <https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179>\
**Category:** Newbie\
**Created:** [August 21, 2019, 11:55pm UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179 "2019-08-21T23:55:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![roadhazard](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roadhazard](https://forum.endeavouros.com/u/roadhazard)\
**Post date:** [August 21, 2019, 11:55pm UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/1 "2019-08-21T23:55:48Z")

</div>

So my internet has been flaking out on me lately (I mention this because I think that is what caused my current problem).

I started up EOS and was doing: yay -Syu and got an error about an invalid signature (which popped up while my system was taking a bit too long to download updates). I re-ran the command and answered ‘Y’ to delete the package but the update still failed. Here is a copy/paste from the start and the steps I took to try and fix it but it’s still busted. ☹

[https://pastebin.com/8GzGQAqt](https://pastebin.com/8GzGQAqt)

---

<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:** [August 22, 2019, 12:10am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/2 "2019-08-22T00:10:38Z")

</div>

Looks like you need to run reflector to rank and organize the mirrors.  
Also you need to locally sign EndeavourOS gpg key. I guess you have not installed EndeavourOS but are converting from another system.

```auto
reflector -a4 -phttps -c <your-country> -f 10 --save /etc/pacman.d/mirrorlist
pacman-key --lsign-key EndeavourOS
pacman -Syyu

```

Hope I got syntax right. See reflector -h and man pacman-key for more info.

---

<div class="post-metadata">

**Author:** ![roadhazard](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roadhazard](https://forum.endeavouros.com/u/roadhazard)\
**Post date:** [August 22, 2019, 12:13am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/3 "2019-08-22T00:13:16Z")

</div>

> [@manuel](#):
>
> I guess you have not installed EndeavourOS but are converting from another system.

Nope, this was a fresh install of EOS using the August ISO. I’ll give the reflector thing a try here in a bit, thanks!

---

<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:** [August 22, 2019, 12:16am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/4 "2019-08-22T00:16:24Z")

</div>

Strange that the EOS key was not trusted… but that may be because of the commands you used.

---

<div class="post-metadata">

**Author:** ![roadhazard](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roadhazard](https://forum.endeavouros.com/u/roadhazard)\
**Post date:** [August 22, 2019, 12:19am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/5 "2019-08-22T00:19:14Z")

</div>

> [@manuel](#):
>
> Strange that the EOS key was not trusted…

Carried out the reflector command and no change. Same problem.

---

<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:** [August 22, 2019, 12:20am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/6 "2019-08-22T00:20:07Z")

</div>

Please show the output…

---

<div class="post-metadata">

**Author:** ![roadhazard](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roadhazard](https://forum.endeavouros.com/u/roadhazard)\
**Post date:** [August 22, 2019, 12:21am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/7 "2019-08-22T00:21:42Z")

</div>

When I ran the reflector command it didn’t give me anything back. Just sat there for a second then back to terminal.

---

<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:** [August 22, 2019, 12:22am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/8 "2019-08-22T00:22:52Z")

</div>

It saved new mirrorlist in /etc/pacman.d

---

<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:** [August 22, 2019, 12:23am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/9 "2019-08-22T00:23:58Z")

</div>

Didn’t do the other commands?

---

<div class="post-metadata">

**Author:** ![roadhazard](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roadhazard](https://forum.endeavouros.com/u/roadhazard)\
**Post date:** [August 22, 2019, 12:23am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/10 "2019-08-22T00:23:59Z")

</div>

> [@manuel](#):
>
> It saved new mirrorlist in /etc/pacman.d

```auto
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With: reflector -a4 -phttps -c 'United States' -f 10 --save /etc/pacman.d/mirrorlist
# When: 2019-08-22 00:21:44 UTC
# From: https://www.archlinux.org/mirrors/status/json/
# Retrieved: 2019-08-22 00:18:03 UTC
# Last Check: 2019-08-22 00:10:23 UTC

Server = https://iad.mirrors.misaka.one/archlinux/$repo/os/$arch
Server = https://mirror.kaminski.io/archlinux/$repo/os/$arch
Server = https://arch.mirror.square-r00t.net/$repo/os/$arch
Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = https://mirror.stephen304.com/archlinux/$repo/os/$arch
Server = https://arch.mirror.constant.com/$repo/os/$arch
Server = https://mirror.mia11.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirror.dal10.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://arlm.tyzoid.com/$repo/os/$arch
Server = https://reflector.luehm.com/arch/$repo/os/$arch

```

---

<div class="post-metadata">

**Author:** ![roadhazard](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roadhazard](https://forum.endeavouros.com/u/roadhazard)\
**Post date:** [August 22, 2019, 12:26am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/11 "2019-08-22T00:26:54Z")

</div>

> [@manuel](#):
>
> Didn’t do the other commands?

Freak-an-A am I stupid. No, I did not.

But now I did and I think that fixed it. So the big question, what caused it to fail originally? My crappy internet going out for a split second at a critical juncture?

---

<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:** [August 22, 2019, 12:28am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/12 "2019-08-22T00:28:40Z")

</div>

I guess it is the mirror issue.  
After install the mirrorlist is not optimal, so reflector helps a lot.

---

<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:** [August 22, 2019, 12:30am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/13 "2019-08-22T00:30:31Z")

</div>

And if the issue comes again, use reflector again to re-rank mirrors.

---

<div class="post-metadata">

**Author:** ![roadhazard](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@roadhazard](https://forum.endeavouros.com/u/roadhazard)\
**Post date:** [August 22, 2019, 12:30am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/14 "2019-08-22T00:30:54Z")

</div>

> [@manuel](#):
>
> I guess it is the mirror issue.  
> After install the mirrorlist is not optimal, so reflector helps a lot.

Ok, thanks for helping us newbies stay away from Windows and enjoy our time with Linux!!!

---

<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:** [August 22, 2019, 12:32am UTC](https://forum.endeavouros.com/t/corrupt-package-is-preventing-me-from-updating-system/1179/15 "2019-08-22T00:32:20Z")

</div>

You’re welcome! Glad to help.
