apt-cdrom order for ubuntu 8.04
If you want add a iso file to sources.list, you can follow the below step.
1.edit /etc/fstab, and add a item to this file.
such as:
The iso file "ubuntu-8.04-server-i386.iso" was in my home directory "/home/hifinan",
Then I create a folder "iso" in /mnt directory, add the line "/home/hifinan/ubuntu-8.04-server-i386.iso /mnt/iso udf,iso9660 user,noauto,exec,utf8,loop 0 0" to the end of /etc/fstab file.
2.run mount command.
such as:
"sudo mount /mnt/iso"
3.run apt-cdrom command.
such as:
" sudo apt-cdrom -d /mnt/iso add"
4.verify that the file "ubuntu-8.04-server-i386.iso" was added in the /etc/apt/sources.list.
such as:
"grep cdrom /etc/apt/sources.list"
notice:
At the first step, the parameter "loop" was required in the string, otherwise, when you run the mount command "mount /mnt/iso" , an error message "mount: /home/hifinan/ubuntu-8.04-server-i386.iso is not a block device (maybe try `-o loop'?)" will displayed.