[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian live with local repo problem



Hi Kousik Maiti

First of all thanks!
Then, I'm sorry but do not understand why I have to do that. I mean, I'using lh_config and lh_build and the only things that change in this procedure is the path to repository.
I normally use for lh_config option --mirror-xxx , when using official repo:
http://ftp.fr.debian.org/debian
while
file:///root/apt-mirrors/debian
when using the official DVD mounted on /root/apt-mirrors
Note that I do not use the real media, rather I use the hd iso file obtained using the dd utility and then loop back mounting it to that path.
What I do not understand is, in particular, when I should do the update you mention; I suppose you mean I have to use the intermediate scripts and, at a certain point do that apt-get update, isn't it? The procedure stops while performing the debootstrap stage so I do not understand to which source.list I have to add those repo.

Below, I add more log lines:

P: Running debootstrap...
I: Retrieving Release
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on file:///root/apt-mirrors/debian...
I: Validating adduser
I: Validating perl-base
...
I: Extracting tzdata...
I: Extracting util-linux...
I: Installing core packages...
I: Unpacking required packages...
I: Unpacking perl-base...
I: Unpacking libc6...
I: Unpacking libgcc1...
I: Unpacking gcc-4.3-base...
...
I: Configuring tasksel-data...
I: Configuring tasksel...
I: Base system installed successfully.
P: Begin caching bootstrap stage...
P: Begin unmounting filesystems...
P: Setting up cleanup function
P: Begin caching chroot stage...
P: Begin mounting /dev/pts...
P: Begin mounting /proc...
P: Begin mounting /sys...
P: Configuring file /etc/debian_chroot
P: Configuring file /sbin/start-stop-daemon
P: Configuring file /usr/sbin/policy-rc.d
P: Configuring file /etc/hosts
P: Configuring file /etc/resolv.conf
P: Configuring file /etc/hostname
P: Configuring file /bin/hostname
P: Configuring file /etc/apt/apt.conf
P: Configuring file /etc/apt/sources.list
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
.......+++++
+++++
++++++++++..+++++++++++++++.++++++++++..+++++.+++++++++++++++.++++++++++.++++++++++++++++++++++++++++++++++++++++.++++++++++++++++++++.+++++>+++++....>.+++++.<.+++++............................>....+++++..................<+++++...................+++++^^^
gpg: /root/.gnupg/trustdb.gpg: trustdb created
OK
...
(lines to end in my previous mail)



Best regards and thanks again!

Emanuele



2009/7/7 Kousik Maiti <kousikster@gmail.com>

Add repository to sources.list

Extract iso to desktop

Copy Desktop/debian/dists/lenny/main/binary-i386/Packages and Desktop/debian/dists/lenny/main/binary-i386/Packages.gz to Desktop/debian/ folder

Then change the repository list. Add the following line :-

deb file:///home/username/Desktop/debian/ lenny main

Then run apt-get update



On Tue, Jul 7, 2009 at 3:36 PM, emanuele nespolo <nispman@gmail.com> wrote:
Hi All !

I'm trying to build a live cd using a local i386 lenny repo. I need a local repository for the job I'm developing. This repo is either a local one created with debmirror or the official first DVD.
While using any of the official mirror on the internet everything works perfectly and i get my bootable iso image, using the local repos I get the following error:
...
gpg: /root/.gnupg/trustdb.gpg: trustdb created
OK
Reading package lists... Done
Building dependency tree... Done
Ign file: lenny Release.gpg
Ign file: lenny/updates Release.gpg
Get:1 file: ./ Release.gpg [315B]
Ign file: lenny Release
Ign file: lenny/updates Release
Get:2 file: ./ Release [754B]
Ign file: lenny/main Packages
Ign file: lenny/updates/main Packages
Err file: lenny/main Packages
  File not found
Err file: lenny/updates/main Packages
  File not found
W: Failed to fetch file:/root/apt-mirrors/debian/dists/lenny/main/binary-i386/Packages  File not found

W: Failed to fetch file:/root/apt-mirrors/debian/dists/lenny/updates/main/binary-i386/Packages  File not found

E: Some index files failed to download, they have been ignored, or old ones used instead.
P: Begin unmounting filesystems...

... Done !


Please note that the first supposed not existing file

/root/apt-mirrors/debian/dists/lenny/main/binary-i386/Package

actually does exist with that very same path.

The repo I pass to lh_config is:

file:///root/apt-mirrors/debian/

for all the repos.

Any help is appreciated !

Thanks in advance!


Emanuele







--
Wishing you the very best of everything, always!!!
Kousik Maiti(কৌশিক মাইতি)
Registered Linux User #474025


Reply to: