Welcome

John Weldon profile picture

John Weldon

Recent Content

Here are some recent posts to start with:

Quick Tip: Fix Apt GPG error NO_PUBKEY

In the Ubuntu (Debian) packaging world of Apt, the use of apt-key has been deprecated (other than apt-key del to remove keys).

I’ve run into errors like the following periodically, and have had to spend more time than I should reminding myself of how to fix the issue:

1
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.releases.hashicorp.com jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DA418C88A3219F7B
Wednesday, February 22, 2023

Quick Tip: Get Absolute Path to Directory Script is Running in

When running a bash script, it’s sometimes convenient to get a fully qualified path to the directory that the source of the running script is in.

I continually have to remind myself of the exact syntax for this tip, so I’ve posted it for posterity. This approach should work around most issues of symlinked files, sourced files, etc.

Tuesday, January 17, 2023