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/02/04 12:53] – Wulf Rajek | linux:apt-key-error [2024/08/19 10:35] (current) – Wulf Rajek | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== apt errors ====== | ||
| + | |||
| ===== apt key error ===== | ===== apt key error ===== | ||
| Line 29: | 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 ===== | ||
| + | |||
| + | In case of dpkg dependency errors of a package that isn't configured yet, trigger configuration manually. | ||
| + | Example error: | ||
| + | < | ||
| + | dpkg: dependency problems prevent processing triggers for libglib2.0-0: | ||
| + | | ||
| + | Package libc6:i386 is not configured yet. | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | 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.1643979204.txt.gz · Last modified: (external edit)