linux:apt-key-error
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:apt-key-error [2022/03/05 15:23] – Wulf Rajek | linux:apt-key-error [2024/08/19 10:35] (current) – Wulf Rajek | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEY | sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEY | ||
| </ | </ | ||
| + | |||
| + | |||
| + | For OpenSuse repositories it might be required to delete, redownload and reinsert the keys similar to the following examples: | ||
| + | < | ||
| + | sudo rm / | ||
| + | sudo apt-key --keyring / | ||
| + | wget -nv https:// | ||
| + | sudo apt-key add - < Release.key | ||
| + | sudo apt-key export 876D807E | sudo gpg --dearmour -o / | ||
| + | sudo apt-key --keyring / | ||
| + | sudo vi / | ||
| + | sudo apt-get update | ||
| + | |||
| + | |||
| + | sudo apt-key --keyring / | ||
| + | wget -nv http:// | ||
| + | sudo apt-key add - < Release.key | ||
| + | sudo apt-key export 4C70D8B5 | sudo gpg --dearmour -o / | ||
| + | sudo apt-key --keyring / | ||
| + | sudo apt-get update | ||
| + | </ | ||
| + | |||
| ===== not configured yet ===== | ===== not configured yet ===== | ||
| Line 45: | Line 67: | ||
| sudo dpkg --configure -a | sudo dpkg --configure -a | ||
| </ | </ | ||
| + | |||
| + | ===== apt-key deprecated ===== | ||
| + | |||
| + | Apt Error: " | ||
| + | |||
| + | Find the repository causing the error. Note that the apt-key output does not contain the url but descriptions and it might be difficult to find the relevant entry. | ||
| + | < | ||
| + | sudo apt-key list | grep -B 2 -i something | ||
| + | </ | ||
| + | |||
| + | Once the entry is found, use the last 2 blocks of 4 characters of the key id to export it and then create a separate gpg file fir it: | ||
| + | < | ||
| + | sudo apt-key export 12345678 | sudo gpg --dearmour -o / | ||
| + | </ | ||
| + | |||
| + | Finally, the old key id can be removed from the trusted.gpg file: | ||
| + | < | ||
| + | sudo apt-key --keyring / | ||
| + | </ | ||
| + | |||
| + | see this for newer and secure method: | ||
| + | https:// | ||
| + | ===== apt fastest mirror ===== | ||
| + | |||
| + | apt-get now supports a ' | ||
| + | |||
| + | Follow this with: | ||
| + | < | ||
| + | |||
| + | Adjust for the appropriate ubuntu distribution. | ||
| + | < | ||
| + | deb mirror:// | ||
| + | deb mirror:// | ||
| + | deb mirror:// | ||
| + | deb mirror:// | ||
| + | </ | ||
| + | |||
| + | Do an update for apt to get/select the best mirror before any installs: | ||
| + | < | ||
| + | |||
linux/apt-key-error.1646493783.txt.gz · Last modified: (external edit)