Understanding update terminology
On this page
APT finishes refreshing its indexes and reports that packages can be upgraded. You thought you had already updated the machine. The message makes sense once you separate the information APT downloads from the software it replaces.
By the end, you can identify what an update instruction changes and decide which review or restart belongs with it. This is a comparison lesson, not a request to upgrade your lab.
Before you start
Section titled “Before you start”Finish APT everyday operations, including its removal and dependency reset. Keep the B04 lab directory; no files or packages change on this page. Use the previous lesson’s verified upgrade plan as the worked example. It was declined rather than applied.
Name the thing that changes
Section titled “Name the thing that changes”In everyday conversation, “update” can mean several actions. In an APT command, the subcommand has a specific job. Start with the object it changes, then read the verb.
| Operation on Ubuntu | What changes |
|---|---|
Refresh indexes: sudo apt update |
Local metadata describing configured repositories. Installed program versions remain as they were. |
Inspect: apt list --upgradable |
Nothing is installed. The listing compares installed versions with versions offered by the local indexes. |
Upgrade packages: sudo apt upgrade |
Installed packages can be replaced with available versions. Required packages may be added; installed packages are not removed to resolve the upgrade. |
Resolve broader transitions: sudo apt full-upgrade |
Installed packages can be upgraded, added, and, when needed to resolve dependencies, removed. |
| Upgrade the Ubuntu release | The machine moves between Ubuntu releases using Ubuntu’s supported release-upgrade procedure. This is a separate administration task. |
| Restart an application or service | A running program is stopped and started so it can use its updated executable, libraries, or configuration. |
Read the first two rows together. A refresh makes the comparison better informed; the listing does not contact every publisher to discover versions independently of that metadata. If a refresh failed, a listing can still reflect older cached information.
The B12.2 recording illustrates these boundaries. Its refresh finds upgrade candidates. The list names installed packages with offered replacement versions. The upgrade plan proposes replacing those packages, then --assume-no declines. A successful metadata refresh and an intentionally aborted upgrade can therefore occur in the same session.
Review a package upgrade before changing files
Section titled “Review a package upgrade before changing files”An upgrade is not a second search or a download of descriptions. Accepting its plan changes managed software on disk. Read the affected packages, additions, removals, transfer size, and storage summary. Arrange recovery and interruption time before accepting changes to a machine you rely on.
The commands below are the review sequence already captured in B12.2:
apt list --upgradablesudo apt upgrade --assume-no--assume-no declines the plan rather than approving its confirmation. It is useful for learning what the operation proposes. It is not a rehearsal of every installation script or proof that an eventual upgrade cannot fail. For example, it does not demonstrate whether a service will return successfully after its configuration changes.
Predict first: if an upgrade plan is declined after a successful index refresh, have the installed versions changed?
Compare with your prediction
No. The indexes changed, but the proposed package upgrade was not applied. This is exactly the separation demonstrated by B12.2. A later plan can differ if repository metadata or the installed package set changes.
Packages may be kept back because completing their transition needs changes beyond the selected operation, or because distribution update policy delays an update. A kept-back count is a reason to investigate the relevant package and policy. It is not an instruction to switch immediately to a more permissive upgrade command.
Separate dependency transitions from release upgrades
Section titled “Separate dependency transitions from release upgrades”The phrase distribution upgrade is particularly ambiguous. APT’s full-upgrade can remove packages to resolve dependency changes using the configured sources. The related apt-get dist-upgrade name describes that kind of dependency resolution. Neither name alone means “move this Ubuntu machine to another release.”
An Ubuntu release upgrade follows a distribution-specific procedure, normally through do-release-upgrade on Ubuntu Server. It can change the release’s sources and perform migration checks as well as changing packages. You should follow the official instructions for the actual starting and target releases, including backups and support requirements. Do not manually rewrite repository release names as a substitute for that procedure.
This lesson does not run full-upgrade, dist-upgrade, or a release migration. It teaches you to recognize their different scopes. If an instruction says only “do a distribution upgrade,” establish whether it means a dependency transition within configured sources or a change of operating-system release before acting.
Account for running programs after installation
Section titled “Account for running programs after installation”A package upgrade changes files on disk. A running process may still use code loaded before the change. A service is a program that performs ongoing work, often without a visible application window. Affected services may need to restart before they use the updated code.
Some package operations restart services automatically. Others report actions for the administrator. A restart can interrupt active work or connections, so it belongs in the maintenance plan. Reopening a desktop application is a smaller example of the same distinction between an installed file and a running program.
A kernel update normally needs a reboot to begin running the installed kernel. A service restart does not switch the whole system to another kernel. Conversely, refreshing indexes alone does not create a reason to reboot: it did not replace installed code.
The Docker capture lab has no running systemd and cannot demonstrate real service-restart or needrestart prompts. No such output is reproduced here. On a full VM, read the actual package operation’s messages, save work before requested restarts, and verify the affected application afterward. Detailed service operation belongs to the later Linux course modules.
Mistakes to recognize
Section titled “Mistakes to recognize”Stopping after apt update and assuming fixes were installed. The command refreshes information. Check the upgrade list and review the actual change operation separately.
Reading full-upgrade as a stronger spelling of update. It permits package removals. Review that different scope rather than choosing it because another operation kept packages back.
Assuming a successful package change proves a running service is healthy. Verify the program after any required restart. Package state and application behavior are different evidence.
Try it yourself
Section titled “Try it yourself”Goal: Classify three instructions: refresh package information; replace installed packages without removals; move Ubuntu to another supported release. For each, say whether it changes metadata, installed software, or the operating-system release. Explain where restart planning belongs.
Hint
Match the object being changed to the comparison table, rather than matching only the word update.
Solution
Refreshing indexes changes metadata through apt update. apt upgrade replaces installed packages and can add dependencies without removing installed packages. An Ubuntu release migration uses the supported release-upgrade procedure. Plan restarts around the actual software changes and their messages; index refresh alone does not replace running code.
- Index refreshes change package information; package upgrades change installed software.
- Full-upgrade allows removals to resolve dependencies and is distinct from an Ubuntu release migration.
- Review proposed changes before accepting an upgrade.
- Updated files and running programs can differ until affected applications, services, or the system restart.
Next, Recognizing distribution differences compares APT with DNF/RPM and separate application packaging systems.
Further reading
Section titled “Further reading”- On Ubuntu:
man aptandman apt-get. - Ubuntu manuals: APT upgrade and full-upgrade and apt-get dist-upgrade.
- Ubuntu Server: Upgrade your release.