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

Bug#412156: marked as done (apt-key update deletes legitimate keys)



Your message dated Mon, 26 Feb 2007 21:47:03 +0000
with message-id <E1HLngV-0000Jp-7f@ries.debian.org>
and subject line Bug#412572: fixed in apt 0.6.46.4-0.1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apt
Version: all

Recently building a sid debian-live I stumbled on the
W: GPG error: http://192.168.0.1 sid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A70DAF536070D3A1
doing some research I found that 'apt-key update' may be in cause.

update executes (done twice, first with debian-archive-keyring postinst and then the apt one) :
# gpg --no-options --no-default-keyring
  --secret-keyring /etc/apt/secring.gpg
  --trustdb-name /etc/apt/trustdb.gpg
  --keyring /usr/share/keyrings/debian-archive-removed-keys.gpg
  --with-colons --list-keys | awk  '/^pub/{FS=":";print $5 }' 
Key
F1D53D8C4F368D5D
E415B2B4B5F5BBED

while it is supposed to be :
6FFA8EF91DB114E0
F1D53D8C4F368D5D
E415B2B4B5F5BBED

I suggest setting the field separator before the regexp match (or just using -F":")

Cheers

-- 
Mathieu


--- apt-key	2006-12-14 12:16:22.000000000 +0100
+++ apt-key.new	2007-02-24 01:48:55.000000000 +0100
@@ -24,9 +24,9 @@
     $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export | $GPG --ignore-time-conflict --import
 
     # remove no-longer used keys
-    keys=`$GPG_CMD --keyring $REMOVED_KEYS --with-colons --list-keys|awk '/^pub/{FS=":";print $5}'`
+    keys=`$GPG_CMD --keyring $REMOVED_KEYS --with-colons --list-keys|awk '{FS=":"}/^pub/{print $5}'`
     for key in $keys; do
-	if $GPG --list-keys --with-colons | awk '/^pub/{FS=":";print $5}'|grep -q $key; then
+	if $GPG --list-keys --with-colons | awk '{FS=":"}/^pub/{print $5}'|grep -q $key; then
 	    $GPG --quiet --batch --delete-key --yes ${key}
 	fi
     done


--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 0.6.46.4-0.1

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive:

apt-doc_0.6.46.4-0.1_all.deb
  to pool/main/a/apt/apt-doc_0.6.46.4-0.1_all.deb
apt-utils_0.6.46.4-0.1_i386.deb
  to pool/main/a/apt/apt-utils_0.6.46.4-0.1_i386.deb
apt_0.6.46.4-0.1.dsc
  to pool/main/a/apt/apt_0.6.46.4-0.1.dsc
apt_0.6.46.4-0.1.tar.gz
  to pool/main/a/apt/apt_0.6.46.4-0.1.tar.gz
apt_0.6.46.4-0.1_i386.deb
  to pool/main/a/apt/apt_0.6.46.4-0.1_i386.deb
libapt-pkg-dev_0.6.46.4-0.1_i386.deb
  to pool/main/a/apt/libapt-pkg-dev_0.6.46.4-0.1_i386.deb
libapt-pkg-doc_0.6.46.4-0.1_all.deb
  to pool/main/a/apt/libapt-pkg-doc_0.6.46.4-0.1_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 412572@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <joeyh@debian.org> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 26 Feb 2007 16:00:22 -0500
Source: apt
Binary: apt-utils libapt-pkg-doc libapt-pkg-dev apt-doc apt
Architecture: source all i386
Version: 0.6.46.4-0.1
Distribution: unstable
Urgency: emergency
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description: 
 apt        - Advanced front-end for dpkg
 apt-doc    - Documentation for APT
 apt-utils  - APT utility programs
 libapt-pkg-dev - Development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - Documentation for APT development
Closes: 412572
Changes: 
 apt (0.6.46.4-0.1) unstable; urgency=emergency
 .
   * NMU
   * Fix broken use of awk in apt-key that caused removal of the wrong keys
     from the keyring. Closes: #412572
Files: 
 114944263a2ef3dc6153b1571a9948a2 796 admin important apt_0.6.46.4-0.1.dsc
 5f2c7231b17b2d2826e15b4684d25aef 1797866 admin important apt_0.6.46.4-0.1.tar.gz
 e350f8cf1b4bbe9132d6659930459629 89624 doc optional apt-doc_0.6.46.4-0.1_all.deb
 0ee24a708a3169657d9e7c7ea5f8e373 112092 doc optional libapt-pkg-doc_0.6.46.4-0.1_all.deb
 3ae7759d8bf2fe14ea01039f87be63aa 1437270 admin important apt_0.6.46.4-0.1_i386.deb
 ddade31b8e42a0b7d63c560911673130 84050 libdevel optional libapt-pkg-dev_0.6.46.4-0.1_i386.deb
 397325cda544de542c171144462f1430 198216 admin important apt-utils_0.6.46.4-0.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF41Ij2tp5zXiKP0wRAlYCAKDUs6YfYf72eLfbJz/LaP04/b8q7ACgzVkq
iB2ib27cFZbux6CS/8qHg8c=
=1pEl
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: