Update all software packages and applications on Ubuntu

Keep Ubuntu secure and stable by installing the latest package and application updates using the Software Updater or the terminal (apt and snap). This guide shows the common graphical and command-line methods and what to check afterward.

What the video covers

Apply system and application updates on a desktop Ubuntu installation using the Software Updater GUI and common terminal commands (apt and snap). This covers package index refresh, installing available updates, full-upgrade for dependency changes, removing unused packages, and checking snap updates.

Watch the video on YouTube

Step-by-step instructions

  1. Use the graphical Software Updater
    Open Ubuntu's Software Updater (or Software & Updates Check for Updates). Wait while it checks for available updates, then follow prompts to install recommended updates. Enter your password if prompted and restart the system if the updater requests it.
  2. Update package lists from the terminal
    Open a terminal and run: sudo apt update. This refreshes the package index so you get the latest available versions.
  3. Install available upgrades
    After updating the index, run: sudo apt upgrade. Review prompts and confirm to install upgrades for currently installed packages.
  4. Handle dependency changes and major upgrades
    To allow the package manager to remove or install packages as needed for upgrades, run: sudo apt full-upgrade. Use this when you expect packages to be added/removed (for example after a release upgrade or when packages have changed dependencies).
  5. Remove unused packages
    Clean up orphaned dependencies with: sudo apt autoremove. This frees disk space by removing packages no longer required.
  6. Update snap packages
    Check and apply snap updates with: snap refresh. Snap often updates automatically, but this command forces a manual refresh.
  7. Reboot if required
    If a kernel or other core component was updated, restart your system to apply changes: reboot or use the desktop Restart option.

Watch the video

Video thumbnail for Update all software packages and applications on Ubuntu Play tutorial

Watch on YouTube

Why it matters

Regular updates deliver security fixes, bug fixes, and performance improvements. Using the terminal methods ensures all available package upgrades (including dependency changes) are applied; GUI is simplest for most users.

Check your result

After updates finish, verify there are no pending package upgrades (no output for upgradable packages), and reboot if prompted or if a kernel/core component was updated. Confirm critical applications start and behave normally.

Troubleshooting

If an update fails: re-run the update commands to see error messages. For apt problems, try 'sudo apt –fix-broken install' then 'sudo apt update' and 'sudo apt upgrade' again. If package locks occur, ensure no other package manager is running (close Software Updater or wait for background updates). For snap errors, re-run 'snap refresh' and check 'snap changes' for progress and errors.