How Do You Troubleshoot “The repository is not updated and the previous index files will be used.” when You Try to Update Linux?

Problem scenario
You run this: sudo apt -y update

You get this output that includes an error message:

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 https://dl.google.com/linux/chrome/deb stable InRelease [1,825 B]
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Err:4 https://dl.google.com/linux/chrome/deb stable InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date. …

How Do You Remove a GPG from Your trusted.gpg.d Directory?

Problem scenario
You are using a Debian distribution of Linux, and there is a .gpg file in your …/trusted.gpg.d/ directory that you want eliminated. What should you do?

Solution
1. Run this: sudo apt-key list

2. Mentally identify the matching key you want deleted. Here is an example of the output from the above command:

/etc/apt/trusted.gpg.d/cccv-archive-key.gpg
——————————————-
pub rsa3072 2021-08-14 [SC] [expired: 2022-04-24]
1234 ABCD 5678 EFGH 9101 IJKL 1112 MNOP 1314 QRST
uid [ …

How Do You Install Firecracker on Ubuntu?

Problem scenario
You want to install Firecracker on Ubuntu. What do you do?

Solution
Run these commands:

release_url=”https://github.com/firecracker-microvm/firecracker/releases”
latest=$(basename $(curl -fsSLI -o /dev/null -w %{url_effective} ${release_url}/latest))
arch=`uname -m`
curl -L ${release_url}/download/${latest}/firecracker-${latest}-${arch}.tgz | tar -xz

sudo mv release-${latest}-$(uname -m)/firecracker-${latest}-$(uname -m) /usr/local/bin/firecracker

sudo setfacl -m u:${USER}:rw /dev/kvm

firecracker –version …

What Is The Command to Find What Version of SSH You Are Using?

Problem scenario
You are concerned you have an older, vulnerable version of OpenSSH. What command should you run to see what version you are using?

Solution
ssh -V

Versions from 4.4p1 up to, but not including, 8.5p1 are not vulnerable due to a transformative patch for CVE-2006-5051, which made a previously unsafe function secure.

https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server

…

How Do You Swap a Cryptocurrency in Coinbase Wallet when You Get “You need ETH before you can make a transaction on the Ethereum network” as an Error?

Problem scenario
You are using the Coinbase wallet. You try to swap a currency. You click on “Find best price.” But you see “You need ETH before you can make a transaction on the Ethereum network.”

You do have ETH in your wallet. How do you proceed?

Possible Solution #1
Use the Coinbase Wallet app on a phone instead of the website version.

…

How Do You Use PowerShell to Correct the Time on Your Windows Machine?

Problem scenario
You are trying to correct the time of your Windows machine. You run “w32tm /resynch”, but you get “The following error occurred: The service has not been started. (0x80070426)”. What should you do?

Solution

  1. Open PowerShell as administrator.
  2. Run these five commands:

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /resync /nowait

If you wanted a non-PowerShell method,

…

Why Does the Declaration of Independence Study Guide say Carter Braxton died in 1761?

Problem scenario
The “brief biographies of the signers” of the laminated guide of The Declaration of Independence (a QuickStudy Academic publication) indicates that Carter Braxton died in 1761. Why is this?

Answer
It is a mistake. He died in 1797 according to https://encyclopediavirginia.org/entries/braxton-carter-1736-1797/

The laminated guide is not bad all-in-all. You can buy it on Amazon.

…