APT cache changed, packages did not: accepting a separate CLI checkpoint
Accepting changed APT indexes on E-01: fresh signed evidence, a separate journal, verification and replay with installed packages and services preserved.
The HTTPS check on the educational E-01 stopped even though installed packages matched the accepted state. The APT index cache had changed. The old reader compared the complete retained package proof and correctly refused: new catalogue bytes cannot silently stand in for the previous ones.
Separate the catalogue from installed packages
The cache fingerprint covers relative filenames, contents and sizes. It is not just a modification-time check. In this run, dpkg, automatic package marks, configuration, keyrings, kernel and current boot matched the accepted state; the indexes differed. I therefore did not reinstall packages or refresh the catalogue to force a match with an old record.
The CLI gained a separate checkpoint for this change. It references the immutable predecessor and freshly verifies the selected signed index, package archive, its headers and installed files. Version, architecture, archive bytes and observed runtime stay exact. A change outside the admitted difference stops execution.
Start with a plan that does not write to the server
The invocation templates below keep private paths in variables. The ORIGINAL_PRIVATE_FLAGS array contains explicitly prepared parameters for the original SSH, FPM, activation, enable, minimal and private-application roles. It is not automatic credential discovery or a ready command for an arbitrary Debian host. The selected archive profile and predecessor reference must already be accepted; the reference file SHA256 is independently verified.
deploy-cli host application package-index-plan \
"${ORIGINAL_PRIVATE_FLAGS[@]}" \
--successor-file "$SIGNED_REPLACEMENT_PROFILE" \
--successor-reference "$ORIGINAL_SUCCESSOR_REFERENCE" \
--successor-reference-sha256 "$ORIGINAL_REFERENCE_SHA256" \
--plan-file "$NEW_INDEX_PLAN"
The actual plan completed without publishing a new server journal. Selected response fields follow; other fields are omitted. One selected signed index had changed on the host.
{
"status": "passed",
"write_performed": false,
"checks": {
"historical_journal_writes": "0",
"refresh_install_service_actions": "0",
"selected_archive_proof_fresh": "true",
"all_cached_indexes_authenticated": "false",
"package_install_authority": "false",
"whole_host_ready": "false"
}
}
selected_archive_proof_fresh concerns the selected archive and its signed source. The whole-cache fingerprint does not authenticate every unrelated index. Therefore all_cached_indexes_authenticated and package_install_authority remain false: accepting this catalogue does not authorize arbitrary future package installation.
Accept the state into a separate journal
After reviewing the plan, supply its exact SHA256 and explicit privilege approval. Writes are allowed only for the new checkpoint journal. Original package and application journals are not rewritten.
deploy-cli host application package-index-apply \
"${ORIGINAL_PRIVATE_FLAGS[@]}" \
--successor-file "$SIGNED_REPLACEMENT_PROFILE" \
--successor-reference "$ORIGINAL_SUCCESSOR_REFERENCE" \
--successor-reference-sha256 "$ORIGINAL_REFERENCE_SHA256" \
--plan-file "$NEW_INDEX_PLAN" \
--plan-sha256 "$NEW_INDEX_PLAN_SHA256" \
--approve-privileges
Apply observes package state again under the existing locks before beginning the journal and before committing it. The CLI then opens a fresh SSH connection to verify completion. On E-01, this run created only two files: an ownership marker and the new transaction journal.
Verification and replay
A standalone verify reads the committed checkpoint with the same plan and digest:
deploy-cli host application package-index-verify \
"${ORIGINAL_PRIVATE_FLAGS[@]}" \
--successor-file "$SIGNED_REPLACEMENT_PROFILE" \
--successor-reference "$ORIGINAL_SUCCESSOR_REFERENCE" \
--successor-reference-sha256 "$ORIGINAL_REFERENCE_SHA256" \
--plan-file "$NEW_INDEX_PLAN" \
--plan-sha256 "$NEW_INDEX_PLAN_SHA256"
After successful apply, standalone verify and apply replay returned the fields below. Replay checked existing completion without a new write; it did not create another checkpoint.
{
"status": "passed",
"write_performed": false
}
Supplying a changed plan SHA256 produced a separate refusal before writes:
{
"status": "failed",
"write_performed": false,
"error": "package index retained plan changed"
}
This is not automatic repair. If journal publication is interrupted or state changes after it begins, the incomplete journal needs separate investigation. The CLI does not reset it or blindly repeat the write.
What remained on the server
Before and after the operation, I compared 52 selected historical journal and configuration files. Content, permissions, ownership and collected metadata were preserved. The package snapshot and Nginx/PHP-FPM observations also matched. No package update, reload, restart or reboot occurred in this step. This compares selected data; it does not assert that the operating system performed no writes anywhere.
The frame summarizes saved actual results. Acceptance commands were not executed again while taking the screenshot.


HTTPS needs an explicit new reader
The old HTTPS reader still refuses. It does not discover the new checkpoint automatically or replace its original rules. The next step is to explicitly provide the new reference to an HTTPS reader that checks it together with retained completion and current runtime. That is why whole_host_ready remains false: accepting a cache checkpoint alone does not complete setup of the entire server.