ubuntu using cdrom to apt

I don’t know for sure why my ubuntu can’t install program from apt of the cdrom. I take a look into sources.list and the cdrom is not in there. So I need to add the deb source of the cdrom into it.
After browsing a while, randomly I found a command like this
$sudo apt-cdrom add
It will automatically mount the cdrom/dvdrom into /media/dvdrom and then add the content into the apt/sources.list
then next time we do apt-get update the cd is included.
So that’s how we can use cdrom as our repository.
Maybe delete all the other sources and using cdrom only.
hmh.. it won’t need internet connection though.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.