Failed installation - failed to run command ‘mkinitcpio’: No such file or directory

Failed installation…

After an absence of several months I found I was missing EndeavourOS and downloaded endeavouros-2021.04.17±x86_64.iso and burned it to a DVD. As I could not remember how yto verify the download I took a chances that all would be O.K. as I had never had problems in the past, with any ISO in the past.

Began an online install, choosing thr MATE DE and Printer support. There were no error messages during the installatin, other than at the end. I saved the location of the logfile (https://termbin.com/yuuu9) to a thumb drive and closed the computer and shut down the vomputer

Below is the contents of the logfile.


ist&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "gvfs-smb") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "gvfs-smb") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package gvfs-smb" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "meld") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "meld") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package meld" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "cups") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "cups") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package cups" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "cups-filters") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "cups-filters") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package cups-filters" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "cups-pdf") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "cups-pdf") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package cups-pdf" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "ghostscript") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "ghostscript") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package ghostscript" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "gsfonts") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "gsfonts") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package gsfonts" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-engine") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-engine") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package foomatic-db-engine" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package foomatic-db" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-ppds") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-ppds") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package foomatic-db-ppds" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-nonfree") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-nonfree") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package foomatic-db-nonfree" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-nonfree-ppds") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-nonfree-ppds") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package foomatic-db-nonfree-ppds" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "gutenprint") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "gutenprint") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package gutenprint" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-gutenprint-ppds") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "foomatic-db-gutenprint-ppds") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package foomatic-db-gutenprint-ppds" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "splix") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "splix") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package splix" 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "pacman", "-Sy", "--needed", "--noconfirm", "system-config-printer") 
2021-06-17 - 15:52:22 [6]:     ..  Target cmd: ("pacman", "-Sy", "--needed", "--noconfirm", "system-config-printer") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘pacman’: No such file or directory
2021-06-17 - 15:52:22 [2]: void CalamaresPython::warning(const string&)
    WARNING: [PYTHON JOB]:  "Could not install package system-config-printer" 
2021-06-17 - 15:52:22 [6]: [PYTHON JOB]:  "Pretty name: Install packages., setting progress.." 
2021-06-17 - 15:52:22 [6]: [PYTHON JOB]:  "Install packages." 
2021-06-17 - 15:52:22 [6]: virtual void Calamares::JobThread::run()
    Starting job "user_pkglist" ( 16 / 33 ) 
2021-06-17 - 15:52:22 [6]: virtual Calamares::JobResult Calamares::PythonJob::exec()
    Job file "/usr/lib/calamares/modules/user_pkglist/main.py" 
2021-06-17 - 15:52:22 [6]:     ..  Job description from __doc__ "user_pkglist" = "Installing user packages. Please be patient!" 
2021-06-17 - 15:52:22 [6]: virtual void Calamares::JobThread::run()
    Starting job "Configuring LUKS key file." ( 17 / 33 ) 
2021-06-17 - 15:52:22 [6]: virtual Calamares::JobResult LuksBootKeyFileJob::exec()
    There are 0 LUKS partitions 
2021-06-17 - 15:52:22 [6]:     ..  Nothing to do for LUKS. 
2021-06-17 - 15:52:22 [6]: virtual void Calamares::JobThread::run()
    Starting job "luksopenswaphookcfg" ( 18 / 33 ) 
2021-06-17 - 15:52:22 [6]: virtual Calamares::JobResult Calamares::PythonJob::exec()
    Job file "/usr/lib/calamares/modules/luksopenswaphookcfg/main.py" 
2021-06-17 - 15:52:22 [6]: boost::python::api::object CalamaresPython::gettext_path()
    Determining gettext path from ("/root", "/usr/bin", "/usr/share/locale") 
2021-06-17 - 15:52:22 [6]:     ..  Found "en_NZ" in "/usr/share/locale/en_NZ" 
2021-06-17 - 15:52:22 [6]:     ..  Job description from pretty_name "luksopenswaphookcfg" = "Configuring encrypted swap." 
2021-06-17 - 15:52:22 [6]: virtual void Calamares::JobThread::run()
    Starting job "initcpiocfg" ( 19 / 33 ) 
2021-06-17 - 15:52:22 [6]: virtual Calamares::JobResult Calamares::PythonJob::exec()
    Job file "/usr/lib/calamares/modules/initcpiocfg/main.py" 
2021-06-17 - 15:52:22 [6]: boost::python::api::object CalamaresPython::gettext_path()
    Determining gettext path from ("/root", "/usr/bin", "/usr/share/locale") 
2021-06-17 - 15:52:22 [6]:     ..  Found "en_NZ" in "/usr/share/locale/en_NZ" 
2021-06-17 - 15:52:22 [6]:     ..  Job description from pretty_name "initcpiocfg" = "Configuring mkinitcpio." 
2021-06-17 - 15:52:22 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "sh", "-c", "which plymouth") 
2021-06-17 - 15:52:22 [6]:     ..  Finished. Exit code: 0 output:
 /usr/bin/plymouth
2021-06-17 - 15:52:22 [6]: [PYTHON JOB]:  "which plymouth exit code: 0" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Starting job "Creating initramfs with mkinitcpio." ( 20 / 33 ) 
2021-06-17 - 15:52:23 [6]: virtual Calamares::JobResult InitcpioJob::exec()
    Updating initramfs with kernel "linux" 
2021-06-17 - 15:52:23 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
    Running "chroot" ("/tmp/calamares-root-gzllfbp0", "mkinitcpio", "-P") 
2021-06-17 - 15:52:23 [6]:     ..  Target cmd: ("mkinitcpio", "-P") Exit code: 127 output:
 /usr/sbin/chroot: failed to run command ‘mkinitcpio’: No such file or directory
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Configure <pre>sudo</pre> users." 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Preparing groups." 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Create user zed" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Set password for user zed" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Set password for user root" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Set hostname zed-endeavouros" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "displaymanager" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "hwclock" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "services-systemd" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "grubcfg" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "bootloader" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
   Skipping non-emergency job "scripts" 
2021-06-17 - 15:52:23 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "umount" 
2021-06-17 - 15:52:23 [1]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    ERROR: Installation failed: "External command finished with errors." 
2021-06-17 - 15:52:23 [6]:     ..  - message: "External command finished with errors." 
2021-06-17 - 15:52:23 [6]:     ..  - details: Command <i>mkinitcpio</i> finished with exit code 127.
Output:
/usr/sbin/chroot: failed to run command ‘mkinitcpio’: No such file or directory
2021-06-17 - 15:52:23 [6]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    Calamares will quit when the dialog closes. 
2021-06-17 - 15:52:23 [8]: QML Component (default slideshow) deactivated
2021-06-17 - 15:52:23 [6]: void Config::doNotify(bool, bool)
    Notification not sent; completion: failed

All help from the Forum members will be much appreciated. If necessary, I will download the distributin again and, if someone is able to pint out to me how to verify the ISO, it will be the icing on the cake.

Mod note : Added proper code tag

Something fundamental failed, for example you tried to install on a partition that already had an installation on it (and so e.g. it detected a file conflict and didn’t install pacman).

Without knowing what you did step-by-step the best option would be for you to start again and make a note of your choices at each stage of the installation process.

It’s just below the download links on https://endeavouros.com/latest-release/ .

Thank you for your prompt reply. I was installing on a separate partition, /dev/sda5 (Linux Mint resides on /dev/sda6). Before starting the installer, I had formatted /dev/sda5 to ext 4. The only other choices I made was to install the MATE DE and Printers. Endeavour recognised the language and location.
However, I’ll try again and document the steps I take and report back.