DEV Community

Tharun Shiv
Tharun Shiv

Posted on

1 1

[Solved] gpgkeys: protocol `https' not supported

Problem:

sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
Executing: /tmp/tmp.o2I4wt3O3r/gpg.1.sh --fetch-keys
https://mariadb.org/mariadb_release_signing_key.asc
gpgkeys: protocol `https' not supported
gpg: no handler for keyserver scheme `https'
gpg: WARNING: unable to fetch URI https://mariadb.org/mariadb_release_signing_key.asc: keyserver error
Enter fullscreen mode Exit fullscreen mode

Method 1: Install gnupg-curl

apt-get update
apt-get install gnupg-curl
Enter fullscreen mode Exit fullscreen mode

Method 2: If the above does not resolve the issue, then get the key using CURL and add it manually

curl 'https://mariadb.org/mariadb_release_signing_key.asc' | apt-key add -
Enter fullscreen mode Exit fullscreen mode

Method 3: If you trust the server, then use -k option to skip CA cert verification

curl -k 'https://mariadb.org/mariadb_release_signing_key.asc' | apt-key add -
Enter fullscreen mode Exit fullscreen mode

The method 2 worked for me on Ubuntu Xenial.

Comment if it helped you or if you are aware of a better solution.

Thanks.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay