in FOSS

Cara Membuat Repository Lokal Ubuntu 12.04 dari File ISO

Download file ISO Repository Ubuntu 12.04 di kambing.ui.ac.id

Edit file /etc/defaults/grub untuk menambahkan device loop agar bisa mount lebih dari 7 ISO

sudo gedit /etc/defaults/grub 

Cari baris

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 

Ubah menjadi

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash max_loop=15“ 

Update grub dan restart

sudo update-grub
sudo reboot

Buat Folder Untuk Mount file ISO Repository

sudo mkdir /media/repo
cd /media/repo
sudo mkdir repo01 repo02 repo03 repo04 repo05 repo06 repo06 repo08 repo09 repo10 repo11

Mount File ISO

sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-1_contrib.iso /media/repo/repo01
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-2_contrib.iso /media/repo/repo02
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-3_contrib.iso /media/repo/repo03
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-4_contrib.iso /media/repo/repo04
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-5_contrib.iso /media/repo/repo05
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-6_contrib.iso /media/repo/repo06
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-7_contrib.iso /media/repo/repo07
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-8_contrib.iso /media/repo/repo08
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-9_contrib.iso /media/repo/repo09
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-10_contrib.iso /media/repo/repo10
sudo mount -t iso9660 -o loop ubuntu-12.04-repository-i386-11_contrib.iso /media/repo/repo11

Mengedit File Konfigurasi Server Repository

sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.list

Paste script dibawah ini

deb file:///media/repo/repo01 precise main multiverse restricted universe
deb file:///media/repo/repo02 precise main multiverse universe
deb file:///media/repo/repo03 precise main multiverse restricted universe
deb file:///media/repo/repo04 precise main multiverse restricted universe
deb file:///media/repo/repo05 precise main multiverse restricted universe
deb file:///media/repo/repo06 precise main multiverse restricted universe
deb file:///media/repo/repo07 precise main multiverse restricted universe
deb file:///media/repo/repo08 precise main multiverse restricted universe
deb file:///media/repo/repo09 precise main multiverse restricted universe
deb file:///media/repo/repo10 precise main multiverse restricted universe
deb file:///media/repo/repo11 precise main multiverse partner restricted universe

Update Repository

sudo apt-get update 

selamat mencoba 😀

via harygoblog.wordpress.com

Write a Comment

Comment