Skip to content

nextcloud_update: fix the php-apcu cleanup - #2860

Merged
enoch85 merged 2 commits into
mainfrom
fix/update-php-apcu-typo
Sep 26, 2026
Merged

enoch85 merged 2 commits into
mainfrom
fix/update-php-apcu-typo

Conversation

@enoch85

@enoch85 enoch85 commented Sep 26, 2026

Copy link
Copy Markdown
Member

The updater's php-apcu cleanup never runs.

Root cause:

  • nextcloud_update.sh checks is_this_installed php-acpu (typo since 2021), which never matches.
  • Both purges fail anyway: the updater holds php* packages earlier on, and neither purge passes --allow-change-held-packages, and the second one not even -y. From cron that gives "Held packages were changed" or "Unable to satisfy dependencies".

Fix: check php-apcu, and purge both packages with -y --allow-change-held-packages, like the other php purges in the updater.

Existing installs: the next update removes php-apcu and php$PHPVER-apcu if they're installed.

Verified: on a 26.04 test VM with php-apcu installed, update.sh minor (run like the cron job) now removes php-apcu and php8.5-apcu and APCu is no longer loaded. With main's code both stay installed.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Assisted-by: ClaudeCode:claude-opus-5-5

The check tested for "php-acpu", which never exists, so php-apcu was
never purged. Both purges also failed on their own: the updater holds
php* packages earlier on and the updater runs unattended from cron, so
pass -y --allow-change-held-packages like the other php purges do.
@enoch85
enoch85 merged commit 831259f into main Sep 26, 2026
8 of 10 checks passed
@enoch85
enoch85 deleted the fix/update-php-apcu-typo branch September 26, 2026 14:37
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