From https://help.ubuntu.com/community/LucidUpgrades appropriate changes for ubuntu version is made:
Use this method if the system being upgraded is not connected to the Internet.
Download the alternate installation CD from http://releases.ubuntu.com/precise/
Burn the ISO to a CD and insert it into the CD-ROM drive of the computer to be upgraded.
If the ISO file is on the computer to be upgraded, you could avoid wasting a CD by mounting the ISO as a drive with a command like:
sudo mount -o loop ~/Desktop/ubuntu-12.04.1-alternate-i386.iso /media/cdrom0
A dialog will be displayed offering you the opportunity to upgrade using that CD.
Follow the on-screen instructions.
If the upgrade dialog is not displayed for any reason, you may also run the following command using Alt+F2:
gksu "sh /cdrom/cdromupgrade"
Or in Kubuntu run the following command using Alt+F2:
kdesudo "sh /cdrom/cdromupgrade"