LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Configure apt for iso images (https://www.linuxquestions.org/questions/debian-26/configure-apt-for-iso-images-399844/)

cheema 01-05-2006 10:46 AM

Configure apt for iso images
 
Hi,
I'm recently installed my first debian system. I downloaded the first 4 cd iso images. Since the basic install was accomplished using only the first CD, I did not burn the rest of the images. Now I want to upgrade my system from these iso images but can't. I've tried mounting these images into a directory and asking APT to treat the directory like another cdrom. But apt does not recognise it as a cd and fails. What do I need to do to trick apt into believing that the mounted image is just another cdrom. Is there a different approach?

Thymox 01-05-2006 05:11 PM

I have never tried this with Debian and Apt, but it worked with Mandrake using urpmi, so it's worth a shot...
  • I created a separate mountpoint for each ISO file (/mnt/isos/disc1, /mnt/isos/disc2, etc)
  • Then created an entry in my fstab corresponding with each ISO file:
    Code:

    /where/is/isofile.iso /mnt/isos/disc1 iso9660 loop,ro,user,noauto 0 0
  • I would then mount each mountpoint and use the Mandrake repository tool to add a new "removable media", for each ISO file in sequence.
Having just looked at the apt-cdrom tool's man page, you might want to do the following in step 3:
Code:

# apt-cdrom -d /mnt/isos/disc1 add
Hope this works. Good luck.

pljvaldez 01-05-2006 05:12 PM

I haven't tried any of these, but maybe the apt howto has some words of wisdom:

http://www.debian.org/doc/manuals/ap...g-scanpackages

Maybe you can try apt-cdrom -d /home/kov/mycdrom add or maybe you have to set up the mount points in /etc/fstab before trying it. Or you may be able to use the "use apt locally" section.

Sorry I couldn't be more help.

Also, if you downloaded these files to this machine in the first place, do you have high speed internet? The CD's are just repeats of the stable repository and you don't really need them anymore with high speed internet.

cheema 01-06-2006 12:11 AM

The methods you suggested above didn't work. But I had previously ignored a "filesystem" option. When this option is used instead of the "cdrom" apt instantly recognises the package database.

Cheers.


All times are GMT -5. The time now is 01:24 PM.