apt-get update GPG Error - Couldn't access keyring

Lesenswerte Artikel, Anleitungen und Diskussionen
rudi
Posts: 69
Joined: 2004-12-08 19:10

apt-get update GPG Error - Couldn't access keyring

Post by rudi » 2005-07-02 19:33

Hallo,

wie unschwer erkennbar ist dort sarge drauf. Alles aktuell.
Seit heute habe ich plötzlich diesen Fehler:

Code: Select all

sarge2:/# apt-get update
Get:1 http://ftp.de.debian.org sarge/non-US Release.gpg [197B]                                            
Get:2 http://ftp.de.debian.org sarge/non-US Release [18.4kB]                                              
Get:3 http://security.debian.org sarge/updates Release.gpg [197B]                               
.
.
.
Fetched 30.9kB in 9s (3222B/s)
Reading package lists... Done
W: GPG error: http://security.debian.org sarge/updates Release: Couldn't access keyring: No such file or directory
W: GPG error: http://ftp.de.debian.org sarge/non-US Release: Couldn't access keyring: No such file or directory
W: GPG error: http://ftp.us.debian.org sarge Release: Couldn't access keyring: No such file or directory
W: You may want to run apt-get update to correct these problems
Habe das Kommando selbstverständlich als root-User ausgeführt.
Geändert habe ich am Server nichts (eigentlich)!

Meine /etc/apt/sources.list sieht so aus:

Code: Select all

deb http://ftp.us.debian.org/debian/ sarge main non-free contrib
deb http://ftp.de.debian.org/debian-non-US sarge/non-US main contrib non-free
deb http://security.debian.org/ sarge/updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ sarge main contrib non-free
deb-src http://ftp.de.debian.org/debian-non-US sarge/non-US main contrib non-free
Falls ihr noch mehr Auschnitte braucht sagt bescheid!
Gruß Rudi

PS: gegoogelt habe ich, keine Lösung gefunden.
PPS: im Forum habe ich über die Suche leider nichts gefunden.

User avatar
Joe User
Project Manager
Project Manager
Posts: 11578
Joined: 2003-02-27 01:00
Location: Hamburg

Re: apt-get update GPG Error - Couldn't access keyring

Post by Joe User » 2005-07-02 20:15

Entweder Du importierst den fehlenden GPG-Key, oder Du deaktivierst die Ã?berprüfung der GPG-Signierung:
apt4rpm: /etc/apt/apt.conf.d/gpg-checker.conf -> GPG::Check false;
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

rudi
Posts: 69
Joined: 2004-12-08 19:10

Re: apt-get update GPG Error - Couldn't access keyring

Post by rudi » 2005-07-02 20:41

Wie importiere ich die fehlenden Keys?
Soll "GPG::Check false;" in die /etc/apt/apt.conf.d/gpg-checker.conf rein?

Schonmal vielen Dank!

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: apt-get update GPG Error - Couldn't access keyring

Post by Roger Wilco » 2005-07-03 14:00

rudi wrote:Wie importiere ich die fehlenden Keys?

Code: Select all

man gpg
rudi wrote:Soll "GPG::Check false;" in die /etc/apt/apt.conf.d/gpg-checker.conf rein?
Ja.

rudi
Posts: 69
Joined: 2004-12-08 19:10

Re: apt-get update GPG Error - Couldn't access keyring

Post by rudi » 2005-07-03 19:02

Das das über die --import Funktion geht weiß ich, aber wo bekomme ich die Keys her? Mit "GPG::Check false;" klappt das leider nicht ganz.

Hier mal ein Auszug aus apt-config dump :

Code: Select all

sarge2:/# apt-config dump
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
GPG "";
GPG::Check "false";

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: apt-get update GPG Error - Couldn't access keyring

Post by Roger Wilco » 2005-07-03 20:08


rudi
Posts: 69
Joined: 2004-12-08 19:10

Re: apt-get update GPG Error - Couldn't access keyring

Post by rudi » 2005-07-03 23:18

An alle mit dem gleichen Problem:

1. apt-get install debian-keys
2. apt-get install gnupg
3. gpg --import /usr/share/keyrings/debian-keyring.gpg
4. apt-key add /usr/share/keyrings/debian-role-keys.gpg
5. apt-get update

läuft!