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

Bug#703146: apt: BADSIG AED4B06F473041FA Debian Archive Automatic Signing Key (6.0/squeeze)?



I suggest to add a command "rm -f $reldest" before the gpg command, as attached. Otherwise although it works for debootstrap, however, when using with Debian live-build, it will enter interactive mode:
=========================================
P: If the following stage fails, the most likely cause of the problem is with your mirror configuration, a caching proxy or the sid distribution.
P: Running debootstrap...
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 9FED2BCBDCD29CDF762678CBAED4B06F473041FA)
File `/work/debian-live/chroot/var/lib/apt/lists/debootstrap.invalid_dists_sid_Release' exists. Overwrite? (y/N)
=========================================

My 2 cents.

Steven.

--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0  8796 11C1 12DA 47CF 935C
--- functions.orig	2013-03-20 11:30:46.000000000 +0800
+++ functions	2013-03-20 09:35:10.000000000 +0800
@@ -530,7 +530,8 @@
 		warning KEYRING "Cannot check Release signature; keyring file not available %s" "$KEYRING_WANTED"
 	fi
 	if [ "$release_file_variant" = "IN" ]; then
-		mv "$relsigdest" "$reldest"
+		rm -f $reldest
+                gpg --output "$reldest" --decrypt --keyring "$KEYRING" --ignore-time-conflict "$relsigdest"
 	fi
 }
 

Reply to: