-2

so i need to upgrade an ubuntu server 10.04 to version 16, i know its impossible to upgrade from version 10 to 16 directly as they are more than one version apart but this is not the problem the problem is that the server has to stay offline and so i cannot use online update/upgrade.

after doing some research i found out about apt-offline but the problem is that this package has to be installed both on my online machine(ubuntu 22) and my offline machine but i just cannot install it on ubuntu 10.

what i have done is i have downloaded apt-offline and it's dependencies using

sudo apt-get install --download-only apt-offline 

and i have transferred the .deb file to my ubuntu 10 machine but the problem is that when i run

sudo dpkg -i {package-name.deb}

i get the following error :

dpkg ununderstood data member {something}.tar.xz

after doing some more research i found out that this problem could be resolved by updating dpkg and i guess my online machine has downloaded a very recent version of the package so my older machine cannot parse it. so this has become sort of a chicken and egg problem, any suggestions how to solve it?

also i found out that apt-offline depends on python 3 which is not pre installed on ubuntu 10, does the deb file that i have downloaded also include python3?

1 Answers1

-1

My recommendation would be trying this in a Virtual Machine first. Keeping an LTS release active for 7 years after its end of support, probably means that this system is mission-critical.

I found this solution to upgrade an Ubuntu LTS version to the next LTS version offline.

So the way i would do this upgrade in a Virtual environment is,

  1. Create two Virtual Machines, one with Ubuntu 10.04, one with Ubuntu 20.04(for the local mirror)
  2. Create a Local mirror containing all LTS releases of Ubuntu from 10.04 to 16.04.(according to the guide, this would require at least 60 GB of storage)
  3. After installing every necessary packages on the local mirror, make that offline too
  4. Set Ubuntu 10.04's mirror list to the Ubuntu 20.04's local mirror, then do release upgrades step by step, so 10.04 to 12.04, then 12.04 to 14.04...
  5. After making sure it fully works, using the local mirror upgrade the mission-critical Ubuntu 10.04