LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackpkg refuses to update - always claims a GPG error (http://www.linuxquestions.org/questions/slackware-14/slackpkg-refuses-to-update-always-claims-a-gpg-error-765681/)

black hole sun 10-30-2009 07:30 PM

Slackpkg refuses to update - always claims a GPG error
 
I think I'm missing a package it requires because I installed slack on an eeepc with limited hdd space. Note that I do have installed the various gpg packages. I just don't undertand what's wrong. I've tried a bunch of different mirrors, all with the same result. Any ideas?
I've also tried slackpkg update gpg, to no avail...

Code:

root@darkstar:/home/mouse# slackpkg update

                        Downloading /GPG-KEY...
--2002-02-02 19:54:27--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current//GPG-KEY
          => `/tmp/slackpkg.Lgb4kd/gpgkey'                                                   
Resolving ftp-linux.cc.gatech.edu... 128.61.111.10, 128.61.111.11, 128.61.111.9, ...         
Connecting to ftp-linux.cc.gatech.edu|128.61.111.10|:21... connected.                         
Logging in as anonymous ... Logged in!                                                       
==> SYST ... done.    ==> PWD ... done.                                                       
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current/ ... done.                     
==> SIZE GPG-KEY ... 1565                                                                     
==> PASV ... done.    ==> RETR GPG-KEY ... done.                                             
Length: 1565 (1.5K)                                                                           

100%[===================================================================================>] 1,565      --.-K/s  in 0s     

2002-02-02 19:54:28 (49.0 MB/s) - `/tmp/slackpkg.Lgb4kd/gpgkey' saved [1565]

Updating the package lists...
        Downloading...     
                        Downloading ChangeLog.txt...
--2002-02-02 19:54:28--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/ChangeLog.txt
          => `/tmp/slackpkg.Lgb4kd/ChangeLog.txt'                                                 
Resolving ftp-linux.cc.gatech.edu... 128.61.111.9, 128.61.111.10, 128.61.111.11, ...               
Connecting to ftp-linux.cc.gatech.edu|128.61.111.9|:21... connected.                               
Logging in as anonymous ... Logged in!                                                             
==> SYST ... done.    ==> PWD ... done.                                                           
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current ... done.                           
==> SIZE ChangeLog.txt ... 10650                                                                   
==> PASV ... done.    ==> RETR ChangeLog.txt ... done.                                             
Length: 10650 (10K)                                                                               

100%[===================================================================================>] 10,650      --.-K/s  in 0.08s 

2002-02-02 19:54:29 (132 KB/s) - `/tmp/slackpkg.Lgb4kd/ChangeLog.txt' saved [10650]

Files /var/lib/slackpkg/ChangeLog.txt and /tmp/slackpkg.Lgb4kd/ChangeLog.txt differ

                List of all files
                        Downloading patches/MANIFEST.bz2...
--2002-02-02 19:54:29--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/patches/MANIFEST.bz2
          => `/tmp/slackpkg.Lgb4kd/patches-MANIFEST.bz2'                                                 
Resolving ftp-linux.cc.gatech.edu... 128.61.111.11, 128.61.111.9, 128.61.111.10, ...                     
Connecting to ftp-linux.cc.gatech.edu|128.61.111.11|:21... connected.                                     
Logging in as anonymous ... Logged in!                                                                   
==> SYST ... done.    ==> PWD ... done.                                                                   
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current/patches ... done.                         
==> SIZE MANIFEST.bz2 ... 14                                                                             
==> PASV ... done.    ==> RETR MANIFEST.bz2 ... done.                                                     
Length: 14                                                                                               

100%[===================================================================================>] 14          --.-K/s  in 0.001s 

2002-02-02 19:54:30 (9.24 KB/s) - `/tmp/slackpkg.Lgb4kd/patches-MANIFEST.bz2' saved [14]

                        Downloading slackware/MANIFEST.bz2...
--2002-02-02 19:54:30--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/slackware/MANIFEST.bz2
          => `/tmp/slackpkg.Lgb4kd/slackware-MANIFEST.bz2'                                                 
Resolving ftp-linux.cc.gatech.edu... 128.61.111.10, 128.61.111.11, 128.61.111.9, ...                       
Connecting to ftp-linux.cc.gatech.edu|128.61.111.10|:21... connected.                                       
Logging in as anonymous ... Logged in!                                                                     
==> SYST ... done.    ==> PWD ... done.                                                                     
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current/slackware ... done.                         
==> SIZE MANIFEST.bz2 ... 2239349                                                                           
==> PASV ... done.    ==> RETR MANIFEST.bz2 ... done.                                                       
Length: 2239349 (2.1M)                                                                                     

100%[===================================================================================>] 2,239,349  1.08M/s  in 2.0s   

2002-02-02 19:54:33 (1.08 MB/s) - `/tmp/slackpkg.Lgb4kd/slackware-MANIFEST.bz2' saved [2239349]

                        Downloading extra/MANIFEST.bz2...
--2002-02-02 19:54:33--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/extra/MANIFEST.bz2
          => `/tmp/slackpkg.Lgb4kd/extra-MANIFEST.bz2'                                                 
Resolving ftp-linux.cc.gatech.edu... 128.61.111.9, 128.61.111.10, 128.61.111.11, ...                   
Connecting to ftp-linux.cc.gatech.edu|128.61.111.9|:21... connected.                                   
Logging in as anonymous ... Logged in!                                                                 
==> SYST ... done.    ==> PWD ... done.                                                                 
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current/extra ... done.                         
==> SIZE MANIFEST.bz2 ... 310034                                                                       
==> PASV ... done.    ==> RETR MANIFEST.bz2 ... done.                                                   
Length: 310034 (303K)                                                                                   

100%[===================================================================================>] 310,034      622K/s  in 0.5s   

2002-02-02 19:54:34 (622 KB/s) - `/tmp/slackpkg.Lgb4kd/extra-MANIFEST.bz2' saved [310034]

                        Downloading pasture/MANIFEST.bz2...
--2002-02-02 19:54:34--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/pasture/MANIFEST.bz2
          => `/tmp/slackpkg.Lgb4kd/pasture-MANIFEST.bz2'                                                 
Resolving ftp-linux.cc.gatech.edu... 128.61.111.11, 128.61.111.9, 128.61.111.10, ...                     
Connecting to ftp-linux.cc.gatech.edu|128.61.111.11|:21... connected.                                     
Logging in as anonymous ... Logged in!                                                                   
==> SYST ... done.    ==> PWD ... done.                                                                   
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current/pasture ... done.                         
==> SIZE MANIFEST.bz2 ... 115247                                                                         
==> PASV ... done.    ==> RETR MANIFEST.bz2 ... done.                                                     
Length: 115247 (113K)                                                                                     

100%[===================================================================================>] 115,247      303K/s  in 0.4s   

2002-02-02 19:54:36 (303 KB/s) - `/tmp/slackpkg.Lgb4kd/pasture-MANIFEST.bz2' saved [115247]

                        Downloading testing/MANIFEST.bz2...
--2002-02-02 19:54:36--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/testing/MANIFEST.bz2
          => `/tmp/slackpkg.Lgb4kd/testing-MANIFEST.bz2'                                                 
Resolving ftp-linux.cc.gatech.edu... 128.61.111.10, 128.61.111.11, 128.61.111.9, ...                     
Connecting to ftp-linux.cc.gatech.edu|128.61.111.10|:21... connected.                                     
Logging in as anonymous ... Logged in!                                                                   
==> SYST ... done.    ==> PWD ... done.                                                                   
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current/testing ... done.                         
==> SIZE MANIFEST.bz2 ... 803362                                                                         
==> PASV ... done.    ==> RETR MANIFEST.bz2 ... done.                                                     
Length: 803362 (785K)                                                                                     

100%[===================================================================================>] 803,362      936K/s  in 0.8s   

2002-02-02 19:54:37 (936 KB/s) - `/tmp/slackpkg.Lgb4kd/testing-MANIFEST.bz2' saved [803362]

                Checksums
                        Downloading CHECKSUMS.md5...
--2002-02-02 19:54:37--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/CHECKSUMS.md5
          => `/tmp/slackpkg.Lgb4kd/CHECKSUMS.md5'                                                 
Resolving ftp-linux.cc.gatech.edu... 128.61.111.9, 128.61.111.10, 128.61.111.11, ...               
Connecting to ftp-linux.cc.gatech.edu|128.61.111.9|:21... connected.                               
Logging in as anonymous ... Logged in!                                                             
==> SYST ... done.    ==> PWD ... done.                                                           
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current ... done.                           
==> SIZE CHECKSUMS.md5 ... 648544                                                                 
==> PASV ... done.    ==> RETR CHECKSUMS.md5 ... done.                                             
Length: 648544 (633K)                                                                             

100%[===================================================================================>] 648,544      899K/s  in 0.7s   

2002-02-02 19:54:39 (899 KB/s) - `/tmp/slackpkg.Lgb4kd/CHECKSUMS.md5' saved [648544]

                        Downloading CHECKSUMS.md5.asc...
--2002-02-02 19:54:39--  ftp://ftp-linux.cc.gatech.edu/pub/slackware/slackware-current/CHECKSUMS.md5.asc
          => `/tmp/slackpkg.Lgb4kd/CHECKSUMS.md5.asc'
Resolving ftp-linux.cc.gatech.edu... 128.61.111.11, 128.61.111.9, 128.61.111.10, ...
Connecting to ftp-linux.cc.gatech.edu|128.61.111.11|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-current ... done.
==> SIZE CHECKSUMS.md5.asc ... 197
==> PASV ... done.    ==> RETR CHECKSUMS.md5.asc ... done.
Length: 197

100%[===================================================================================>] 197        --.-K/s  in 0s

2002-02-02 19:54:40 (6.83 MB/s) - `/tmp/slackpkg.Lgb4kd/CHECKSUMS.md5.asc' saved [197]


                ERROR: Verification of the  gpg signature on CHECKSUMS.md5
                      failed! This could mean that the file is out of date
                      or has been tampered with.


shaftta 10-30-2009 08:28 PM

GPG Fail
 
This may not be your case...

When I had that problem I tried everything that you did, then I realized that the date and time on my system were way off. According to the system when I ran the 'date' command, it was 1972. So check your date and time settings and see what they say.

I wish I had a more scientific or informed answer, but it worked for me. Good luck!

shaftta 10-30-2009 08:30 PM

Quote:

Originally Posted by shaftta (Post 3738641)
This may not be your case...

When I had that problem I tried everything that you did, then I realized that the date and time on my system were way off. According to the system when I ran the 'date' command, it was 1972. So check your date and time settings and see what they say.

I wish I had a more scientific or informed answer, but it worked for me. Good luck!

Oh, unless I'm mistaken, this line could be a clue from what you've posted...

--2002-02-02 19:54:27--

zbreaker 10-31-2009 03:32 PM

Looks like I've got the exact same problem....caused by installing another distro on a spare drive. Got my system time back to "correctness" yet slackpkg still spits out the gpg signature checksum error message as per the above and I can't upgrade.

Is there a painless remedy for this?

Mark Pettit 11-01-2009 12:45 AM

I had the same issue. I simply switched off gpg checking (and I think the crc check also) and only then did it work. But of course if the package is corrupt then I will have a problem (or might ?). It's not an ideal solution. The settings for the above are in the conf file.

# If CHECKMD5 is "on", the system will check the md5sums of all packages before
# install/upgrade/reinstall is performed.
CHECKMD5=off

# If CHECKGPG is "on", the system will verify the GPG signature of each package
# before install/upgrade/reinstall is performed.
CHECKGPG=off

zbreaker 11-01-2009 01:59 PM

Thanks Mark Pettit..worked fine as you stated for this go round. My question at this point would be if switching them both back to "on" will only cause the problem during future upgrades. I got away ok this time, but as stated it's hardly an ideal solution for system security.

black hole sun 11-01-2009 04:53 PM

Oh, thanks guys, it never occurred to me to check the system time. Wow. 2002!? That's kind of off. it's my girlfiend's and sometimes she lets the battery drain all the way, so the system time gets reset... that must be it.

Thanks again. I'll try to change it when I next have access to her computer.

EducatedWhiteTrash 09-30-2010 08:55 AM

I'm having the same issue, but all solutions listed here have failed. Upon updating the package list, the GPG key verification fails for slackware.com/...../slackware13.0 with gslapt My system date and time are correct, and I've turned off verification, and it still does it.

With slapt-get (decided to try command line as well) it simply fails to download the package list from linuxpackages.net

codix 09-04-2011 10:37 AM

Sorry for answering to an old topic.
But i had the very same problem and i could fix it with the command:
Code:

slackpkg update gpg
This checks if the Slackware GPG key is "installed", if the
key does´nt exist, it downloads and installs the key.

This solved my problem. So if you get the error, check if the slackware
GPG key is installed.

ottavio 09-04-2011 12:05 PM

For the time problem you can this to /etc/rc.d/rc.local:
Code:

/usr/sbin/ntpdate -b time.caltech.edu

dive 09-04-2011 12:08 PM

????

Hangdog42 09-05-2011 07:59 AM

Quote:

Originally Posted by ottavio (Post 4461252)
For the time problem you can this to /etc/rc.d/rc.local:
Code:

/usr/sbin/ntpdate -b time.caltech.edu

This probably isn't the best approach. First, running ntp is probably better than ntpdate and second, you should never, ever point to a specific time server unless you have permission. Always use a pool server. This site give a lot of helpful information.

dive 09-05-2011 09:42 AM

Hangdog42 is correct, but I still fail to see why that post was connected with slackpkg as in OP's original question.

ottavio 09-05-2011 12:21 PM

Quote:

Originally Posted by Hangdog42 (Post 4461990)
This probably isn't the best approach. First, running ntp is probably better than ntpdate and second, you should never, ever point to a specific time server unless you have permission. Always use a pool server. This site give a lot of helpful information.


I got that line from the Armedslack installation intructions, heading 6.1.2:
ftp://ftp.armedslack.org/armedslack/...STALL_QEMU.TXT

Code:

echo "/usr/sbin/ntpdate rolex.ripe.net" >> /etc/rc.d/rc.local

Hangdog42 09-05-2011 12:30 PM

Quote:

Originally Posted by dive (Post 4462039)
Hangdog42 is correct, but I still fail to see why that post was connected with slackpkg as in OP's original question.

One of the working theories was that the OP's problem was caused by an incorrect system date. In other words, the gpg key might have appeared to be coming from the future and was getting rejected.


Quote:

Originally Posted by ottavio
I got that line from the Armedslack installation intructions, heading 6.1.2:

What you posted will work, but in general it is considered rude to connect directly to a time server unless you have permission. There have been time servers taken off line, or access severly limited, because of the number of people attempting to connect to them. That is why the whole pool system was created. So while the armedslack instructions technically are correct, there is a better, more polite, way to achieve the same goal.


All times are GMT -5. The time now is 07:51 AM.