mhwd script fails during install due to missing packages
While looking at another issue with Calamares failing to install (for reference see profiles-and-settings/iso-profiles#182 (closed)) it is observed the mhwd script fails in setting up drivers due to missing packages
[m[0;32m:: Synchronizing package databases...
[m[0;32m mhwd downloading...
[m[0;32merror: target not found: vulkan-nouveau
[m[0;32mwarning: libva-mesa-driver-1:24.1.1-1 is up to date -- skipping
[m[0;32merror: target not found: libva-vdpau-driver
[m[0;32merror: target not found: lib32-vulkan-nouveau
[m[0;32merror: target not found: lib32-libva-vdpau-driver
[m[0;32mError: pacman failed!
[m[1m[31mError: [mscript failed!
The relevant excerpt is this
2024-07-26 - 18:58:05 [6]: virtual void Calamares::JobThread::run()
Starting job "mhwdcfg" ( 30 / 36 )
2024-07-26 - 18:58:05 [6]: virtual Calamares::JobResult Calamares::PythonJob::exec()
Job file "/usr/lib/calamares/modules/mhwdcfg/main.py"
2024-07-26 - 18:58:05 [6]: .. Job description from __doc__ "mhwdcfg" = "Configure the hardware"
2024-07-26 - 18:58:05 [6]: .. Running ("mhwd", "-a", "pci", "nonfree", "0200", "--pmconfig", "/opt/mhwd/pacman-mhwd.conf")
2024-07-26 - 18:58:06 [6]: .. Running ("mhwd", "-a", "pci", "nonfree", "0280", "--pmconfig", "/opt/mhwd/pacman-mhwd.conf")
2024-07-26 - 18:58:07 [6]: .. Running ("mhwd", "-a", "pci", "nonfree", "0300", "--pmconfig", "/opt/mhwd/pacman-mhwd.conf")
2024-07-26 - 18:58:07 [6]: .. Target cmd: ("mhwd", "-a", "pci", "nonfree", "0300", "--pmconfig", "/opt/mhwd/pacman-mhwd.conf") Exit code: 1 output:
[1m[31mWarning: [mconfig '/var/lib/mhwd/db/pci/network_drivers/r8168/MHWDCONFIG' is invalid!
[1m[31mWarning: [mconfig '/var/lib/mhwd/db/pci/network_drivers/rt3562sta/MHWDCONFIG' is invalid!
[1m[31m> [mUsing config 'video-hybrid-amd-nvidia-prime' for device: 0000:01:00.0 (0300:10de:2860) Display controller nVidia Corporation
[1m[31m> [mUsing config 'video-hybrid-amd-nvidia-prime' for device: 0000:05:00.0 (0300:1002:1681) Display controller ATI Technologies Inc
[1m[31m> [mDependencies to install: video-linux
[1m[31m> [mInstalling dependency video-linux...
[0;32mwarning: database file for 'core' does not exist (use '-Sy' to download)
[m[0;32mwarning: database file for 'extra' does not exist (use '-Sy' to download)
[m[0;32mwarning: database file for 'multilib' does not exist (use '-Sy' to download)
[m[0;32mSourcing /etc/mhwd-x86_64.conf
[m[0;32mHas lib32 support: true
[m[0;32mSourcing /var/lib/mhwd/db/pci/graphic_drivers/video-linux/MHWDCONFIG
[m[0;32mProcessing classid: 0300
[m[0;32mSourcing /var/lib/mhwd/scripts/include/0300
[m[0;32mProcessing classid: 0380
[m[0;32mProcessing classid: 0302
[m[0;32m:: Synchronizing package databases...
[m[0;32m mhwd downloading...
[m[0;32merror: target not found: vulkan-nouveau
[m[0;32mwarning: libva-mesa-driver-1:24.1.1-1 is up to date -- skipping
[m[0;32merror: target not found: libva-vdpau-driver
[m[0;32merror: target not found: lib32-vulkan-nouveau
[m[0;32merror: target not found: lib32-libva-vdpau-driver
[m[0;32mError: pacman failed!
[m[1m[31mError: [mscript failed!
2024-07-26 - 18:58:07 [6]: .. Running ("mhwd", "-a", "pci", "nonfree", "0302", "--pmconfig", "/opt/mhwd/pacman-mhwd.conf")
2024-07-26 - 18:58:08 [6]: .. Running ("mhwd", "-a", "pci", "nonfree", "0380", "--pmconfig", "/opt/mhwd/pacman-mhwd.conf")
Reference
https://forum.manjaro.org/t/installing-on-a-lenovo-legion-laptop/166089
The complete log is provided by the OP as link to termbin (expiration unknown)