LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-29-2024, 12:07 PM   #1
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Rep: Reputation: Disabled
Did my update fail?


I get this message when I run slackpkg update:

ERROR: Verification of the gpg signature on checsums.md5 failed.

I tried deleting the /root/.gpupg folder and rerunning
slackpkg update gpg but still get the same error.
Thanks
 
Old 02-29-2024, 12:17 PM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
You could try another mirror.

Did gpg work before? Does 'ldd /usr/bin/gpg' tell you some library is not found?
 
Old 02-29-2024, 12:21 PM   #3
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
You could try another mirror.

Did gpg work before? Does 'ldd /usr/bin/gpg' tell you some library is not found?
no all of that looks fine.
I will try another mirror.
 
Old 02-29-2024, 12:25 PM   #4
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
Tried a different mirror still get the same message.
 
Old 02-29-2024, 01:14 PM   #5
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Try it manually. As root:
Code:
wget http://ftp.slackware.com/pub/slackware/slackware64-15.0/CHECKSUMS.md5
wget http://ftp.slackware.com/pub/slackware/slackware64-15.0/CHECKSUMS.md5.asc
ls -l CHECKSUMS.md5*
gpg CHECKSUMS.md5.asc
Did it tell it was a Good signature from "Slackware Linux Project <security@slackware.com>"?

The date of your machine may not be completely wrong for gpg.
 
Old 02-29-2024, 02:04 PM   #6
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
all of that was fine except the very last command gave this:

gpg: Can't check signature: public key not found
 
Old 02-29-2024, 02:10 PM   #7
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by MAYBL8 View Post
all of that was fine except the very last command gave this:

gpg: Can't check signature: public key not found
'slackpkg update gpg' should have installed it. What does 'gpg --list-keys' tell you?
Code:
# gpg --list-keys
/root/.gnupg/pubring.gpg
---------------------------------
pub   1024D/40102233 2003-02-26 [expires: 2038-01-19]
uid                  Slackware Linux Project <security@slackware.com>
sub   1024g/4E523569 2003-02-26 [expires: 2038-01-19]
 
Old 02-29-2024, 02:44 PM   #8
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
'slackpkg update gpg' should have installed it. What does 'gpg --list-keys' tell you?
Code:
# gpg --list-keys
/root/.gnupg/pubring.gpg
---------------------------------
pub   1024D/40102233 2003-02-26 [expires: 2038-01-19]
uid                  Slackware Linux Project <security@slackware.com>
sub   1024g/4E523569 2003-02-26 [expires: 2038-01-19]
I would show you the commands results but I only have a cli on the slackware machine right now.
the command gpg --list-keys returns nothing
there is a file pubring.gpg

I looked in it but there is nothing in it.
 
Old 02-29-2024, 02:55 PM   #9
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by MAYBL8 View Post
I would show you the commands results but I only have a cli on the slackware machine right now.
the command gpg --list-keys returns nothing
there is a file pubring.gpg

I looked in it but there is nothing in it.
You checked it as root, didn't you? And "slackpkg update gpg" doesn't install the key?
Code:
# slackpkg update gpg                                                               

                        Getting key from https://www.slackware.com/infra/keys/GPG-KEY                                                                                           
                        Slackware Linux Project's GPG key added

#

Last edited by Petri Kaukasoina; 02-29-2024 at 02:58 PM.
 
Old 02-29-2024, 03:51 PM   #10
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
The only user on the machine so far is root.

It has the line getting the key but it doesn't say the key was added.
 
Old 02-29-2024, 11:43 PM   #11
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Try this:

Code:
root@acer:~# rm -rf /root/.gnupg
root@acer:~# wget https://www.slackware.com/infra/keys/GPG-KEY
--2024-03-01 07:42:01--  https://www.slackware.com/infra/keys/GPG-KEY
Resolving www.slackware.com (www.slackware.com)... 104.84.152.27, 95.101.142.201, 2a02:26f0:5200::b81f:ff1, ...
Connecting to www.slackware.com (www.slackware.com)|104.84.152.27|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1572 (1.5K)
Saving to: â

GPG-KEY                                 100%[=============================================================================>]   1.54K  --.-KB/s    in 0s      

2024-03-01 07:42:02 (324 MB/s) - â saved [1572/1572]

root@acer:~# gpg --import GPG-KEY
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 40102233: public key "Slackware Linux Project <security@slackware.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
root@acer:~# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub   1024D/40102233 2003-02-26 [expires: 2038-01-19]
uid                  Slackware Linux Project <security@slackware.com>
sub   1024g/4E523569 2003-02-26 [expires: 2038-01-19]

root@acer:~#
 
2 members found this post helpful.
Old 03-01-2024, 07:12 AM   #12
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
Looks like that solved the issue.
It installed the keys.

I did however have to use the --no-check-certificate option because it had an error about a certificate.
 
Old 03-01-2024, 08:32 AM   #13
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
It's possible you miss package ca-certificates. You already missed libunistring. There could be other packages missing. To check, try:
Code:
slackpkg install slackware64
 
1 members found this post helpful.
Old 03-01-2024, 08:50 PM   #14
MAYBL8
Member
 
Registered: Dec 2014
Posts: 30

Original Poster
Rep: Reputation: Disabled
Ok I ran that command. It installed allot of files.
I ran the wget command again.
Same error:
Cannot verify www.slackware.com's certificate
 
Old 03-02-2024, 03:13 AM   #15
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
You can check if a package is installed:
Code:
# cd /var/lib/pkgtools/packages
# ls ca-cert*
ca-certificates-20240216-noarch-1_slack15.0
To upgrade it:
Code:
slackpkg upgrade ca-certificates
wget tells the reason why it cannot verify the certificate if you read the next line, for example without the ca-certificates package:
Code:
ERROR: cannot verify www.slackware.com's certificate, issued by 'CN=R3,O=Let\'s Encrypt,C=US':
  Unable to locally verify the issuer's authority.

Last edited by Petri Kaukasoina; 03-02-2024 at 03:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] if [[ -n "$1" ]]; then FAIL FAIL FAIL rbees Programming 7 03-25-2015 02:39 PM
Quiz: Why did gzip, bzip2 and lzma fail on this piece of data? What is it? irmin General 7 07-20-2010 02:06 PM
10.04 update fail, get a BusyBox v1.10.2 error" update‏ vmf007 Linux - Newbie 7 06-09-2010 07:24 PM
Why did I fail to use rsh? Plotto Linux - General 1 02-28-2008 12:49 AM
Why did a failure of my 2nd HD controler cause /dev/null creation to fail? PTrenholme Linux - Hardware 0 09-17-2005 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration