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?
...
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:
- before running calamares installer, open a terminal and run
sudo pacman -Sy archlinux-keyring
- 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
