Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: make full apt upgrade opt-in - #27

Merged
boGSer98 merged 1 commit into
19.0from
fix/skip-full-apt-upgrade-by-default
Jun 4, 2026
Merged

boGSer98 merged 1 commit into
19.0from
fix/skip-full-apt-upgrade-by-default

Conversation

@boGSer98

@boGSer98 boGSer98 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Makes full apt-get upgrade opt-in via RUN_APT_UPGRADE="False" by default
  • Keeps apt-get update and dependency installs enabled, but skips upgrading all existing packages during unattended Odoo installation
  • Documents the new flag and adds a regression test for man-db/package-trigger avoidance

Root Cause

The installer was still running a full apt-get upgrade -y early in the install. Even with non-interactive apt and bounded lock waits, a full OS package upgrade can spend a long time in dpkg package triggers such as man-db, which makes the installer look stuck at Processing triggers for man-db ... on minimal/customer servers. The Odoo installer only needs to install its dependencies, not upgrade every already-installed package.

Test Plan

  • python3 -m unittest tests.test_installer_features.InstallerFeatureTests.test_full_apt_upgrade_is_opt_in_to_avoid_man_db_trigger_hangs -v
  • python3 -m unittest tests/test_installer_features.py -v
  • bash -n odoo_install.sh
  • scripts/validate.sh
  • git diff --check

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@boGSer98
boGSer98 merged commit dc479be into 19.0 Jun 4, 2026
2 checks passed
@boGSer98
boGSer98 deleted the fix/skip-full-apt-upgrade-by-default branch June 4, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant