server command line mode
(Note you can upgrade from 18.04 lts or 19.10 to 20.04 LTS)
#1 create backup of your environment
most LTS upgrades run smoothly. maybe there will be a issue so it’s better to take backup.
or your data kept safe in another disk partition.
it’s ok to run upgrade
You can upgrade to Ubuntu 20.04 LTS from either Ubuntu 18.04 LTS or Ubuntu 19.10.(source official page of ubuntu)
#2 upgrade the installed packages first
sudo apt-get update && sudo apt-get upgrade
#3 install Ubuntu update manager
sudo apt install update-manager-core
update manager installs by default incase not yet then run the above command
#3.1 verify promt line update manager (important)
Make sure the Prompt line in /etc/update-manager/release-upgrades is set to ‘normal’ if you are using 19.10, or ‘lts’ if you are using 18.04 LTS.
nano /etc/update-manager/release-upgrades
promt=lts(lts versions)
or
prompt =normal
otherwise you can’t get the update.
#4 upgrade to new ubuntu 20.04 LTS
sudo do-release-upgrade
sudo do-release-upgrade on 19.10
sudo do-release-upgrade -d 18.04(LTS)
The -d switch is necessary to upgrade from Ubuntu 18.04 LTS
add 1022 as exception for firewall ufw (iptables)
iptables -I INPUT -p tcp –dport 1022 -j ACCEPT’
run above comnand to safely connect with another port, incase of port 22 blicked due to failure of upgrade.
click yes, when it asks for “do you still want to upgrade”
also indicates removable,upgrdable and newly installable packages,
Remove obsolete packages?
Y
Restart the server
login again
check linux distribution version
lsb_release -a
also read installing apache server on 12.04
Upgrading in desktop 18.04 to 20.04 ubuntu focal fossa
sudo apt update && sudo apt dist-upgrade
run
update-manager
a update manager window
will appear run the process & follow instructions just windows gui upfates.
or
System settings>> settings>>Software & Updates” .
Updates(3rdtab) >>
set the Notify me of a new Ubuntu version
any version (19.10) or long-term support (for 18.04)
Alt+f12 to command line
type
update-manager -c (19.10)
update-manager -c -d (18.04)
you get a message like Ubuntu 20.04 LTS is now available
follow the instructions
Troubleshooting
NO valid mirror found.
means bionic, arful,
need to change sourceslist.
based in new ubuntu version.
Ubuntu version code names & their support
20.04 Focal Fossa. Long-term support ends on 2025
18 .04 Xenial lts supports end on 2023
16.04 bionic. Lts April 2021
14.04 Trustyhair 2019
LTS means long term upto 5 years security updates.
upgrading ubuntu 16.04 to ubuntu 20.04
upgrade may or may not successful.
if update manager promts for update. then its compatible to upgrade current version to latest version.
what’s new in ubuntu 20.04 (Focal Fossa)
Support for new hardware including Intel Comet Lake CPUs and and new architecture (come lake = Intel i10, amd 4th gen)
supports new file system exFAT.
kernel upgrade 4.5 to 5.4
etc.