Package: ltsp-server Version: 0.56debian2 Severity: important Tags: patch
A new version of apt just entered etch/testing, and this broken ltsp. Part of the problem is the fact that debootstrap tries to install libsigc++-1.2-5c102, which is no longer in etch (bug g#334506), and another part of the problem is the fact that the apt installed by debootstrap refuses to install packages automatically because the mirror is unverified. The first is a bug in debootstrap, while the second would be argued to be a bug in either debootstrap or apt. This patch works around the problem by excluding the package libsigc++-1.2-5c102, and by installing gnupg and adding the archive key for apt. tester:~# diff -u /usr/sbin/ltsp-build-client /tmp/ltsp-build-client --- /usr/sbin/ltsp-build-client 2005-10-18 14:02:02.000000000 +0200 +++ /tmp/ltsp-build-client 2005-10-18 14:34:41.000000000 +0200 @@ -78,7 +78,7 @@ test -z "$MIRROR" && MIRROR="http://http.us.debian.org/debian" test -z "$EARLY_PACKAGES" && EARLY_PACKAGES="x-window-system-core ltsp-client discover1 mdetect xresprobe udhcpc udev devfsd" test -z "$LATE_PACKAGES" && LATE_PACKAGES="kernel-image-netbootable" - test -z "$EXCLUDE" && EXCLUDE="libpcap0.7,libgnutls11,liblockfile1,libpcre3,libtasn1-2,libopencdk8,liblzo1,info,manpages,man-db,libgcrypt11,libgdbm3,libgpg-error0,groff-base,at,cron,logrotate,exim4-config,exim4,exim4-base,exim4-daemon-light,ipchains,mailx,pppconfig,pppoe,pppoeconf,tasksel,base-config,apt-utils,dhcp-client,fdutils,iptables,ppp,whiptail,ed,nvi" + test -z "$EXCLUDE" && EXCLUDE="libpcap0.7,libgnutls11,liblockfile1,libpcre3,libtasn1-2,libopencdk8,liblzo1,info,manpages,man-db,libgcrypt11,libgdbm3,libgpg-error0,groff-base,at,cron,logrotate,exim4-config,exim4,exim4-base,exim4-daemon-light,ipchains,mailx,pppconfig,pppoe,pppoeconf,tasksel,base-config,apt-utils,dhcp-client,fdutils,iptables,ppp,whiptail,ed,nvi,libsigc++-1.2-5c102" ;; esac @@ -111,7 +111,7 @@ fi if [ -n "$EXCLUDE" ] ; then - DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --exclude=$EXCLUDE" + DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --include=gnupg --exclude=$EXCLUDE" fi # If debootstrap support dependency resolving, use it @@ -129,6 +129,10 @@ echo mousedev >> $ROOT/etc/modules test -f $ROOT/etc/apt/sources.list && mv -vf $ROOT/etc/apt/sources.list $ROOT/etc/apt/sources.list.old + +# Add APT key +chroot $ROOT apt-key add /usr/share/apt/debian-archive.gpg + for mirror in "$MIRROR $DIST $COMPONENTS" "$EXTRA_MIRROR" "$SECURITY_MIRROR" ; do if [ -n "$mirror" ]; then echo "deb $mirror" >> $ROOT/etc/apt/sources.list -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]