How to Install Ubuntu Updates Safely
In this article
Installing Ubuntu updates brings security fixes, bug corrections, and newer versions of software to your computer. You can update through Ubuntu’s graphical Software Updater or from a terminal. Before starting, save your work, connect to a reliable internet connection, and allow time for a restart if one is requested. The steps below apply to standard Ubuntu desktop installations; menu labels can vary slightly by release.
What You'll Need
- A computer running Ubuntu and an account with administrator privileges.
- A working internet connection. If you use metered data, check the download size before proceeding.
- Enough free disk space to download and install packages. Keep the computer plugged into power, especially during a large upgrade.
- Time to finish the process and restart if Ubuntu asks you to.
Step-by-Step
- Save your work and prepare. Close or save open documents. Connect to power on a laptop and avoid starting an update when you need the computer immediately. A normal package update usually keeps personal files, but a recent backup is sensible before a major release upgrade or any significant system maintenance.
- Open Software Updater. Press the Super key (usually the key with the Windows logo) and search for Software Updater, then open it. Depending on your Ubuntu version, you may also find update controls in Settings under System or Software & Updates. If the updater says the package information is out of date, let it check for updates.
- Review the available updates. When the check finishes, read the summary. Ubuntu may offer security and other software updates, including updates to the Linux kernel. Select Install Now or the equivalent button to continue. Enter your account password if prompted; this authorizes system changes and is normal.
- Wait for installation to complete. Keep the computer powered on and connected to the internet. Do not force-close the updater or shut down while packages are being installed. Downloads can take longer on a slow connection, and a large batch may take several minutes. If a permission or confirmation dialog appears, read it before approving.
- Restart if requested. Some updates, especially kernel and core system updates, do not take full effect until you restart. Save your work, choose Restart Now if convenient, or restart later using the system menu. Do not interrupt the computer while it is shutting down or starting back up.
- Check again after the restart. Open Software Updater once more and let it check for updates. Installing one batch can make additional updates available. Repeat the installation if needed, then check that the updater reports that the software is up to date.
- Optional: update from Terminal. Open Terminal and run
sudo apt update. Enter your password when asked; it will not appear as you type. This refreshes the package lists but does not install updates. Next runsudo apt upgrade, review the packages and proposed changes, and typeyonly if you agree. Let the command finish. If it says some packages were kept back, do not force their installation without checking why. Restart if prompted or if a system update requires it.
Common Mistakes
- Closing the lid or powering off mid-update: This can leave package installation incomplete. Keep the computer on until the updater finishes, and do not unplug a desktop during installation.
- Confusing a package-list refresh with an upgrade: In Terminal,
sudo apt updateonly retrieves information about available packages. It does not install them; usesudo apt upgradeafterward. - Ignoring restart notices: Packages may be installed while a running program continues using an older version. Restart when Ubuntu recommends it to finish applying system updates.
- Using random commands from the internet: Avoid copying commands you do not understand, especially ones that remove packages, add repositories, or use options such as automatic confirmation. These can cause unwanted changes.
- Mixing package managers during an active update: Do not run apt commands while Software Updater or another package installer is working. Wait for one process to finish before starting another.
Tips
- Install security updates promptly, but choose a time when you can leave the computer uninterrupted and restart if necessary.
- Ubuntu’s Software Updater is the easiest option for most desktop users. Use Terminal when you prefer command-line feedback or are managing a system without a graphical desktop.
- If you use third-party software or repositories, updates may include packages from those sources. Review unexpected prompts and remove repositories you no longer trust through Software & Updates.
- For routine updates,
apt upgradegenerally avoids removing installed packages to complete the upgrade. If packages are held back, inspect the explanation rather than immediately switching to a more forceful command. - On a server or remote machine, plan for possible service interruptions and a restart. Make sure you have a way to reconnect before rebooting.
Troubleshooting
- Updater cannot download updates: Check that the internet works in a browser, then try again. If you are on a VPN or restrictive network, test another trusted connection. In Software & Updates, you can select a different download server and retry.
- Another package manager is running: Ubuntu may report that a lock is held. Wait for Software Updater, the App Center, or an automatic update to finish, then retry. Do not delete lock files while an update process is active.
- Not enough disk space: Free space by removing files you no longer need, emptying the trash, or uninstalling unused applications. Avoid deleting system folders. Retry after confirming there is adequate space.
- An installation error leaves packages unconfigured: First restart Software Updater and follow any repair prompt it provides. If you are comfortable with Terminal, run
sudo dpkg --configure -a, thensudo apt --fix-broken install. Read the proposed changes before confirming. If errors persist, note the exact message and seek help from Ubuntu’s official support channels. - The computer behaves oddly after a kernel update: Restart once more. If Ubuntu will not start normally, use the GRUB menu’s Advanced options for Ubuntu to select a previous kernel, if available, then troubleshoot or get support. Do not remove the previous kernel until the system is working reliably.
Frequently Asked Questions
Do Ubuntu updates delete my personal files?
Routine package updates are designed to update system software, not erase personal files. Still, keep backups, particularly before a release upgrade or when troubleshooting a damaged installation.
How often should I install updates?
Check regularly, such as weekly, and install security updates when they are available. Ubuntu can also notify you automatically, depending on your settings.
Do I need to restart after every update?
No. Many application updates take effect without a restart. Restart when the updater requests it, commonly after kernel or core system updates.
What is the difference between an update and an upgrade?
In everyday use, “updates” means installing available software fixes. In Terminal, apt update refreshes package lists, while apt upgrade installs available package updates. A release upgrade moves Ubuntu to a newer Ubuntu version and is a separate process.
Can I use Ubuntu while updates are installing?
It is safer to wait, especially during system or kernel updates. Some applications may close or need restarting, and interrupting installation can cause problems.
Why does Ubuntu say some packages were kept back?
A package may need additional changes or depend on a staged update. Review the message, check again later, or consult Ubuntu documentation before attempting to install it manually.