Apr 1, 2012

How to Update Ubuntu offline/ Installing and updating Ubuntu Without Internet Connection

Hi friends, I am going to tell you "How to Install/Update Software in UBUNTU offline". But You have to download files from other system or you can get it from any other ubuntu System [having same version as your].

1. Getting Files

  • OR you can also get file from pre-install updated ubuntu machine. Becouse During updating ubuntu all downloaded files were stored by OS at location  /var/cache/apt/archive. So you can copy it from this location to your usb drive.

2.Setting Up Local Repo 

Go to this web address http://archive.ubuntu.com/ubuntu/dists/ and then to the SuiteCodename of the Ubuntu installed in your hard disk (intrepid, jaunty, karmic, ...) and download the files :
  • Release
  • Release.gpg
  • And the Contents files for your architecture (i.e Contents-i386.gz ,if you architecture is i386).
Later, go to the component (main, multiverse, restricted, universe) and architecture (i.e. binary-i386/ in /dists/karmic/main/) that you want in your local repository, and download the files:
  • Packages.bz2
  • Packages.gz
  • Release
Optionally, you can download the same files for the source directory (its packages are architecture independent).
Now, you have to store the files in your local Ubuntu repository in the same order. For example:
  • In /home/repository/dists/karmic you would have the files: Contents-i386.gz , Release and Release.gpg
  • And in /home/repository/dists/karmic/main/binary-i386 the files: Packages.bz2 , Packages.gz and Release

3.Add the local repository in your sources list

Go to  System -> Administrator -> Software Sources the under tab "other software" click on "Add"  to add the offline repository, stored in the /home/repository directory :
deb file:///home/repository SuiteCodename main restricted universe multiverse 

  • SuiteCodename is intrepid, jaunty, karmic ...
  • You can include some or all the components ( main, multiverse, restricted, universe).