User Tools

Site Tools


linux:apt-key-error

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:apt-key-error [2022/12/04 11:22] Wulf Rajeklinux: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
 </code> </code>
 +
 +
 +For OpenSuse repositories it might be required to delete, redownload and reinsert the keys similar to the following examples:
 +<code>
 +sudo rm /usr/share/keyrings/obs-onedrive.gpg
 +sudo apt-key --keyring /etc/apt/trusted.gpg del 876D807E
 +wget -nv https://download.opensuse.org/repositories/home:npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/Release.key -O Release.key
 +sudo apt-key add - < Release.key
 +sudo apt-key export 876D807E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/onedrive.gpg
 +sudo apt-key --keyring /etc/apt/trusted.gpg del 876D807E
 +sudo vi /etc/apt/sources.list.d/onedrive.list 
 +sudo apt-get update
 +
 +
 +sudo apt-key --keyring /etc/apt/trusted.gpg del 4C70D8B5
 +wget -nv http://download.opensuse.org/repositories/graphics:/darktable/xUbuntu_22.04/Release.key -O Release.key
 +sudo apt-key add - < Release.key
 +sudo apt-key export 4C70D8B5 | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/onedrive.gpg
 +sudo apt-key --keyring /etc/apt/trusted.gpg del 4C70D8B5
 +sudo apt-get update
 +</code>
 +
  
 ===== not configured yet ===== ===== not configured yet =====
Line 52: Line 74:
 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. 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.
 <code> <code>
-sudo apt-key list+sudo apt-key list | grep -B 2 -i something
 </code> </code>
  
Line 64: Line 86:
 sudo apt-key --keyring /etc/apt/trusted.gpg del 12345678 sudo apt-key --keyring /etc/apt/trusted.gpg del 12345678
 </code> </code>
 +
 +see this for newer and secure method:
 +https://stackoverflow.com/questions/68992799/warning-apt-key-is-deprecated-manage-keyring-files-in-trusted-gpg-d-instead/71384057#71384057
 +===== apt fastest mirror =====
 +
 +apt-get now supports a 'mirror' method that will automatically select a good mirror based on your location. Adding the following at the top of ''/etc/apt/sources.list'' file will pick the best mirror:
 +
 +Follow this with:
 +<code>vi /etc/apt/sources.list</code>
 +
 +Adjust for the appropriate ubuntu distribution.
 +<code>
 +deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse
 +deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse
 +deb mirror://mirrors.ubuntu.com/mirrors.txt focal-backports main restricted universe multiverse
 +deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse
 +</code>
 +
 +Do an update for apt to get/select the best mirror before any installs:
 +<code>apt-get update</code>
 +
  
linux/apt-key-error.1670152950.txt.gz · Last modified: 2023/05/29 11:53 (external edit)