Fix --add-apt-source=ppa for focal
Two linked issues on focal
:
-
First one is the
Signed-By
field supporting only fingerprints, not the key itself directly. This raised the following error:E: Invalid value set for option Signed-By regarding source https://ppa.launchpadcontent.net/ubuntu-security-proposed/ppa/ubuntu/ focal (not a fingerprint)
This is worked around by raising the minimal
apt
version to unlockdeb822
support to 2.3.10, which has the following in its changelog:Add support for embedding PGP keys into Signed-By in deb822 sources
-
When falling back to non
deb822
sources for focal,apt-key
starts complaining aboutstdout
not being a terminal: Warning: apt-key output should not be parsed (stdout is not a terminal) This is worked around with theAPT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1
environment variable.