--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt: export/exportall commands apparently useless if not parsable
- From: Marc Lehmann <debian-reportbug@plan9.de>
- Date: Sat, 01 Jun 2019 15:35:32 +0200
- Message-id: <155939613251.1205.8349834153395790166.reportbug@cerebro.laendle>
Package: apt
Version: 1.8.2
Severity: minor
Dear Maintainer,
I have a script that runs "apt-key exportall" for backup-reasons. The
command diverts output to a file, and now outputs the following warning:
Warning: apt-key output should not be parsed (stdout is not a terminal)
That begs the question what export/exportall are meant for - their output
is clearly NOT human-readable but computer-parsable. If the output
is not meant to be parsed (presumably by computer program), and not
human-readable, do they have a purpose at all?
-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-updates'), (500, 'stable-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32
Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages apt depends on:
ii adduser 3.118
ii debian-archive-keyring 2019.1
ii gpgv 2.2.12-1
ii libapt-pkg5.0 1.8.2
ii libc6 2.28-10
ii libgcc1 1:8.3.0-6
ii libgnutls30 3.6.7-3
ii libseccomp2 2.3.3-4
ii libstdc++6 8.3.0-6
Versions of packages apt recommends:
ii ca-certificates 20190110
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.8.11-7
ii dpkg-dev 1.19.6
ii gnupg 2.2.12-1
ii gnupg2 2.2.12-1
ii powermgmt-base 1.34
ii synaptic 0.84.6
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: Marc Lehmann <debian-reportbug@plan9.de>, 929836-close@bugs.debian.org
- Subject: Re: Bug#929836: apt: export/exportall commands apparently useless if not parsable
- From: Julian Andres Klode <jak@debian.org>
- Date: Tue, 9 Jul 2019 09:27:21 +0200
- Message-id: <20190709092547.GA27000@debian.org>
- In-reply-to: <155939613251.1205.8349834153395790166.reportbug@cerebro.laendle>
- References: <155939613251.1205.8349834153395790166.reportbug@cerebro.laendle>
On Sat, Jun 01, 2019 at 03:35:32PM +0200, Marc Lehmann wrote:
> Package: apt
> Version: 1.8.2
> Severity: minor
>
> Dear Maintainer,
>
> I have a script that runs "apt-key exportall" for backup-reasons. The
> command diverts output to a file, and now outputs the following warning:
>
> Warning: apt-key output should not be parsed (stdout is not a terminal)
>
> That begs the question what export/exportall are meant for - their output
> is clearly NOT human-readable but computer-parsable. If the output
> is not meant to be parsed (presumably by computer program), and not
> human-readable, do they have a purpose at all?
apt-key is a legacy tool, just don't use it. It might not even work,
as it requires gpg for these things but does not depend on it.
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
--- End Message ---