Updating Debian: verification starts before installation
Verify the package-manager plan, application of updates, and product behaviour separately.
On the E-01 training VPS, updating began with an unexpected result: the package manager proposed installing nothing, although the server was running an older kernel. The new kernel was already on disk. A background service had installed it, and switching to it required a separate reboot.
I divided the work into three actions: inspect the package state, refresh the indexes and examine the plan, then prepare boot and check access after restarting. This makes it clear which action changes the system and what its result means. There was no manual package installation in this walkthrough.
Start with sources, package state and background work
Before changing anything, I read the APT sources, automatic-update settings and dpkg state. E-01 uses Debian trixie and deb822 sources. The configured suites are trixie, trixie-updates, trixie-backports and trixie-security, with main and the Debian archive keyring. Mirror addresses come from the existing lists:
cat /etc/apt/sources.list.d/debian.sources
cat /etc/apt/mirrors/debian.list /etc/apt/mirrors/debian-security.list
cat /etc/apt/apt.conf.d/20auto-upgrades
dpkg --audit
apt-mark showhold
The last two commands succeeded without output: dpkg reported no issues within its audit, and the held-package list was empty. Empty output has a specific meaning here; it does not replace checking services or a product.
Both APT::Periodic::Update-Package-Lists and APT::Periodic::Unattended-Upgrade were set to 1. APT history contained a completed background /usr/bin/unattended-upgrade transaction: curl, libraries and a new kernel package. This was separate automatic work, not a command I ran during this manual walkthrough. The current allowed origins include Debian and Debian-Security, so describing them as “security updates only” would be inaccurate.
Enabling backports does not mean upgrade selects every newer package from it. For the kernel and openssh candidates inspected here, backports had priority 100 and stable 500. That describes these candidates and settings, rather than guaranteeing the same selection for every package.
Refresh indexes and read the plan again
I ran the first simulation against existing local indexes. I then obtained separate approval to refresh them and ran a strict refresh:
sudo apt-get --error-on=any update
sudo apt-get -o Dir::Cache::pkgcache= -o Dir::Cache::srcpkgcache= -s --no-remove upgrade
The apt-get manual describes update as fetching indexes and -s as simulation. --error-on=any makes a refresh error fail the command; --no-remove prohibits removal. The empty cache settings in my simulation disabled the corresponding cache files.
The refresh returned exit code 0 with empty stderr. The subsequent simulation again reported:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Refreshing indexes therefore provided no reason to install packages. The dpkg state, APT sources and keyring were unchanged, and SSH remained available. I did not perform an unnecessary installation for demonstration. Zero candidates describes this plan with these sources; it does not guarantee the absence of every vulnerability.
The installed kernel and running kernel are separate states
The next decision required different commands:
uname -r
dpkg-query -W -f='${binary:Package} ${Version}\n' linux-image-6.12.111+deb13-amd64 linux-image-6.12.113+deb13-amd64 linux-image-amd64
cat /run/reboot-required.pkgs
uname -r returned 6.12.111+deb13-amd64. Both kernel packages were installed, while the linux-image-amd64 meta-package was version 6.12.113-1. The file /run/reboot-required.pkgs named linux-image-6.12.113+deb13-amd64. The package manager had already completed its work; the processor was still executing the previous kernel.
Prepare the menu and independent access
Before restarting, I checked the new kernel and initrd, the retained older pair for fallback, and GRUB configuration. The dpkg verification of the new package produced no messages. The default entry already selected the new kernel. Secure Boot was enabled and was not disabled.
The image configuration set the normal timeout to zero. To keep the menu accessible, I separately agreed and added /etc/default/grub.d/99-solution200-recovery-menu.cfg with two lines:
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
grub-mkconfig -o /var/backups/solution200-e01-reboot-v1/grub.cfg.candidate
grub-script-check /var/backups/solution200-e01-reboot-v1/grub.cfg.candidate
These commands ran as root; both returned exit code 0. Generator output is not reproduced here: the exit code does not imply empty stdout. The candidate was checked before installation.
The original generated configuration was saved. A new configuration was generated into a separate candidate, checked with grub-script-check, and only then installed. Exactly two timeout assignments changed from 0 to 10 in the generated result; the default kernel and all remaining content stayed the same. The separate recordfail branch retained timeout 30. This is not a recommendation to hand-edit generated grub.cfg.
The provider console supplies an independent channel if SSH does not return. I checked it before reboot. I retained the older kernel, but did not perform a fallback boot or a full rescue drill during this walkthrough.
An accepted reboot request is not a completed boot
As root, I submitted one normal request, without force or bypassing inhibitors:
systemctl reboot
Exit code 0 meant the request was accepted. I checked the outcome after the server returned: a fresh administrator SSH connection using a key, a verified host key, and a separate sudo check. Sudo required a password; the negative check without one was denied as expected.
The server ran 6.12.113+deb13-amd64, the root filesystem was writable, and system state was running. Failed units and dpkg audit produced no messages, and reboot markers were absent. I did not measure outage duration: the first attempted return connection already succeeded.
| Command after reboot | Observed result |
|---|---|
uname -r | 6.12.113+deb13-amd64 |
sudo id -u | 0 after entering the password |
systemctl is-system-running | running |
systemctl --failed --no-legend --plain --no-pager | Empty output |
dpkg --audit | Empty output |
Root SSH, password authentication and keyboard-interactive remained disabled; SSH required publickey. At the same time, a fresh local root-password login through the provider console worked. An old shell does not survive reboot: after logging in again, I obtained UID0, /dev/tty1 and the new kernel. Secure Boot remained enabled.
Empty failed units do not make the journal empty
The journal still contained PCI hotplug, AF_VSOCK generator, LPM fallback, regulatory.db and netplan MTU messages. They also appeared in the saved bounded initial excerpt. The unsupported WakeOnLan off message was not found in that excerpt, which does not establish whether it was new. A sudo password-required entry came from my negative check.
The tested TCP SSH, boot and filesystem worked. This does not mean every system feature was tested or the journal was warning-free. I did not remediate those individual messages during this walkthrough; a successful boot does not automatically resolve them.
On a server hosting products, these system checks still need to be followed by application user scenarios and background tasks. The training VPS helps examine maintenance mechanics, but does not replace checking a particular application and its data.
Carry the manual boundaries into the package CLI
After the practical work, the package CLI gained inspect, refresh-plan, refresh, plan, apply and verify modes. This is an illustrative read-only invocation with a lab profile and a prepared request file:
deploy-cli host packages inspect --profile lab --request-file /secure/packages-inspect.json
The profile name and path are examples, not ready-to-use access settings. On E-01, the new package CLI ran inspect only. Available, held, kept-back and pending package actions were 0; pending transaction and reboot pending were no. The operation did not change the installed package state.
Refreshing indexes and installing packages require separate plans and approvals. Apply is bound to a specific reviewed plan and versions; a changed initial state needs a new decision. A real upgrade with a new dependency was exercised only in a separate temporary environment with a signed repository. This CLI did not refresh indexes or install packages on E-01 itself. Apply does not reboot automatically; GRUB and reboot automation remain separate work.
The most useful outcome is being able to explain each change separately: what the background service had already done, what refresh achieved, why no install followed, and how the new boot was confirmed. That sequence lets the next maintenance session begin with the server's actual state.
Images from the E-01 walkthrough: