sa1 / launchpad-getkeys Goto Github PK
View Code? Open in Web Editor NEWAutomatically import missing keys in Ubuntu
License: GNU General Public License v3.0
Automatically import missing keys in Ubuntu
License: GNU General Public License v3.0
launchpad-getkeys breaks apt keys db with new GPG tools present in Ubuntu 18.04.
New GPG tools have different default format for keyring files called
keybox. keybox is not supported by apt-key and other apt tools.
So, when older script tries to add key to /etc/apt/trusted.gpg,
after that file can not be read by apt tools and apt tools start to fail hard
(not with warnings, but with real errors and non zero return codes).
So, fix in
#3
creates keyring on side and then exports key in old fashioned
format to /etc/apt/trusted.gpg.d/
where it is picked up by apt tools normally.
Without proxy, import of keys fails on Ubuntu 18.04 with:
gpg: keyserver receive failed: IPC syntax error
See actual log below.
$ sudo launchpad-getkeys
Please wait... launchpad-getkeys is running an update so
it can detect the missing GPG keys
Trying to import all the missing keys
Executing: /tmp/apt-key-gpghome.H3AosliOXC/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options http-proxy= --recv-keys 0E08A149DE57BFBE
gpg: keyserver receive failed: IPC syntax error
Executing: /tmp/apt-key-gpghome.z5nl9JVhCf/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options http-proxy= --recv-keys 0E08A149DE57BFBE
gpg: keyserver receive failed: IPC syntax error
Executing: /tmp/apt-key-gpghome.Eoy9h0GIvD/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options http-proxy= --recv-keys
launchpad-getkeys has finished importing all missing GPG keys.
Try running sudo apt-get update - you shouldn't see any key
errors any more.
.............................................................
Note that launchpad-getkeys imports missing GPG keys but does
not fix broken keys.
It is visible that gpg is not able to work correctly with empty value for proxy:
--keyserver-options http-proxy=
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.