Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm currently in the process of writing an upgrade guide for the French-speaking community, and I'm having some problems doing an offline upgrade.

What I'm trying to do is to upgrade an Ubuntu 12.10 installation to Ubuntu 13.04 without an Internet connection. Now that the alternate and desktop CDs have been merged, I'm trying to use the 13.04 Desktop CD in order to upgrade my 12.10 system. In Ubiquity, there is an Upgrade Ubuntu 12.10 to Ubuntu 13.04 option. So I guess this is doable.

Steps to replicate:

  1. In a virtual machine, install a clean, fresh Ubuntu 12.10 system. Apply all available updates;
  2. Shutdown the VM;
  3. Disconnect network cable from the VM. Make sure your VM has no Internet link -- remember I want to do an offline upgrade;
  4. Insert the Ubuntu 13.04 beta 2 installation ISO in the VM. Reboot the VM;
  5. Select your desired language, and select Install;
  6. On Preparing to install Ubuntu screen, make sure again that you see no Internet connection available. This prerequisite should be marked by an X on this screen. If an Internet link has been found by Ubiquity, disable this connection before continuing;
  7. Then, on Installation type screen, observe that the Upgrade Ubuntu 12.10 to Ubuntu 13.04 option is greyed!!! It cannot be selected.

What is strange is the upgrade option as again available if an Internet connection is found by the installer. Repeat the previous steps, but this time, make sure your VM has an Internet link. Back on the Installation type screen, the upgrade option can be selected.

Is this a bug in Ubiquity? Is it normal -- the expected behavior -- for Ubiquity to require an Internet connection in order to performe an upgrade from Ubuntu 12.10 to 13.04?

Thanks for any hint you can provide me!

(Please note that I did not have any problem doing an online upgrade using Software Updater from my current 12.10 install. That is not what I want to achieve -- I already wrote the online upgrade guide. What I want to know is: how can I perform an offline upgrade using Ubiquity on the installation disc?)

share|improve this question
    
what happens if you are connected to internet and try using installation disc? –  Web-E Apr 19 '13 at 4:12
    
If the VM is connected to Internet, then the Upgrade Ubuntu 12.10 to Ubuntu 13.04 option can be selected. I'm not sure if Ubiquity would download anything during the upgrade if I choose this option and let the VM connected; nor if Ubiquity would perform the upgrade if I connect to Internet, select the upgrade option to start the process, then disconnect. But that's not what I'm looking for. I'm looking for a way to perform an upgrade with no Internet connection at all. –  Alexandre P. Apr 19 '13 at 6:18
add comment

1 Answer

up vote 7 down vote accepted

I posted a bug report about this in Launchpad. I got the following answer from Dmitrijs Ledkovs (xnox):

It is correct, we do not support offline upgrades via ubiquity/desktop CDs. And even for servers, it is not recommended to use new server CD to do offline upgrade.

The support upgrade methods are with internet connectivity or a local mirror / package pool. One can for-example use tools like aptoncd to snapshot all installed packages, download them on a machine that has internet connectivity, bring them to the offline machine and upgrade it.

The reason behind this move, is enourmous amount of support cases of broken and partial upgrades since newer installation media will be missing manual additionally installed packages; packages that have now transitioned to new names; packages that have been removed from the default installation. Thus default install media for next release simply doesn't contain everything one will reasonably need to upgrade, hence the internet connectivity requirement.

So here the answer: even when using the Ubuntu installation disc, one cannot upgrade the a newer version of Ubuntu without Internet connection. Ubiquity needs to have an Internet connection in order to make the upgrade option selectable.

I understand the reasoning behind that. The installation disc cannot have all the repositories' packages. If a user has installed additionnal softwares after he installed Ubuntu -- and he certainly has --, then without an Internet connection, Ubiquity would fail to upgrade every packages, update dependancies, resolve missing dependancies, etc.

I'm a bit disappointed, though, as because if this limitation a user who wants/have to proceed with an offline upgrade will need to grab another media. He can't just use the same installation disc/USB key he usually lend his friends for them to install; he will need to grad extra packages.

I'm not familiar with APTonCD. I'll look deeper into this avenue later.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.