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

Patches included - Re: live-build3 a3 "--binary-pool true" error



Hi,

please check, test it yourself and apply this simple patches
until there is no better solution for the issue described below.
Please feel free to modify it if you prefer another coding style
or whatever - I don't mind if it still works.

patch-lb3-binary-pool_lb_binary_rootfs.diff
patch-lb3-binary-pool_lb_chroot_sources.diff

Thanks/regards
Mark

On 26.09.2010 23:06, Mark Schneider wrote:
Hi,

thank you for this option (s. subject).

"lb build" stopped however with the following error message:

W: Failed to fetch file:/live/image/debian/dists/sid/main/binary-i386/Packages.gz File not found

3 ---

D: Executing: apt-key add -
OK
D: Executing: apt-get --yes update
Ign file: sid Release.gpg
Ign file:/live/image/debian/ sid/main Translation-en
Ign file:/root/local-packages/ ./ Translation-en
Get:1 file: ./ Release.gpg [316B]
Ign file: sid Release
Ign file: sid/main i386 Packages
Ign file: sid/main i386 Packages
Err file: sid/main i386 Packages
  File not found
Get:2 file: ./ Release [754B]
Ign file: ./ Packages
Ign file: ./ Packages
Get:3 http://live.debian.net sid-snapshots Release.gpg [489B]
Ign http://live.debian.net/ sid-snapshots/main Translation-en
Get:4 http://ftp.de.debian.org sid Release.gpg [835B]
Ign http://ftp.de.debian.org/debian/ sid/main Translation-en
Get:5 http://live.debian.net sid-snapshots Release [50.2kB]
Get:6 http://ftp.de.debian.org sid Release [104kB]
Get:7 http://live.debian.net sid-snapshots/main Sources [2456B]
Get:8 http://live.debian.net sid-snapshots/main i386 Packages [3345B]
Get:9 http://ftp.de.debian.org sid/main i386 Packages [6838kB]
Fetched 7000kB in 13s (529kB/s)
W: Failed to fetch file:/live/image/debian/dists/sid/main/binary-i386/Packages.gz File not found

E: Some index files failed to download, they have been ignored, or old ones used instead.
LH='1'
P: Begin unmounting filesystems...
# ---

I didn't check the lb3 code yet.

regards,

Mark



--
IT-Infrastrukturen.ORG

ms@it-infrastrukturen.org
http://www.it-infrastrukturen.org

+++ Free infrastructure software for all. +++

--- lb_chroot_sources_ORIG	2010-09-27 14:46:25.000000000 +0200
+++ lb_chroot_sources	2010-09-28 01:05:14.000000000 +0200
@@ -230,6 +230,10 @@
 
 			if Find_files chroot/root/local-packages/*.deb
 			then
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				# If we bootstrapped a minimal chroot, we need
 				# to install apt-utils before we have have
 				# completed all the indices.
@@ -239,6 +243,11 @@
 						;;
 				esac
 
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+				fi
+
 				# Check depends
 				Check_package chroot/usr/bin/apt-ftparchive apt-utils
 
@@ -411,11 +420,28 @@
 			# Installing aptitude
 			if [ "${LB_APT}" = "aptitude" ] && [ ! -x /usr/bin/aptitude ]
 			then
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				Chroot chroot "apt-get ${APT_OPTIONS} update"
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
 			fi
 
+			if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+			then
+				sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+			fi
 			Apt update
+			if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+			then
+				sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+			fi
+
 			Apt upgrade
 			Apt dist-upgrade
 
@@ -423,7 +449,16 @@
 			if [ -n "${LB_KEYRING_PACKAGES}" ]
 			then
 				Chroot chroot "apt-get --yes --force-yes install ${LB_KEYRING_PACKAGES}"
+
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 				Apt update
+				if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+				then
+					sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+				fi
 			fi
 
 			if [ "${LB_CACHE_INDICES}" = "true" ]
@@ -641,7 +676,15 @@
 		fi
 
 		# Updating indices
+		if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+		then
+			sed -i 's|^\(deb[-]*[a-z]* file:/live/image/debian\)|#@lb build@#\1|' chroot/etc/apt/sources.list.d/live-media.list
+		fi
 		Apt update
+		if [ -f chroot/etc/apt/sources.list.d/live-media.list ]
+		then
+			sed -i 's|^#@lb build@#||' chroot/etc/apt/sources.list.d/live-media.list
+		fi
 
 		# Cleaning apt package cache
 		rm -rf chroot/var/cache/apt
--- lb_binary_rootfs_ORIG	2010-09-28 01:09:41.000000000 +0200
+++ lb_binary_rootfs	2010-09-27 20:25:21.000000000 +0200
@@ -413,7 +413,7 @@
 		;;
 esac
 
-rm -f chroot/etc/apt/sources.list.d/live-media.list
+#rm -f chroot/etc/apt/sources.list.d/live-media.list
 
 for STAGE in ${LB_CACHE_STAGES}
 do

Reply to: