# Installation Failed with pacstrap error

**URL:** <https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485>\
**Category:** EndeavourOS installation\
**Created:** [April 26, 2022, 10:47pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485 "2022-04-26T22:47:46Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiamondSlug](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/diamondslug/32/50180_2.png) [@DiamondSlug](https://forum.endeavouros.com/u/DiamondSlug)\
**Post date:** [April 26, 2022, 10:47pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/1 "2022-04-26T22:47:46Z")

</div>

Recently when I was trying to install EndeavourOS it keeps getting all kinds of pacstrap errors. A few days ago it was about a conflict between exfat-utils and exfatprogs, and now it becomes a libinih key problem?

```auto
...
2022-04-26 - 18:31:41 [6]: [PYTHON JOB]: "pacstrap: fuse-common-3.10.5-1-x86_64 downloading..." 
2022-04-26 - 18:31:41 [6]: [PYTHON JOB]: "pacstrap: base-2-2-any downloading..." 
2022-04-26 - 18:31:41 [6]: [PYTHON JOB]: "pacstrap: ca-certificates-20210603-1-any downloading..." 
2022-04-26 - 18:31:41 [6]: [PYTHON JOB]: "pacstrap: checking keyring..." 
2022-04-26 - 18:31:41 [6]: [PYTHON JOB]: "pacstrap: downloading required keys..." 
2022-04-26 - 18:31:41 [6]: [PYTHON JOB]: "pacstrap: :: Import PGP key 0F65C7D881506130, \"Maxime Gauduin <alucryd@archlinux.org>\"? [Y/n]" 
2022-04-26 - 18:31:41 [6]: [PYTHON JOB]: "pacstrap: checking package integrity..." 
2022-04-26 - 18:31:46 [6]: [PYTHON JOB]: "pacstrap: error: libinih: key \"95220BE99CE6FF778AE0DC670F65C7D881506130\" is unknown" 
2022-04-26 - 18:31:48 [6]: [PYTHON JOB]: "pacstrap: :: Import PGP key 95220BE99CE6FF778AE0DC670F65C7D881506130? [Y/n]" 
2022-04-26 - 18:31:48 [6]: [PYTHON JOB]: "pacstrap: :: File /var/cache/pacman/pkg/libinih-55-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature))." 
2022-04-26 - 18:31:48 [6]: [PYTHON JOB]: "pacstrap: Do you want to delete it? [Y/n] error: failed to commit transaction (invalid or corrupted package)" 
2022-04-26 - 18:31:48 [6]: [PYTHON JOB]: "pacstrap: Errors occurred, no packages were upgraded." 
2022-04-26 - 18:31:48 [6]: [PYTHON JOB]: "pacstrap: ==> ERROR: Failed to install packages to new root" 
2022-04-26 - 18:31:48 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Generate machine-id." 
...
2022-04-26 - 18:31:48 [1]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    ERROR: Installation failed: "Failed to run pacstrap" 
2022-04-26 - 18:31:48 [6]: .. - message: "Failed to run pacstrap" 
2022-04-26 - 18:31:48 [6]: .. - details: Failed to run pacman
2022-04-26 - 18:31:48 [6]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    Calamares will quit when the dialog closes. 
2022-04-26 - 18:31:48 [6]: QML Component (default slideshow) deactivated
2022-04-26 - 18:31:48 [6]: void Config::doNotify(bool, bool)
    Notification not sent; completion: failed 

```

I was trying to install the BSPWM community edition but I think any other version with online installation has the same problem. The only workaround for me right now is to use offline installation. I tried it on both a virtual machine (VirtualBox) and a physical machine, and I got the same results. Any idea what is causing this? (Also, this is my first post here so if I wrote anything inappropriate please be nice to me :P)

Update:  
For anyone still not sure how to fix this, do the following steps:

1. before running calamares installer, open a terminal and run

```auto
sudo pacman -Sy archlinux-keyring

```

1. then you start the calamares as usual and install either online or offline

Note: yes you run the command outside the installer

Big thank to @pycrk for the solution and @Greyed for clarification

Update2:  
It seems the issue has been fixed by HotFix:  
[Apollo ISO bug is fixed for most users and also a workaround for those who need it](https://forum.endeavouros.com/t/apollo-iso-bug-is-fixed-for-most-users-and-also-a-workaround-for-those-who-need-it/26503)

---

<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:** [April 26, 2022, 10:49pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/2 "2022-04-26T22:49:49Z")

</div>

Welcome to the forum!

Which ISO are you using?

---

<div class="post-metadata">

**Author:** ![DiamondSlug](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/diamondslug/32/50180_2.png) [@DiamondSlug](https://forum.endeavouros.com/u/DiamondSlug)\
**Post date:** [April 26, 2022, 10:55pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/3 "2022-04-26T22:55:26Z")

</div>

I’m using EndeavourOS\_Apollo\_22\_1.iso. I tried an old one but it had the same issue. As I mentioned the offline installation works and the problem seems to be something related to the sources of pactrap.

---

<div class="post-metadata">

**Author:** ![cyangalaxy](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/cyangalaxy/32/50184_2.png) [@cyangalaxy](https://forum.endeavouros.com/u/cyangalaxy)\
**Post date:** [April 26, 2022, 11:42pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/4 "2022-04-26T23:42:35Z")

</div>

I have the same problem right now (even same error in log), I use VMware as a VM software.

I’ve created multiple Virtual Machines with different VM settings & different Installation settings.

I got it working on one of the VMs, but I don’t know what made the installation in that VM work…

If I find the solution, I will update you.

---

<div class="post-metadata">

**Author:** ![pycrk](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pycrk/32/71109_2.png) [@pycrk](https://forum.endeavouros.com/u/pycrk)\
**Post date:** [April 26, 2022, 11:46pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/5 "2022-04-26T23:46:11Z")

</div>

Hi @DiamondSlug welcome 🙂

i have updated my EOS installation now and become also an error. with the same package: libinih

the file is corrupted or invalid PGP Signature

```auto
Fehler: libinih: signature from "Maxime Gauduin <alucryd@gmail.com>" is marginal trust
:: Datei /var/cache/pacman/pkg/libinih-55-2-x86_64.pkg.tar.zst ist beschädigt (Ungültiges oder beschädigtes Paket (PGP-Signatur)).

```

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [April 26, 2022, 11:48pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/6 "2022-04-26T23:48:16Z")

</div>

![welcome](https://forum.endeavouros.com/uploads/default/original/3X/8/4/8471295c1a83900560b2cb9a2f85d0a4793105f1.jpeg)

---

<div class="post-metadata">

**Author:** ![pycrk](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pycrk/32/71109_2.png) [@pycrk](https://forum.endeavouros.com/u/pycrk)\
**Post date:** [April 26, 2022, 11:51pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/7 "2022-04-26T23:51:59Z")

</div>

i have fix it, i updated the keyring and my system without any problem.

sudo pacman -Sy archlinux-keyring

sudo pacman -Syu

---

<div class="post-metadata">

**Author:** ![cyangalaxy](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/cyangalaxy/32/50184_2.png) [@cyangalaxy](https://forum.endeavouros.com/u/cyangalaxy)\
**Post date:** [April 27, 2022, 12:18am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/8 "2022-04-27T00:18:56Z")

</div>

Thank you! The first command worked!

I’d like to to know more about how this error occurred. Was it because the core library package “libinih” got updated and therefore got a new PGP-key, and the Installer is checking it against the outdated PGP-key that came with the ISO ? I’m just curious 🙂

---

<div class="post-metadata">

**Author:** ![DiamondSlug](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/diamondslug/32/50180_2.png) [@DiamondSlug](https://forum.endeavouros.com/u/DiamondSlug)\
**Post date:** [April 27, 2022, 1:01am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/9 "2022-04-27T01:01:51Z")

</div>

Just tried it on a physical machine and it works! Again, thank you so much! 😃

---

<div class="post-metadata">

**Author:** ![exzemated](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/e/edb3f5/32.png) [@exzemated](https://forum.endeavouros.com/u/exzemated)\
**Post date:** [April 27, 2022, 3:58am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/10 "2022-04-27T03:58:21Z")

</div>

did you end up doing the offline installation and running the command? if so, how would you be able to run the bspwm installer after that?

---

<div class="post-metadata">

**Author:** ![sradjoker](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/sradjoker/32/64224_2.png) [@sradjoker](https://forum.endeavouros.com/u/sradjoker)\
**Post date:** [April 27, 2022, 8:59am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/11 "2022-04-27T08:59:19Z")

</div>

With the Offline installer you can only install the Xfce edition. All other editions require the online installer.

---

<div class="post-metadata">

**Author:** ![Greyed](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/greyed/32/50199_2.png) [@Greyed](https://forum.endeavouros.com/u/Greyed)\
**Post date:** [April 27, 2022, 9:38am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/12 "2022-04-27T09:38:39Z")

</div>

I came here to post about this. I ran in to the same issue. Silly question - shouldn’t the installer update keys prior to downloading anything from the live environment? I get that this probably doesn’t happen often (keys being rotated my guess) but still, seems a sensible step to take.

---

<div class="post-metadata">

**Author:** ![pycrk](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pycrk/32/71109_2.png) [@pycrk](https://forum.endeavouros.com/u/pycrk)\
**Post date:** [April 27, 2022, 9:39am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/13 "2022-04-27T09:39:00Z")

</div>

Hi @cyangalaxy,

yes the PGP Key from the package libinih was new and the archlinux-keyring(on my laptop) was outdated, when the system compares the keys, the system gets in trouble. I am not sure about the procedure in the ISO installer.

[https://wiki.archlinux.org/title/Pacman/Package\_signing#Upgrade\_system\_regularly](https://wiki.archlinux.org/title/Pacman/Package_signing#Upgrade_system_regularly)  
[https://wiki.archlinux.org/title/Pacman/Package\_signing](https://wiki.archlinux.org/title/Pacman/Package_signing)

---

<div class="post-metadata">

**Author:** ![Sxphie](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Sxphie](https://forum.endeavouros.com/u/Sxphie)\
**Post date:** [April 27, 2022, 9:45am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/14 "2022-04-27T09:45:48Z")

</div>

hey I’m experiencing the same error. How do I run these commands within the calamares installer?

---

<div class="post-metadata">

**Author:** ![Greyed](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/greyed/32/50199_2.png) [@Greyed](https://forum.endeavouros.com/u/Greyed)\
**Post date:** [April 27, 2022, 9:51am UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/15 "2022-04-27T09:51:44Z")

</div>

It is outside the installer. On the lower left corner of the live environment there are a few pinned icons to the task bar. One is for the terminal. Open the terminal and run:

```
sudo pacman -Sy archlinux-keyring

```

I would advise running the “Update Mirrors” task in the Welcome app before doing so. If you don’t you run the risk of hitting an unresponsive mirror.

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [April 27, 2022, 1:36pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/16 "2022-04-27T13:36:50Z")

</div>

> [@pycrk](#):
>
> I am not sure about the procedure in the ISO installer.

I guess they will fix it if needs a fix.  
FWIW as from your posted link, I took the time and set this command in [pacseek](https://forum.endeavouros.com/t/pacseek-a-terminal-user-interface-for-searching-and-installing-arch-linux-packages/25391) settings:

```auto
sudo pacman ---needed Sy archlinux-keyring && sudo pacman -Su

```

If having other repos, add their keyrings packages in the command. 😉

---

<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:** [April 27, 2022, 2:14pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/17 "2022-04-27T14:14:36Z")

</div>

See [https://forum.endeavouros.com/t/apollo-iso-bug-is-fixed-for-most-users-and-also-a-workaround-for-those-who-need-it/](https://forum.endeavouros.com/t/apollo-iso-bug-is-fixed-for-most-users-and-also-a-workaround-for-those-who-need-it/)

---

<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:** [April 29, 2022, 2:14pm UTC](https://forum.endeavouros.com/t/installation-failed-with-pacstrap-error/26485/18 "2022-04-29T14:14:52Z")

</div>

Closed on April 29, 2022, 2:14pm UTC

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