APT is the standard software package manager used on Ubuntu. To upgrade the system, run the following commands in the order update, then upgrade.
Refreshing the Package List
Command to Refresh the Package List
sudo apt updateExample of Refreshing the List (apt update)
kazu@ubuntu2604:~$ sudo apt update
[sudo: authenticate] Password:
Hit:1 http://security.ubuntu.com/ubuntu resolute-security InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu resolute InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu resolute-updates InRelease
Hit:4 http://jp.archive.ubuntu.com/ubuntu resolute-backports InRelease
35 packages can be upgraded. Run 'apt list --upgradable' to see them.
kazu@ubuntu2604:~$Upgrading the System
Command to Upgrade the System
sudo apt -y upgrade- The
-yoption automatically answers Yes to all (Yes/No) prompts.
Example of Upgrading the System (apt upgrade)
kazu@ubuntu2604:~$ sudo apt -y upgrade
[sudo: authenticate] Password:
The following packages were automatically installed and are no longer required:
linux-headers-7.0.0-14 linux-modules-7.0.0-14-generic
linux-headers-7.0.0-14-generic linux-tools-7.0.0-14
linux-image-unsigned-7.0.0-14-generic linux-tools-7.0.0-14-generic
linux-main-modules-zfs-7.0.0-14-generic
Use 'sudo apt autoremove' to remove them.
Upgrading:
base-files linux-firmware-qualcomm-graphics
fwupd linux-firmware-qualcomm-misc
gir1.2-packagekitglib-1.0 linux-firmware-realtek
iproute2 motd-news-config
libfwupd3 packagekit
libgcrypt20 python3-distupgrade
libpackagekit-glib2-18 sg3-utils
libsgutils2-1.48 sg3-utils-udev
linux-firmware-amd-misc snapd
linux-firmware-broadcom-wireless ubuntu-kernel-accessories
linux-firmware-intel-graphics ubuntu-minimal
linux-firmware-intel-wireless ubuntu-release-upgrader-core
linux-firmware-marvell-wireless ubuntu-server
linux-firmware-mellanox-spectrum ubuntu-server-minimal
linux-firmware-netronome ubuntu-standard
linux-firmware-nvidia-graphics update-notifier-common
linux-firmware-qlogic
/snip/
Processing triggers for plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu8)…
Processing triggers for dracut (110-11)…
update-initramfs: Generating /boot/initrd.img-7.0.0-28-generic
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
kazu@ubuntu2604:~$