Rispondi al commento

Register APT repository key

Versione stampabileVersione stampabile

Here is an useful script to register APT keys, to avoid the "There are no public key available for the following key IDs" warning message.

1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
 
# samu 2010-01-01
# (c) 2010 Samuele ~redShadow~ Santi
# redshadow&hackzine.org - http://www.hackzine.org
# Under Gnu GPL v3
 
KEYID="$1"
 
echo "Registering APT key $1..."
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys "$KEYID"
gpg –export –armor "$KEYID" | apt-key add -

I found that script also here: http://kovyrin.net/2006/11/28/debian-problem-apt-get-update/ (and probably, hundreds of debian system administrators wrote that two commands..), where I found in the comments other two methods to do that (but they do not seem to work for everybody..)

The first, from: http://www.debian-administration.org/users/dkg/weblog/11

# apt-get install debian-archive-keyring

or, if you have unstable repositories:

# apt-get install debian-archive-keyring/unstable

Another method, is just to run:

# apt-key update

"This will obtain the necesary keys and import them. No need to go through gpg directly.". Did not test that, but seems definitely the right way to do this..

Rispondi

  • Indirizzi web o e-mail vengono trasformati in link automaticamente
  • Elementi HTML permessi: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linee e paragrafi vanno a capo automaticamente.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Links to HTML content with 'rel="lightframe"' in the <a> tag will appear in a Lightbox when clicked on.

Maggiori informazioni sulle opzioni di formattazione.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Who Am I?

~redShadow~ A.K.A. Samuele Santi is an Italian Open Source developer, currently working as a freelance developer, mainly in the web applications sector. Favourite programming languages: PHP and, of course, Python!

contact manager (1) apache (1) debian (1) blender (3) aircrack (1) documentation (2) bash (11) dmcrypt (1) circuits (1) algorythms (1) 3d (3) como lake rovers (1) development (11) cars (1) code (3) apt (1) arduino (1) camera mia (1) aoe (1) citroen (1) e-mail (2) doku (1) database (3) debug (1) cryptography (1) backup (3) address book (2) caos (1) archive (1) C++ (2) alcool (1) audio (1) cartoons (1) curl (1) 2v (1) cocktails (1) Drupal (21) blogroll (7) Drupal Forms (1) awstats (3)