External Command had a non-0 exit code with dnf module.

When I'm trying to build an image that uses the new dnf module's replace feature, I get the following result from my CI build.
[21:34:17 g.i/a/morrigan:latest] => 68.21 Packages for argument 'hyprpaper' available, but not installed.
[21:34:17 g.i/a/morrigan:latest] => 68.21 Packages for argument 'hyprlock' available, but not installed.
[21:34:17 g.i/a/morrigan:latest] => 68.22 External command had a non-zero exit code
BLAH BLAH BLAH
[21:34:17 g.i/a/morrigan:latest] => 121 | RUN \
[21:34:17 g.i/a/morrigan:latest] => --------------------
[21:34:17 g.i/a/morrigan:latest] => ERROR: failed to solve: process "/bin/sh -c /tmp/scripts/run_module.sh 'dnf' '{\"type\":\"dnf\",\"repos\":{\"cleanup\":true,\"files\":[\"vscode.repo\"],\"copr\":[\"solopasha/hyprland\",\"wezfurlong/wezterm-nightly\"],\"nonfree\":\"rpmfusion\"},\"install\":{\"packages\":[\"fish\",\"xdg-desktop-portal-gtk\",\"wf-recorder\",\"cmake\",\"meson\",\"gcc-c++\",\"hyprland-devel\",{\"repo\":\"code\",\"packages\":[\"code\"]},\"hyprland-qt-support\",\"hyprpolkitagent\",\"satty\",\"aylurs-gtk-shell2\",\"cliphist\",\"astal\",\"astal-gjs\",\"astal-gtk4\",\"hyprpanel\",{\"repo\":\"copr:copr.fedorainfracloud.org:wezfurlong:wezterm-nightly\",\"packages\":[\"wezterm\"]}]},\"replace\":[{\"from-repo\":\"copr:copr.fedorainfracloud.org:solopasha:hyprland\",\"packages\":[\"hyprland\",\"hyprutils\",\"xdg-desktop-portal-hyprland\",\"hyprpaper\",\"hyprlock\",\"hypridle\",\"hyprgraphics\",\"aquamarine\",\"hyprland\",\"hyprpicker\",\"hyprsunset\"]}],\"remove\":{\"packages\":[\"firefox\",\"firefox-langpacks\",\"waybar\",\"dunst\",\"swaylock\",\"swayidle\",\"swaybg\"]}}'" did not complete successfully: exit code: 1
[21:34:17 g.i/a/morrigan:latest] => 68.21 Packages for argument 'hyprpaper' available, but not installed.
[21:34:17 g.i/a/morrigan:latest] => 68.21 Packages for argument 'hyprlock' available, but not installed.
[21:34:17 g.i/a/morrigan:latest] => 68.22 External command had a non-zero exit code
BLAH BLAH BLAH
[21:34:17 g.i/a/morrigan:latest] => 121 | RUN \
[21:34:17 g.i/a/morrigan:latest] => --------------------
[21:34:17 g.i/a/morrigan:latest] => ERROR: failed to solve: process "/bin/sh -c /tmp/scripts/run_module.sh 'dnf' '{\"type\":\"dnf\",\"repos\":{\"cleanup\":true,\"files\":[\"vscode.repo\"],\"copr\":[\"solopasha/hyprland\",\"wezfurlong/wezterm-nightly\"],\"nonfree\":\"rpmfusion\"},\"install\":{\"packages\":[\"fish\",\"xdg-desktop-portal-gtk\",\"wf-recorder\",\"cmake\",\"meson\",\"gcc-c++\",\"hyprland-devel\",{\"repo\":\"code\",\"packages\":[\"code\"]},\"hyprland-qt-support\",\"hyprpolkitagent\",\"satty\",\"aylurs-gtk-shell2\",\"cliphist\",\"astal\",\"astal-gjs\",\"astal-gtk4\",\"hyprpanel\",{\"repo\":\"copr:copr.fedorainfracloud.org:wezfurlong:wezterm-nightly\",\"packages\":[\"wezterm\"]}]},\"replace\":[{\"from-repo\":\"copr:copr.fedorainfracloud.org:solopasha:hyprland\",\"packages\":[\"hyprland\",\"hyprutils\",\"xdg-desktop-portal-hyprland\",\"hyprpaper\",\"hyprlock\",\"hypridle\",\"hyprgraphics\",\"aquamarine\",\"hyprland\",\"hyprpicker\",\"hyprsunset\"]}],\"remove\":{\"packages\":[\"firefox\",\"firefox-langpacks\",\"waybar\",\"dunst\",\"swaylock\",\"swayidle\",\"swaybg\"]}}'" did not complete successfully: exit code: 1
I'm not really sure why. This is the part of the recipe in question: https://github.com/AbooMinister25/morrigan/blob/main/recipes/dnf.yml And the CI run: https://github.com/AbooMinister25/morrigan/actions/runs/15031412187
Solution:
oh hey i think i fixed it
Jump to solution
1 Reply
Solution
aboo
aboo4d ago
oh hey i think i fixed it

Did you find this page helpful?