Skip to main content
ubuntu-blog.com

Search Ubuntu Blog

The right command, then why it works.

Practical Linux answers for people who run Ubuntu and self-host things. Pick a task, read the line, see what it prints.

Every command here comes from a guide we wrote and checked against the man pages. Nothing in the output is a surprise.

you@host: ~/guides
sudo apt update && sudo apt upgrade
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Fetched 1,204 kB in 2s (601 kB/s)
Reading package lists... Done
14 packages can be upgraded. Run 'apt list --upgradable' to see them.

The following packages will be upgraded:
  curl libcurl4 openssl tzdata
4 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

what each part does

sudo
run as administrator; apt needs it to change the system
apt update
refresh the package index only; installs nothing
&&
run the next command only if the first one worked
apt upgrade
install available updates, never removing a package

Sample output. Yours will differ. Full guide: How to Update Ubuntu From the Command Line

Guides, grouped by what you are fixing

41 articles in 13 categories

TIP(1)Everyday Linux ManualTIP(1)

NAME

update vs. upgrade vs. full-upgrade: three words that look alike and are not.

SYNOPSIS

$ sudo apt update
$ sudo apt upgrade
$ sudo apt full-upgrade

DESCRIPTION

update only downloads package information from your configured sources. It installs nothing. upgrade installs the updates and never removes an existing package. When a package is held back because its update needs others added or removed, full-upgrade is the one that is allowed to do that. Read the list it prints before you press Y.

SEE ALSO

How to Update Ubuntu From the Command Line, How to Fix Broken Packages and Dependency Errors on Ubuntu

ubuntu-blog.comapt(8)

checked against: apt(8) · apt-get(8) · dpkg(1) · bash-completion · GNU Bash manual