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
1 | sudo gedit /etc/defaults/grub |
Cari baris
1 | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" |
Ubah menjadi
1 | GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash max_loop=15“ |
Update grub dan restart
1 2 | sudo update-grub sudo reboot |
Buat Folder Untuk Mount file ISO Repository
1 2 3 | sudo mkdir /media/repo cd /media/repo sudo mkdir repo01 repo02 repo03 repo04 repo05 repo06 repo06 repo08 repo09 repo10 repo11 |
Mount File ISO
1 2 3 4 5 6 7 8 9 10 11 | 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
1 2 | sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup sudo gedit /etc/apt/sources.list |
Paste script dibawah ini
1 2 3 4 5 6 7 8 9 10 11 | 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
1 | sudo apt-get update |
selamat mencoba 😀