Score:1

How to perform an offline upgrade on Ubuntu to the next LTS version?

cn flag

The issue that we have multiple devices running on Ubuntu 16. The task is to perform an upgrade to ubuntu 18.04 and later to 20.04 It's not possible for the devices to perform normal upgrade through connecting to ubuntu servers for security reasons. So instead if we can somehow have the files needed in the upgrade put on a separate storage, and then perform the upgrade.

us flag
Will a fresh install work for you? It works offline.
Hasan Basbous avatar
cn flag
The devices are remote, so is it feasible to perform a fresh installation. Also, the fresh installation will clear the data on the devices, No?
us flag
Fresh install will only clear the root partition. Other partitions would not be affected. I don't know if you can perform a fresh installation on a remote device. You may be able to boot from network, but that may be complicated. *Let's wait for someone else with more experience to comment or answer*.
Hasan Basbous avatar
cn flag
Yes, the devices we are performing the upgrade on, are not partitioned. So all the data are on the same partition. So fresh installation is not feasible in this case. Thank you for your responses anyway.
guiverc avatar
cn flag
Ubuntu 16 implies you're using Ubuntu Core 16 (or other *snap* only *year* release) which do **not** upgrade to the *deb* based 18.04 (*year.month* format) as they are different products. Ubuntu has used the *year* format for *snap* only products since 2016; which are different (longer support lives; when you upgrade no apps are upgraded as *snaps* are the same for all releases so no need etc). Please clarify
Hasan Basbous avatar
cn flag
I am running an LTS version, and I want to upgrade for the next one. Please don't misinterpret the question. The idea is not with the versions, but by how to perform the offline upgrade.
nobody avatar
gh flag
Maybe http://manpages.ubuntu.com/manpages/bionic/man1/apt-mirror.1.html apt-mirror can help.
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.