Skip to content

Instantly share code, notes, and snippets.

@mrtrkmn
Created May 27, 2022 18:53
Show Gist options
  • Save mrtrkmn/8e9bd1a765176b66f30f482dae1543e6 to your computer and use it in GitHub Desktop.
Save mrtrkmn/8e9bd1a765176b66f30f482dae1543e6 to your computer and use it in GitHub Desktop.
Add GPG key when there is an error on { apt update } command
#!/bin/bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment