How to create local repository from .iso file Ubuntu 12.04 LTS-Recently Ubuntu 12.04 under code name (Precise Pangolin) , that is a bit different with others Ubuntu bellow version.We need a bit configure file to create local repository on this version.
And now i ll show How to create local repository from .iso file Ubuntu 12.04 LTS simply :
1. Download 11th .iso files on kambing.ui.edu/iso
or
You can download here
2.We have a problem with looping conf. on ubuntu. On the default configuration Ubuntu has 8 loops available and we have 11 repo to be mount. So we need a bit configure file group on "/etc/defaults/grub"
sudo gedit /etc/defaults/grubEdit file and add the bolt text bellow. It means Ubuntu ll loop till 24 max loop
GRUB_DEFAULT=0Save file>>reboot computer
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash max_loop=24"
GRUB_CMDLINE_LINUX=""
3. Create mount directory on /mnt/ with type these commands
mkdir -p /mnt/repo1
mkdir -p /mnt/repo2
mkdir -p /mnt/repo3
mkdir -p /mnt/repo4
mkdir -p /mnt/repo5
mkdir -p /mnt/repo6
mkdir -p /mnt/repo7
mkdir -p /mnt/repo8
mkdir -p /mnt/repo9
mkdir -p /mnt/repo10
mkdir -p /mnt/repo11
4.Edit file fstab on "/etc/fstab" and add these scripts bellow
sudo gedit /etc/fstab
#Repository
/media/data2/Linux-Garden/repo12.04/1.iso /mnt/repo1 iso9660 loop,defaults 0 05.Edit file sources.list on "/etc/apt/sources.list" and add these scripts bellow
/media/data2/Linux-Garden/repo12.04/2.iso /mnt/repo2 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/3.iso /mnt/repo3 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/4.iso /mnt/repo4 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/5.iso /mnt/repo5 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/6.iso /mnt/repo6 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/7.iso /mnt/repo7 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/8.iso /mnt/repo8 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/9.iso /mnt/repo9 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/10.iso /mnt/repo10 iso9660 loop,defaults 0 0
/media/data2/Linux-Garden/repo12.04/11.iso /mnt/repo11 iso9660 loop,defaults 0 0
sudo gedit /etc/apt/sources.list
deb file:///mnt/repo1 precise main multiverse restricted universe
deb file:///mnt/repo2 precise main multiverse universe
deb file:///mnt/repo3 precise main multiverse restricted universe
deb file:///mnt/repo4 precise main multiverse restricted universe
deb file:///mnt/repo5 precise main multiverse restricted universe
deb file:///mnt/repo6 precise main multiverse restricted universe
deb file:///mnt/repo7 precise main multiverse restricted universe
deb file:///mnt/repo8 precise main multiverse restricted universe
deb file:///mnt/repo9 precise main multiverse restricted universe
deb file:///mnt/repo10 precise main multiverse restricted universe
deb file:///mnt/repo11 precise main multiverse partner restricted universe
Ok . . we almost done here. . .
6.Reboot your computer again and Update Ubuntu repository with type this simple command.
sudo apt-get update:) And you have your own repository on your computer,Now.