Skip to content

dnf install: use --nobest option - #11036

Merged
Al2Klimov merged 1 commit into
masterfrom
Al2Klimov-patch-3
Sep 24, 2026
Merged

Al2Klimov merged 1 commit into
masterfrom
Al2Klimov-patch-3

Conversation

@Al2Klimov

Copy link
Copy Markdown
Member

This fixes GitHub Actions errors like this: https://github.com/Icinga/icinga2/actions/runs/35977276290/job/107560618269

Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides systemd-pam = 252-67.el9_8.6.rocky.0.1 needed by systemd-devel-252-67.el9_8.6.rocky.0.1.x86_64 from appstream
  - nothing provides systemd-libs(x86-64) = 252-67.el9_8.6.rocky.0.1 needed by systemd-devel-252-67.el9_8.6.rocky.0.1.x86_64 from appstream (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

This fixes GitHub Actions errors like this:

Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides systemd-pam = 252-67.el9_8.6.rocky.0.1 needed by systemd-devel-252-67.el9_8.6.rocky.0.1.x86_64 from appstream
  - nothing provides systemd-libs(x86-64) = 252-67.el9_8.6.rocky.0.1 needed by systemd-devel-252-67.el9_8.6.rocky.0.1.x86_64 from appstream
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
@Al2Klimov Al2Klimov added this to the 2.17.0 milestone Sep 24, 2026
@Al2Klimov Al2Klimov added area/ci CI/CD backport-to-support/2.15 PRs with this label will automatically be backported to the v2.15 support branch. backport-to-support/2.16 PRs with this label will automatically be backported to the v2.16 support branch. labels Sep 24, 2026
@cla-bot cla-bot Bot added the cla/signed label Sep 24, 2026

@jschmidt-icinga jschmidt-icinga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant. I was wondering if there is a zypper [...] --allow-downgrade equivalent for dnf to make this more robust, but I never got to looking it up. This will do.

@Al2Klimov
Al2Klimov enabled auto-merge (rebase) September 24, 2026 12:19
@Al2Klimov

Copy link
Copy Markdown
Member Author

(What a few days AlmaLinux workstation administration can teach you... 😫)

@Al2Klimov
Al2Klimov merged commit 9a00dd0 into master Sep 24, 2026
27 checks passed
@Al2Klimov
Al2Klimov deleted the Al2Klimov-patch-3 branch September 24, 2026 13:55
@backbot-ci

backbot-ci Bot commented Sep 24, 2026

Copy link
Copy Markdown

Backport failed for support/2.15, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin support/2.15
git worktree add -d .worktree/backport-11036-to-support/2.15 origin/support/2.15
cd .worktree/backport-11036-to-support/2.15
git switch --create backport-11036-to-support/2.15
git cherry-pick -x 9a00dd02ac23d870e44414fc5cc3939f99be3733

@backbot-ci

backbot-ci Bot commented Sep 24, 2026

Copy link
Copy Markdown

Backport failed for support/2.16, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin support/2.16
git worktree add -d .worktree/backport-11036-to-support/2.16 origin/support/2.16
cd .worktree/backport-11036-to-support/2.16
git switch --create backport-11036-to-support/2.16
git cherry-pick -x 9a00dd02ac23d870e44414fc5cc3939f99be3733

@Al2Klimov Al2Klimov removed backport-to-support/2.15 PRs with this label will automatically be backported to the v2.15 support branch. backport-to-support/2.16 PRs with this label will automatically be backported to the v2.16 support branch. labels Sep 24, 2026
@Al2Klimov

Copy link
Copy Markdown
Member Author

Let's try to backport #10966 first...

@Al2Klimov Al2Klimov added the backport-to-support/2.16 PRs with this label will automatically be backported to the v2.16 support branch. label Sep 29, 2026
@backbot-ci

backbot-ci Bot commented Sep 29, 2026

Copy link
Copy Markdown

Successfully created backport PR for support/2.16:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI/CD backport-to-support/2.16 PRs with this label will automatically be backported to the v2.16 support branch. cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants