简体   繁体   中英

Setting up iso repository

I have an iso image of debian repository /root/rep/dvd-1.iso. Also I have a folder /mnt/dvd-1 I added a string to my /etc/apt/sources.list file

deb file:///mnt/dvd-1/ wheesy contrib main non-free

I mounted my image to the mount point with

mount -t iso9660 /root/rep/dvd-1.iso /mnt/dvd-1 -o loop

And got message that it mounted only for read. It's ok, I want only to read.

But when I enter command

aptitude update

I'm getting several error messages like

Failed to fetch file:/mnt/dvd-1/dists/wheesy/contrib/binary-i386/Packages: File not found

But this file (as well as others) really exists (I checked). Because of this error I can't install packages from iso's. Why I'm getting this error?

wheesy可能应该是wheezy ,以前的名字没有debian发行版。

您是否尝试过apt-cdrom

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM