Calamares unable to detect modules during Installation

I couldn’t open the Install System GUI, so I opened it in terminal instead and it reported some errors here:

[liveuser@eos-2021.04.17 locale]$ sh -c "pkexec calamares"
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
02:56:43 [1]: void Calamares::ModuleManager::loadModules()
    ERROR: Module "locale@locale" not found in module search paths. 
     "/usr/lib/calamares/modules" 
02:56:43 [1]: void Calamares::ModuleManager::loadModules()
    ERROR: Module "keyboard@keyboard" not found in module search paths. 
     "/usr/lib/calamares/modules" 
Bus error (core dumped)

There were also some errors when I wanted to open the welcome page:

[liveuser@eos-2021.04.17 locale]$ sh /usr/share/endeavouros/scripts/welcome --enable
/usr/bin/yad: error while loading shared libraries: /usr/lib/libopenjp2.so.7: cannot read file data: Input/output error
welcome exit code was: 127

I have installed the Endeavour OS iso file with the github link on https://endeavouros.com/latest-release/ and created the live USB using Rufus. Secure Boot is also disabled. This is the full log for Calamares

[liveuser@eos-2021.04.17 keyboard]$ sudo -E calamares -d
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 984
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 984
03:03:04 [6]: Calamares::Settings::Settings(const QString&, bool)
    Using Calamares settings file at "/usr/share/calamares/settings.conf" 
03:03:04 [6]: void Logger::setupLogfile()
    Using log file: "/home/liveuser/.cache/calamares/session.log" 
03:03:04 [6]: void CalamaresApplication::init()
    Calamares version: 3.2.39.3 
    ..  languages: "ar, as, ast, az, az_AZ, be, bg, bn, ca, ca@valencia, cs_CZ, da, de, el, en, en_GB, eo, es, es_MX, es_PR, et, eu, fa, fi_FI, fr, fur, gl, he, hi, hr, hu, id, is, it_IT, ja, ko, lt, ml, mr, nb, nl, pl, pt_BR, pt_PT, ro, ru, sk, sl, sq, sr, sr@latin, sv, tg, th, tr_TR, uk, vi, zh_CN, zh_TW" 
03:03:04 [6]: bool CalamaresUtils::initQmlModulesDir()
    Using Calamares QML directory "/usr/share/calamares/qml" 
03:03:04 [6]: Calamares::Branding::Branding(const QString&, QObject*)
    Using Calamares branding file at "/usr/share/calamares/branding/endeavouros/branding.desc" 
03:03:04 [2]: void Calamares::flavorAndSide(const YAML::Node&, const char*, Calamares::Branding::PanelFlavor&, Calamares::Branding::PanelSide&)
    WARNING: Branding setting for navigation is missing, using "widget" "bottom" 
03:03:04 [6]: Calamares::Branding::Branding(const QString&, QObject*)
    Loaded branding component "endeavouros" 
    ..  Loaded QRC translation "tz_" "en_US" 
    ..  Loaded QRC translation "calamares_" "en_US" 
    ..  STARTUP: initSettings, initQmlPath, initBranding done 
    ..  STARTUP: initModuleManager: module init started 
03:03:04 [6]: void Calamares::ModuleManager::doInit()
    Found 21 modules 
03:03:04 [6]: void CalamaresApplication::initView()
    STARTUP: initModuleManager: all modules init done 
03:03:04 [6]: void CalamaresApplication::initView()
    STARTUP: initJobQueue done 
03:03:04 [6]: CalamaresWindow::CalamaresWindow(QWidget*)
    Available desktop QSize(1366, 733) minimum size QSize(1024, 520) 
    ..  Proposed window size: 1200 700 
03:03:04 [6]: void CalamaresApplication::initView()
    STARTUP: CalamaresWindow created; loadModules started 
03:03:04 [2]: size_t Calamares::ModuleManager::checkDependencies()
    WARNING: Module "unpackfs" requires missing modules 
     "mount" 
03:03:04 [2]: void Calamares::ModuleManager::loadModules()
    WARNING: Some installed modules have unmet dependencies. 
03:03:04 [6]: void Calamares::Module::loadConfigurationFile(const QString&)
    Loaded module configuration "/usr/share/calamares/modules/welcome.conf" 
03:03:04 [6]: void Config::initLanguages()
    Matching locale QLocale(English, Latin, United States) 
    ..  Matched with index 14 "en_US" 
    ..  Branding using default, system locale not found: "en_US" 
    ..  Loaded QRC translation "tz_" "en_US" 
    ..  Loaded QRC translation "calamares_" "en_US" 
03:03:04 [6]: void Config::setLocaleIndex(int)
    Index 14 Selected locale QLocale(English, Latin, United States) 
    ..  Branding using default, system locale not found: "en_US" 
    ..  Loaded QRC translation "tz_" "en_US" 
    ..  Loaded QRC translation "calamares_" "en_US" 
03:03:04 [6]: virtual void Calamares::ViewModule::loadSelf()
    ViewModule "welcome@welcome" loading complete. 
03:03:04 [1]: void Calamares::ModuleManager::loadModules()
    ERROR: Module "locale@locale" not found in module search paths. 
     "/usr/lib/calamares/modules" 
03:03:04 [1]: void Calamares::ModuleManager::loadModules()
    ERROR: Module "keyboard@keyboard" not found in module search paths. 
     "/usr/lib/calamares/modules" 
Bus error

Thanks for any help! :grinning:

I am not an expert on this but I don’t think the installer runs calamares directly like that. I think it first runs a script which does some configuration before launching calamares.

The first command I did was the Install System GUI command I found by editing the app entry in app launcher menu, then the last command was a command that I found in another post where the asker was asked to run that line :thinking:

I don’t have the ISO in front of me right now. I thought the icon pointed to welcome and the welcome app asked if you wanted to do an online or offline install. If you selected online it downloaded a script called something like prepare-calamares from github, if you selected offline it used a copy of the script on the ISO. After that ran, then it runs calamares. That is going from memory though so it could be wrong.

That being said, this:

Sounds like a bad download or problem with writing the ISO to your flash drive.

3 Likes

Ah yes you were right, after tinkling with my USB for a whole, I realized that it has some bad blocks on it, and after I use another USB, it works well. Sorry for bothering and thanks for helping​:blush:

2 Likes

and yes we do some changes on calamares settings and configs related to install method before starting calamares, so the bare executable without doing this changes is not working.

1 Like

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