Updated 27/April: These instructions are not correct for Ubuntu 7.04 (Feisty Fawn) Upated 11/Jan/07 and 21/Jan/07. Also 28/Jan after suggestion from James When you install a Debian based distro the apt package will look on the on the CD Image for packages when you install new software (as well as using the on line repositories). This means that users are regularly asked to insert the CD when using apt-get. If you have enough space on your hard disk you can copy the image and configure apt to use the ISO image instead of the physical CD.
  1. Use a CD writer to create a ISO image of the install CD. I keep mine as /var/Ubuntu_6.10_i386.iso
  2. Configure a mount point by editing /etc/fstab (/var/Ubuntu_6.10_i386.iso /media/Ubuntu_6.10_i386.iso udf,iso9660 noauto,loop). I also created the mount point mkdir /media/Ubuntu_6.10_i386.iso
  3. Truncate the file /var/lib/apt/cdrom.lists
  4. Add the line Acquire::cdrom::mount "/media/Ubuntu_6.10_i386.iso/"; to file /etc/apt/apt.conf
  5. Edit the /etc/apt/sources.list file and remove the references to the physical CD drive based source
  6. Run the command sudo apt-cdrom add
Now when you run Synaptic it should mount your CD image as required. I testedby adding the package mailx. You should be able to see the icon for mounted image flash on the GNOME Desktop as the install take place. Remember to run apt-get clean if you want to test it again. I have not idea what to do if your install media spans multiple CD-ROM disks. Anyone else know?

powered by performancing firefox