Re: debian live with local repo problem
Hi Rob! Thanks! I will try the apt-cacher-ng way as soon as I can and possibly not in a chroot as I was doing. I'm working just with lenny, so, at least, I shouldn't get the troubles you mention about multiple distros. Emanuele 2009/7/11 Rob Owens row...@ptd.net On Wed, Jul 08, 2009 at 09:16:15AM +0200, emanuele nespolo wrote: Hi Tzafrir ! Many thanks ! Well, actually I've already tried that way following http://wiki.debian.org/DebianLive/Howto/Cache_Packages, but, I get these errors when starting the daemon Starting Apt-Cacher: apt-cacherUse of uninitialized value in pattern match (m//) at /usr/share/apt-cacher//apt-cacher-lib.pl line 75. Use of uninitialized value in getpwnam at /usr/share/apt-cacher//apt-cacher-lib.pl line 75. Use of uninitialized value in pattern match (m//) at /usr/share/apt-cacher//apt-cacher-lib.pl line 76. Use of uninitialized value in getgrnam at /usr/share/apt-cacher//apt-cacher-lib.pl line 76. Unable to get user:group at /usr/share/apt-cacher//apt-cacher-lib.pl line 79. . I'm not sure why you're getting those errors, but I'd recommend using apt-cacher-ng instead of apt-cacher. Apt-cacher has trouble if you use it with multiple distros that have the same name for *different* packages. For example, using it with both Debian and Ubuntu will cause you headaches. -Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: debian live with local repo problem
On Wed, Jul 08, 2009 at 09:16:15AM +0200, emanuele nespolo wrote: Hi Tzafrir ! Many thanks ! Well, actually I've already tried that way following http://wiki.debian.org/DebianLive/Howto/Cache_Packages, but, I get these errors when starting the daemon Starting Apt-Cacher: apt-cacherUse of uninitialized value in pattern match (m//) at /usr/share/apt-cacher//apt-cacher-lib.pl line 75. Use of uninitialized value in getpwnam at /usr/share/apt-cacher//apt-cacher-lib.pl line 75. Use of uninitialized value in pattern match (m//) at /usr/share/apt-cacher//apt-cacher-lib.pl line 76. Use of uninitialized value in getgrnam at /usr/share/apt-cacher//apt-cacher-lib.pl line 76. Unable to get user:group at /usr/share/apt-cacher//apt-cacher-lib.pl line 79. . I'm not sure why you're getting those errors, but I'd recommend using apt-cacher-ng instead of apt-cacher. Apt-cacher has trouble if you use it with multiple distros that have the same name for *different* packages. For example, using it with both Debian and Ubuntu will cause you headaches. -Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: debian live with local repo problem
Hi Tzafrir ! Many thanks ! Well, actually I've already tried that way following http://wiki.debian.org/DebianLive/Howto/Cache_Packages, but, I get these errors when starting the daemon Starting Apt-Cacher: apt-cacherUse of uninitialized value in pattern match (m//) at /usr/share/apt-cacher//apt-cacher-lib.pl line 75. Use of uninitialized value in getpwnam at /usr/share/apt-cacher//apt-cacher-lib.pl line 75. Use of uninitialized value in pattern match (m//) at /usr/share/apt-cacher//apt-cacher-lib.pl line 76. Use of uninitialized value in getgrnam at /usr/share/apt-cacher//apt-cacher-lib.pl line 76. Unable to get user:group at /usr/share/apt-cacher//apt-cacher-lib.pl line 79. . I'm running all the whole as root (of course), no sudo, but in a chroot env. First of all, I need cached packages only when building up the live system. Secondly the fact that I would like to set up a Lenny mirror is that I need complete control on the packages that go in my live cd. So, I thought that the official DVD were the best choice as mirror. Then again, I need to keep my appl source in my vcs, so when getting them to build my whole live system from scratch I guess it is simpler using a real mirror site, although that being a dvd or, best, its iso image (dd copied and) loop back mounted. Am I wrong? Best regards ! Emanuele 2009/7/7 Tzafrir Cohen tzaf...@cohens.org.il On Tue, Jul 07, 2009 at 12:06:22PM +0200, emanuele nespolo 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. Why? live-helper does a pretty good job at caching the packages it downloads. Generally once a major step is done, the donwloaded packages are saved in the cache and no longer need downloading. If that is not good enough, I suggest you look into apt-cacher-ng or something similar. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
debian live with local repo problem
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
Re: debian live with local repo problem
* 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 nisp...@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
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 kousiks...@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 nisp...@gmail.comwrote: 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
Re: debian live with local repo problem
On Tue, Jul 07, 2009 at 12:06:22PM +0200, emanuele nespolo 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. Why? live-helper does a pretty good job at caching the packages it downloads. Generally once a major step is done, the donwloaded packages are saved in the cache and no longer need downloading. If that is not good enough, I suggest you look into apt-cacher-ng or something similar. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best ICQ# 16849754 || friend -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org