How to install packages from multi-DVD repository

Asked by svkatielee

I have the 9.10 complete repository DVD set from On-Disk.com (7 DVDs).

After setting up ("Add CD" & "Update" ) then tried to install Apache2 via synaptic, it prompted for a CD change for every package,
but then during the install phase, it got errors due to cannot access the package files.

Is there some key thing I am missing here?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vikram Dhillon (dhillon-v10) said :
#1

Go to System -> Administration -> Software Sources and there you can add
the DVD set as a source

--
Regards,
Vikram Dhillon

On Sat, 2009-12-12 at 01:54 +0000, svkatielee wrote:
> New question #93772 on Ubuntu:
> https://answers.launchpad.net/ubuntu/+question/93772
>
> I have the 9.10 complete repository DVD set from On-Disk.com (7 DVDs).
>
> After setting up ("Add CD" & "Update" ) then tried to install Apache2 via synaptic, it prompted for a CD change for every package,
> but then during the install phase, it got errors due to cannot access the package files.
>
> Is there some key thing I am missing here?
>

Revision history for this message
svkatielee (svkatielee) said :
#2

I have already done this. Afterward, when trying to install, synaptic finds the packages for the first pass and calculates the dependencies properly. However, during the next phase it does not prompt for the proper CDs again nor does it have a copy of the package so it fails with cant access package.

This is a fresh, default installation from the 9.10 karmic disks. Alsowhen I check the box in synaptic "Download package files only" I can not find the package files on the system, and a second try to install the same packages again prompts from the CDs again. Is this feature broken in 9.10, or is there a default switch turned off? that would allow copies of packages to reside?

Revision history for this message
Cathy Preece (wyrd-howling) said :
#3

This is a bug in apt. This is how I got around it:

Created a directory on the hard disk (you will need about 32GB) called karmicrepository and created subdirectories called main1 - main3, multi1 - multi6, uni1 - uni6 etc. I then copied all the folders from the pool directory of each DVD into the hard drive directories. I used the command line tool in terminal

cp -R /cdrom/pool/main /karmicrepository/main1

I found that copying and pasting in Dolphin missed some files. I then created a Packages.gz file by typing into terminal, having navigated to the karmicrepository directory

apt-ftparchive packages ./ ¦ gzip > Packages.gz

I then opened /etc/apt/sources.list and typed in:

deb file:/karmicrepository ./

Then in terminal:

apt-get update

Now I can use the repository properly.

Of course this doesn't help if you don't have a spare 32gb on your hard drive ...

Incidentally, has anyone tried the Lucid DVDs? Has the apt bug been fixed?

Can you help with this problem?

Provide an answer of your own, or ask svkatielee for more information if necessary.

To post a message you must log in.