touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #87475
[Bug 1471024] [NEW] apt-key cannot handle spaces in --keyring filename
Public bug reported:
Any apt-key command with a keyring option with a space fails:
$ apt-key --keyring /mnt/sec-machines/apport-retrace/Ubuntu\ 15.10/apt/etc/apt/trusted.gpg.d/brian-murray-ppa.gpg list
usage: gpg [options] [filename]
[ 2:35PM 10435 ] [ bdmurray@impulse:/tmp ]
$ apt-key --keyring /mnt/sec-machines/apport-retrace/Ubuntu\ 15.10/apt/etc/apt/trusted.gpg adv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.G5RYVPgFgS --no-auto-check-trustdb --trust-model always --keyring /mnt/sec-machines/apport-retrace/Ubuntu 15.10/apt/etc/apt/trusted.gpg --primary-keyring /mnt/sec-machines/apport-retrace/Ubuntu 15.10/apt/etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
usage: gpg [options] [filename]
This is because gpg isn't passed the keyring file name with the space.
Below we can see apt-key create a folder named foo instead of using the
passed "foo bar".
$ apt-key --keyring /tmp/foo\ bar adv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.KlGKirY5Uk --no-auto-check-trustdb --trust-model always --keyring /tmp/foo bar --primary-keyring /tmp/foo bar --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
gpg: keyring `/tmp/foo' created
usage: gpg [options] [filename]
** Affects: apt (Ubuntu)
Importance: Undecided
Status: New
** Tags: wily
** Tags added: wily
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1471024
Title:
apt-key cannot handle spaces in --keyring filename
Status in apt package in Ubuntu:
New
Bug description:
Any apt-key command with a keyring option with a space fails:
$ apt-key --keyring /mnt/sec-machines/apport-retrace/Ubuntu\ 15.10/apt/etc/apt/trusted.gpg.d/brian-murray-ppa.gpg list
usage: gpg [options] [filename]
[ 2:35PM 10435 ] [ bdmurray@impulse:/tmp ]
$ apt-key --keyring /mnt/sec-machines/apport-retrace/Ubuntu\ 15.10/apt/etc/apt/trusted.gpg adv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.G5RYVPgFgS --no-auto-check-trustdb --trust-model always --keyring /mnt/sec-machines/apport-retrace/Ubuntu 15.10/apt/etc/apt/trusted.gpg --primary-keyring /mnt/sec-machines/apport-retrace/Ubuntu 15.10/apt/etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
usage: gpg [options] [filename]
This is because gpg isn't passed the keyring file name with the space.
Below we can see apt-key create a folder named foo instead of using
the passed "foo bar".
$ apt-key --keyring /tmp/foo\ bar adv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.KlGKirY5Uk --no-auto-check-trustdb --trust-model always --keyring /tmp/foo bar --primary-keyring /tmp/foo bar --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0BA6DE0806196831530C54F0915A9DFB6AF4FEF1
gpg: keyring `/tmp/foo' created
usage: gpg [options] [filename]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1471024/+subscriptions
Follow ups
References