Skip to content

Allow downgrades in apt-get simulation#904

Open
ikus060 wants to merge 1 commit intoCheckmk:masterfrom
ikus060:patch-1
Open

Allow downgrades in apt-get simulation#904
ikus060 wants to merge 1 commit intoCheckmk:masterfrom
ikus060:patch-1

Conversation

@ikus060
Copy link
Copy Markdown

@ikus060 ikus060 commented Apr 6, 2026

General information

On Debian, if any package should be downgraded, apt return a single error without listing package to be upgraded. e.g.:

E: Packages were downgraded and -y was used without --allow-downgrades.

You need to pass --allow-downgrades to let apt run the simulation.

Bug reports

Please include:

  • Your operating system name and version: Debian Trixie (13)
  • Any details about your local setup that might be helpful in troubleshooting: apt-preferences on the system allow downgrading
  • Detailed steps to reproduce the bug
  • An agent output or SNMP walk
  • The ID of a submitted crash report for reference (if applicable)

Proposed changes

  • What is the expected behavior? Regaless if any pacakge shoul be downlograded, mk_apt should report the number of pacakge to be upgraded.
  • What is the observed behavior? The plugin always returns "No updates pending for installation".

If any package should be downgraded, apt return a single error without listing package to be upgraded. e.g.:
```
E: Packages were downgraded and -y was used without --allow-downgrades.
```
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ikus060
Copy link
Copy Markdown
Author

ikus060 commented Apr 6, 2026

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants