On Ubuntu Desktop releases (inc. flavors), you can Upgrade via re-install.
Boot the live system
Start the ubiquity
installer for Ubuntu Desktop and using Something else (Manual Partitioning with calamares
)
- Select your existing partition(s)
- ensure you don't have FORMAT tagged
It will cause the following to occur
- your installed packages are noted
- your system directories are erased (desktop apps don't store data in system directories; some server apps do though)
- new system is installed
- any additional packages you had installed (noted earlier) get re-installed IF available in your new release from Ubuntu repositories
- no user file is touched (unless you selected format)
- you are asked to reboot
It's far faster than a release-upgrade, and my usual fall back for an install that went wrong (and I'm too lazy to fix it), or I don't have time to release-upgrade.
Complications can occur if you have an encrypted system, as Ubuntu 17.10 & earlier used different encryption to 18.04 & later, so the package some encrypted installs need is no longer included by default; but that can be worked around via a manual install during the live session prior to starting the installed (ubiquity
).
Of course, and as always you should always have backups as things can happen (power goes out etc) so backup your data first using the live session prior to install.