Score:0

how to upgrade from Ubuntu 18.04.1 LTS to Ubuntu 18.04.6 LTS

mp flag

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
guiverc avatar
cn flag
The command `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 you `man apt-get` you'll read that not all packages are upgraded... which is why `apt-get dist-upgrade` exists; performing the `apt-get upgrade` without the restrictions of upgrade...
focus zheng avatar
mp flag
how can I upgrade from 18.04.1 to 18.04.6?
focus zheng avatar
mp flag
do-release-upgrade -c Checking for a new Ubuntu release New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it.
guiverc avatar
cn flag
Please add additional details to your question; this is a *Question & Answer* site & not a forum (*comments are just that; comments to the Original Poster or prior commentator*) Your question mentions *xenial* or 16.04 & *bionic* or 18.04 only; no mention of 20.04 (or *focal*) is present.
focus zheng avatar
mp flag
The next available release is 20.04.6 which is output of "do-release-upgrade -c".My question is why 18.04.6 is not available in my server,as I want to upgrade it to 18.04.6 only.
guiverc avatar
cn flag
I'm not sure what you're actually running, what do you see if you ask your system, ie. `lsb_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)
focus zheng avatar
mp flag
understood,thanks for your remind
guiverc avatar
cn flag
To fully upgrade a system, firstly you `sudo 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 using `sudo apt full-upgrade`. that will upgrade a 18.04 system to the latest packages (18.04.1 to 18.04.6 for example here)
karel avatar
sa flag
Does this answer your question? [What is "dist-upgrade" and why does it upgrade more than "upgrade"?](https://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade)
focus zheng avatar
mp flag
It is helpful.what makes me confusing is "apt-get upgrade" upgrade my release directly.
Score:1
cv flag

You should update and upgrade the package list respectively.sudo apt-get update and sudo apt-get upgrade and then you have to update the release to the latest point release by running the command sudo apt-get dist-upgrade.

You can even check the version of Ubuntu after whole process by running the command lsb_release -a.

WARNING :: It's important to backup your important data to avoid any data loss before upgrading your system.

focus zheng avatar
mp flag
why not use do-release-upgrade?
guiverc avatar
cn flag
`do-release-upgrade` is part of the [Ubuntu Release Upgrader toolset](https://launchpad.net/ubuntu/+source/ubuntu-release-upgrader) which causes a number of extra tools; including change your release from *bionic* (18.04) to *cosmic* (18.10) OR to *focal* (20.04) - ie. changing release; disabling screensaver (if running) etc... ie. that doesn't keep you on the same release.. `apt` in contrast just upgrades packages ON THE SAME RELEASE (ie. you remain on *bionic* which is 18.04).
guiverc avatar
cn flag
If you read `man apt-get` and look at `dist-upgrade` you'll read "*dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. The dist-upgrade command may therefore remove some packages.*" ie. it does more than `apt-get upgrade` will do.
focus zheng avatar
mp flag
Hi Kumar,"apt-get upgrade" make it upgrade to 18.04.6 directly
Prabhash Kumar Jha avatar
cv flag
Running "apt-get upgrade" will upgrade your Ubuntu packages to their latest available versions, but it will not upgrade your Ubuntu release from 18.04.1 LTS to 18.04.6 LTS directly. To upgrade to the latest point release, you need to run "apt-get dist-upgrade" after running "apt-get update" and "apt-get upgrade". The "dist-upgrade" command will upgrade your Ubuntu release to the latest available point release.
Prabhash Kumar Jha avatar
cv flag
To upgrade from Ubuntu 18.04.1 LTS to 18.04.6 LTS, you should run 'sudo apt-get update', 'sudo apt-get upgrade', 'sudo apt-get dist-upgrade'. You can check the version by running the "lsb_release -a" command.
focus zheng avatar
mp flag
yes I did,it seems to work.the kernel version is upraded as well.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.