I upgraded from Ubuntu 16.04 to 18.04.1 LTS unexpectedly using below commands,which should be 18.04.6 LTS
sudo apt-get update && sudo apt-get upgrade
sudo reboot
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
apt
should not change your release, so please be specific as to how you release-upgraded...apt
cannot change your sources, thus you'll upgrade from 18.04.1 for example to 18.04.2, but not change from 18.04 to any other release. How did you determine you're using 18.04.1? as you're likely not using 18.04.1 if you release-upgraded correctly. FYI: If youman apt-get
you'll read that not all packages are upgraded... which is whyapt-get dist-upgrade
exists; performing theapt-get upgrade
without the restrictions of upgrade... – guiverc Mar 28 '23 at 09:12lsb_release -a
shows what specifically (please don't answer via comment; comments are directed to the Original Poster which is yourself!; add the details to your question; readers will read & answer your question text) – guiverc Mar 28 '23 at 09:50sudo apt update
to update your machine software lists (ie. list of packages of what is available). Check to see all details are present in the lines that are shown, none missing, no warnings/errors & the mirror being used appears valid (you can check to see if current etc if required, but I usually only do this if there are problems after next command), then with updated software lists you apply the upgrades usingsudo apt full-upgrade
. that will upgrade a 18.04 system to the latest packages (18.04.1 to 18.04.6 for example here) – guiverc Mar 28 '23 at 09:56