[ubuntu-in] LAN repository from DVDs

Sambit Bikas Pal sambitbikaspal at gmail.com
Wed Dec 23 19:23:15 GMT 2009

On Wed, Dec 23, 2009 at 23:50, Dibyajyoti Mohapatra <dibyam at vubites.com> wrote:
>...it gradually slows down. I thought the local repository will be faster but it disappointed me, the fact now is apt  is MUCH >MORE SLOWER downloading stuff from local repository than it used to be while fetching packages from internet.
> Anyone faced such problems where apt slows down to bytes per second? Any solutions?

I have local repositories of Ubuntu Intrepid, Jaunty & Karmic as well
as Debian Lenny and they are working really well. However I created
them using apt-mirror by directly downloading all the packages from
the internet. I had described it here in details -
Though I haven't tried it myself, but I guess it should be possible to
use apt-mirror to create a local repository by fetching packages from
the DVDs that you have, by doing the following trick. The
configuration file (see the link above) for apt-mirror has entries
like -

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ karmic main restricted
universe multiverse

which tell apt-mirror where to get the packages from. By replacing
this with something like-

deb file:///var/ubuntu/dvd-1 main restricted multiverse universe
deb file:///var/ubuntu/dvd-2 main restricted multiverse universe
deb file:///var/ubuntu/dvd-3 main restricted multiverse universe

it "should" be possible to direct apt-mirror to get the packages from
the the local dump. Check this link -
which describes how to dump the contents of the DVDs.

Once apt-mirror is tricked into fetching the packages from the local
dump instead of the internet, you can follow the rest of the
instructions at

Hope this helps! :)

Sambit Bikas Pal
MS 4th Year
Indian Institute Of Science Education & Research Kolkata,

Web:  http://www.botcyb.org
OpenPGP Key: http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x8E57F8B897D372B3

More information about the ubuntu-in mailing list