Skip to content

[Bug]: install-qt-official search fails — "Failed to find package information in installer output" #1003

Description

@paulmasri

Bug description

install-qt-official with valid commercial credentials fails for Qt 6.8.5 and 6.8.6 on Linux x64 (GitHub Actions ubuntu-latest). The same workflow previously succeeded for 6.8.5 several months ago — the failure appeared without any changes on our side, after the Qt online installer was updated.

The installer runs search qt.qt6.686 but produces no parseable <availablepackages> XML output, causing commercial.py's gather_packages() to raise "Failed to find package information in installer output".

Likely cause: The Qt online installer binary is always fetched fresh (latest version — currently IFW 4.10.0). Since IFW 4.8.0 (May 2024), the search command defaults to searching aliases first, only falling back to packages if no alias matches (IFW CLI docs):

--type: Sets the type of the given arguments for commands supporting multiple argument types, like "search". By default aliases are searched first, and if no matching aliases are found, then packages are searched with the same search pattern.

It appears that with newer IFW versions, the fallback from alias search to package search no longer reliably produces the <availablepackages> XML that commercial.py expects.

A possible fix would be for aqtinstall to pass --type package to the installer's search command to bypass alias resolution. The relevant code is in commercial.py around gather_packages().

Related issues: #893 (same error, closed as environmental), #965 (search term type mismatch), #990 (PR for search term handling), #792 (IFW path changes)

Workaround: Fall back to open-source Qt 6.8.3 (the last non-commercial-only 6.8.x release) using the non-official installer path.

Expected behavior

The search qt.qt6.686 command should produce <availablepackages> XML output that aqtinstall can parse, leading to successful installation of Qt 6.8.6.

aqt and python version

aqtinstall(aqt) v3.3.0 on Python 3.12.13 [CPython GCC 13.3.0]

Operating System

Linux/Unix

Relevant log output

python3 -m aqt install-qt-official desktop linux_gcc_64 6.8.6 \
  --outputdir /home/runner/work/repo/repo/Qt/Qt --email *** --pw *** --modules qtmultimedia

INFO    : aqtinstall(aqt) v3.3.0 on Python 3.12.13 [CPython GCC 13.3.0]
INFO    : Downloading Qt installer to /home/runner/.local/share/aqt/tmp/qt-online-installer-linux-x64-online.run
INFO    : Redirected: qt.mirror.constant.com
INFO    : Running: ['/home/runner/.local/share/aqt/tmp/qt-online-installer-linux-x64-online.run',
          '--accept-licenses', '--accept-obligations', '--confirm-command', '--default-answer',
          '--email', '***', '--pw', '***', 'search', 'qt.qt6.686']
ERROR   : Installation failed: Failed to get package information: Failed to find package information in installer output
INFO    : Qt installation completed successfully
ERROR   : Error installing official installer: Failed to get package information: Failed to find package information in installer output
INFO    : Done
Error: Error: Failed to locate a Qt installation directory in /home/runner/work/repo/repo/Qt/Qt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions