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.

$150K MiniMax AI Agent Challenge — Build Smarter, Remix Bolder, Win Bigger!

Join the $150k MiniMax AI Agent Challenge — Build your first AI Agent 🤖

Developers, innovators, and AI tinkerers, build your AI Agent and win $150,000 in cash. 💰

Read more →

Top comments (0)

Developer-first embedded dashboards

Developer-first embedded dashboards

Embed in minutes, load in milliseconds, extend infinitely. Import any chart, connect to any database, embed anywhere. Scale elegantly, monitor effortlessly, CI/CD & version control.

Get early access

Join the Real-Time AI Agents Challenge: $5,000 in Prizes!

Put yourself at the forefront of AI agent development and build with n8n's automation platform combined with Bright Data's web data infrastructure.

Check out the challenge

DEV is bringing live events to the community. Dismiss if you're not interested. ❤️