LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   bad signature when running aptitude update (https://www.linuxquestions.org/questions/debian-26/bad-signature-when-running-aptitude-update-424153/)

microsoft/linux 03-12-2006 12:44 PM

bad signature when running aptitude update
 
When I tried to run aptitude update today, I got the error message
Code:

W: GPG error: ftp://ftp.us.debian.org testing Release: The following signatures were invalid: BADSIG 010908312D230C5F Debian Archive Automatic Signing Key (2006) <ftpmaster@debian.org>
W: You may want to run apt-get update to correct these problems

I'm running Debian Etch. What do I need to do to fix this?

comprookie2000 03-12-2006 01:16 PM

This may work;
Code:

    $ gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 010908312D230C5F
    $ gpg --armor --export 010908312D230C5F | sudo apt-key add -
    $ apt-get update

http://planet-geek.com/archives/2005_12.html

rickh 03-12-2006 01:28 PM

...or maybe this:
Quote:

Apparently, as the year had now become 2006, I had to fetch the Debian Archive Automatic Signing Key for 2006. I found directions on how to fix this. All you have to do is run the following:

1. Fetch and import the Debian key for the current year (replacing “2006″ with the current year) by running the following as root (all on one line):

wget http://ftp-master.debian.org/ziyi_key_2006.asc -O - | apt-key add -

You might get this warning:

gpg: no ultimately trusted keys found

and that should be okay. (The warning is explained in the Debian Wiki.)
2. Check that the key was successfully imported like so (run it as root):

apt-key list

You should see the key you just added:


...
pub 1024D/2D230C5F 2006-01-03 [expires: 2007-02-07]
uid Debian Archive Automatic Signing Key (2006)

microsoft/linux 03-12-2006 08:40 PM

I tried both of the above suggestions, and the key was listed when I ran
Code:

apt-key list
but it still gives me that error. Other suggestions?

wartstew 03-12-2006 11:00 PM

:cry:I get the same thing. My key claims to be up to date. I guess the Debian repository is broken. Weren't they talking about putting in a new server earlier this week? Perhaps that's the problem.

microsoft/linux 03-12-2006 11:06 PM

ok, well it's good to know it's not just me then. Hopefully one of us will find an answer.

nx5000 03-13-2006 03:27 AM

Here's one third, should be the cleanest :

Code:

apt-get install debian-archive-keyring

microsoft/linux 03-13-2006 07:56 AM

which doesn't work either. I get an error about being unable to open the file. I have a feeling their moving servers, as someone suggested above, because apt was unable to find some updates.

halo14 03-13-2006 08:11 AM

This is a common occurance with the 2006 key. All the solutions posted above should have fixed the issue though. However; at the risk of redundancy, please do the following, single line command, as root user:
Code:

gpg --keyserver subkeys.pgp.net --recv-keys 2D230C5F ; gpg --export 084750FC01A6D388A643D869010908312D230C5F | apt-key add -
This has worked for everyone I have seen with this problem. Good luck.

microsoft/linux 03-13-2006 06:34 PM

it seemd to work fine, until I tried to run
Code:

aptitude update
I then got this output
Code:

Reading package lists... Done
Building dependency tree... Done
Reading extended state information     
Initializing package states... Done
Building tag database... Done     
Get:1 http://apt.cerkinfo.be unstable Release.gpg [191B]     
Hit http://apt.cerkinfo.be unstable Release                   
Hit http://apt.cerkinfo.be unstable/main Packages           
Get:2 ftp://ftp.us.debian.org testing Release.gpg
Hit http://apt.cerkinfo.be unstable/contrib Packages           
Hit ftp://ftp.nerim.net etch Release.gpg                       
Ign ftp://ftp.us.debian.org testing Release.gpg
Get:3 ftp://ftp.us.debian.org testing Release
Get:4 ftp://ftp.nerim.net etch Release [2864B]
Ign ftp://ftp.us.debian.org testing Release         
Get:5 ftp://ftp.us.debian.org testing/main Packages 
Ign ftp://ftp.us.debian.org testing/main Packages   
Get:6 ftp://ftp.us.debian.org testing/contrib Packages
Hit ftp://ftp.nerim.net etch/main Packages
Ign ftp://ftp.us.debian.org testing/contrib Packages
Get:7 ftp://ftp.us.debian.org testing/non-free Packages
Ign ftp://ftp.us.debian.org testing/non-free Packages
Get:8 ftp://ftp.us.debian.org testing/main Sources
Ign ftp://ftp.us.debian.org testing/main Sources
Get:9 ftp://ftp.us.debian.org testing/contrib Sources
Ign ftp://ftp.us.debian.org testing/contrib Sources
Get:10 ftp://ftp.us.debian.org testing/non-free Sources
Ign ftp://ftp.us.debian.org testing/non-free Sources
Get:11 ftp://ftp.us.debian.org testing/main Packages
Err ftp://ftp.us.debian.org testing/main Packages
  Unable to fetch file, server said 'Failed to open file.  ' [IP: 128.101.240.212 21]
Get:12 ftp://ftp.us.debian.org testing/contrib Packages
Err ftp://ftp.us.debian.org testing/contrib Packages                                                                                         
  Unable to fetch file, server said 'Failed to open file.  ' [IP: 128.101.240.212 21]
Get:13 ftp://ftp.us.debian.org testing/non-free Packages                                                                                     
Err ftp://ftp.us.debian.org testing/non-free Packages                                                                                       
  Unable to fetch file, server said 'Failed to open file.  ' [IP: 128.101.240.212 21]
Get:14 ftp://ftp.us.debian.org testing/main Sources                                                                                         
Err ftp://ftp.us.debian.org testing/main Sources                                                                                             
  Unable to fetch file, server said 'Failed to open file.  ' [IP: 128.101.240.212 21]
Get:15 ftp://ftp.us.debian.org testing/contrib Sources                                                                                       
Err ftp://ftp.us.debian.org testing/contrib Sources                                                                                         
  Unable to fetch file, server said 'Failed to open file.  ' [IP: 128.101.240.212 21]
Get:16 ftp://ftp.us.debian.org testing/non-free Sources                                                                                     
Err ftp://ftp.us.debian.org testing/non-free Sources                                                                                         
  Unable to fetch file, server said 'Failed to open file.  ' [IP: 128.101.240.212 21]
Get:17 ftp://ftp.real-time.com etch Release.gpg                                                                                             
Ign ftp://ftp.real-time.com etch Release.gpg                                                                                                 
Hit ftp://ftp.real-time.com etch Release                                                                                                     
Get:18 ftp://ftp.real-time.com etch/custom Packages                                                                                         
Ign ftp://ftp.real-time.com etch/custom Packages                                                                                             
Get:19 ftp://ftp.real-time.com etch/main Packages                                                                                           
Ign ftp://ftp.real-time.com etch/main Packages
Hit ftp://ftp.real-time.com etch/custom Packages
Hit ftp://ftp.real-time.com etch/main Packages
Fetched 2865B in 13s (213B/s)
Reading package lists... Done

Suggestions?

microsoft/linux 03-13-2006 08:14 PM

ok, not getting the error posted above anymore, but running the last suggested command didn't work either.

halo14 03-14-2006 03:36 PM

after importing the key, you need to do apt-get update before aptitude update.

If it's still not working, i would suggest changing the mirror you use...


All times are GMT -5. The time now is 02:28 PM.