LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 10-07-2021, 06:34 AM   #16
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38

@sndwvs:
Code:
$ ldd /usr/bin/{curl,wget}
/usr/bin/curl:
        linux-vdso.so.1 (0x0000ffffa73d0000)
        libcurl.so.4 => /usr/lib64/libcurl.so.4 (0x0000ffffa72ca000)
        libz.so.1 => /lib64/libz.so.1 (0x0000ffffa72a3000)
        libc.so.6 => /lib64/libc.so.6 (0x0000ffffa7115000)
        libcares.so.2 => /usr/lib64/libcares.so.2 (0x0000ffffa70ef000)
        libnghttp2.so.14 => /usr/lib64/libnghttp2.so.14 (0x0000ffffa70b6000)
        libidn2.so.0 => /usr/lib64/libidn2.so.0 (0x0000ffffa7086000)
        libssh2.so.1 => /usr/lib64/libssh2.so.1 (0x0000ffffa703a000)
        libpsl.so.5 => /usr/lib64/libpsl.so.5 (0x0000ffffa7019000)
        libssl.so.1.1 => /usr/lib64/libssl.so.1.1 (0x0000ffffa6f70000)
        libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x0000ffffa6ca0000)
        libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x0000ffffa6c42000)
        libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000ffffa6b5e000)
        libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x0000ffffa6b22000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000ffffa6b0e000)
        libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2 (0x0000ffffa6ab2000)
        liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x0000ffffa6a93000)
        libzstd.so.1 => /lib64/libzstd.so.1 (0x0000ffffa69c1000)
        libbrotlidec.so.1 => /usr/lib64/libbrotlidec.so.1 (0x0000ffffa69a6000)
        /lib64/ld-linux-aarch64.so.1 (0x0000ffffa739c000)
        libunistring.so.2 => /usr/lib64/libunistring.so.2 (0x0000ffffa6819000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000ffffa67e9000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000ffffa67d5000)
        libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x0000ffffa67b7000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000ffffa67a1000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x0000ffffa6779000)
        libnsl.so.2 => /lib64/libnsl.so.2 (0x0000ffffa6750000)
        libsasl2.so.3 => /usr/lib64/libsasl2.so.3 (0x0000ffffa6723000)
        libm.so.6 => /lib64/libm.so.6 (0x0000ffffa6672000)
        libbrotlicommon.so.1 => /usr/lib64/libbrotlicommon.so.1 (0x0000ffffa6640000)
        libtirpc.so.3 => /lib64/libtirpc.so.3 (0x0000ffffa6601000)
/usr/bin/wget:
        linux-vdso.so.1 (0x0000ffff91115000)
        libpcre2-8.so.0 => /usr/lib64/libpcre2-8.so.0 (0x0000ffff91025000)
        libuuid.so.1 => /lib64/libuuid.so.1 (0x0000ffff9100e000)
        libidn2.so.0 => /usr/lib64/libidn2.so.0 (0x0000ffff90fde000)
        libssl.so.1.1 => /lib64/libssl.so.1.1 (0x0000ffff90f35000)
        libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x0000ffff90c65000)
        libz.so.1 => /lib64/libz.so.1 (0x0000ffff90c3e000)
        libpsl.so.5 => /usr/lib64/libpsl.so.5 (0x0000ffff90c1d000)
        libc.so.6 => /lib64/libc.so.6 (0x0000ffff90a8f000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000ffff90a5f000)
        libunistring.so.2 => /usr/lib64/libunistring.so.2 (0x0000ffff908d2000)
        /lib64/ld-linux-aarch64.so.1 (0x0000ffff910e1000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000ffff908be000)
@shelldweller:
Your solution works for me. Thanks.

However, if I do a
Code:
# slackpkg update gpg
the key is being overwritten with the one of "Slackware ARM".

Now I tested it on two slarm64 installations (Rock-Pi-4 and Rock-Pi-S) and both show the same issue.
 
Old 10-08-2021, 09:01 PM   #17
shelldweller
Member
 
Registered: Mar 2019
Distribution: Slackware
Posts: 300

Rep: Reputation: Disabled
It seems to be getting the url from this file:

/usr/libexec/slackpkg/core-functions.sh

Maybe you can try changing this part:

Code:
# Fetch $SLACKKEY from a trusted source
function get_gpg_key() {
        if ping -c 1 www.slackware.com &>/dev/null; then
                if printf "$ARCH" | grep -q -e "arm" -e "aarch64" &>/dev/null ; then
                        echo -e "\t\t\tGetting key from https://www.slackware.com/infra/keys/arm/GPG-KEY"
                        $DOWNLOADER $TMPDIR/gpgkey https://www.slackware.com/infra/keys/arm/GPG-KEY &>/dev/null
                        # Backup: https://arm.slackware.com/keys/GPG-KEY
                else
                        echo -e "\t\t\tGetting key from https://www.slackware.com/infra/keys/GPG-KEY"
                        $DOWNLOADER $TMPDIR/gpgkey https://www.slackware.com/infra/keys/GPG-KEY &>/dev/null
                        # Backup: https://mirrors.slackware.com/slackware/slackware-current/GPG-KEY
                fi
        else
I don't see it being set in any config file or anywhere else. Might be worth a try.
 
Old 10-09-2021, 01:43 AM   #18
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
@shelldweller:
You're right.
Here's the patch I used to make it work:
Code:
diff -rupN a/usr/libexec/slackpkg/core-functions.sh b/usr/libexec/slackpkg/core-functions.sh
--- a/usr/libexec/slackpkg/core-functions.sh    2021-10-09 08:14:10.571582117 +0200
+++ b/usr/libexec/slackpkg/core-functions.sh    2021-10-09 08:40:18.807582864 +0200
@@ -564,10 +564,14 @@ function checkgpg() {
 # Fetch $SLACKKEY from a trusted source
 function get_gpg_key() {
        if ping -c 1 www.slackware.com &>/dev/null; then
-               if printf "$ARCH" | grep -q -e "arm" -e "aarch64" &>/dev/null ; then
+               if printf "$ARCH" | grep -q -e "arm" &>/dev/null ; then
                        echo -e "\t\t\tGetting key from https://www.slackware.com/infra/keys/arm/GPG-KEY"
                        $DOWNLOADER $TMPDIR/gpgkey https://www.slackware.com/infra/keys/arm/GPG-KEY &>/dev/null
                        # Backup: https://arm.slackware.com/keys/GPG-KEY
+               elif printf "$ARCH" | grep -q -e "aarch64" &>/dev/null; then
+                       echo -e "\t\t\tGetting key from http://dl.slarm64.org/slarm64/slarm64-current/GPG-KEY"
+                       $DOWNLOADER $TMPDIR/gpgkey http://dl.slarm64.org/slarm64/slarm64-current/GPG-KEY &>/dev/null
+                       # Backup: http://dl.slarm64.org/slarm64/slarm64-current/GPG-KEY
                else
                        echo -e "\t\t\tGetting key from https://www.slackware.com/infra/keys/GPG-KEY"
                        $DOWNLOADER $TMPDIR/gpgkey https://www.slackware.com/infra/keys/GPG-KEY &>/dev/null
 
2 members found this post helpful.
Old 10-09-2021, 08:57 AM   #19
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
slacksam thanks,

added your fix.
 
1 members found this post helpful.
Old 11-03-2021, 11:13 AM   #20
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
added your fix.
Hi sndwvs,

I seem to be having a similar problem. Slackpkg+ is complaining about not having a gpg key for the repo.
I tried shelldweller's workaround, but the gpg command told me that the key was already imported, and did nothing.
Both the wget and curl and other basic programs like sed seem to run fine, so all the libraries are likely present on my system.
Also, your latest patch linked in your last comment seems to be present on my system.

I have the following installed:
Code:
root@janos-pbp:~# ls -1 /var/log/packages/slack*
/var/log/packages/slackpkg+-1.7.9-noarch-1mt
/var/log/packages/slackpkg-15.0.8-noarch-1
root@janos-pbp:~# slackpkg update gpg

2021-11-03 18:11:42 URL:http://mirrors.slackware.bg/slarm64/slarm64-current/GPG-KEY [2686/2686] -> "/tmp/slackpkg.a0UEDe/gpgkey" [1]
pub  3072R/4690E354 2020-12-19 slarm64 AArch64 <security@slarm64.org>
sub  3072R/91353E37 2020-12-19 [expires: 2040-12-14]

2021-11-03 18:11:43 URL:https://slakfinder.org/slackpkg+15/GPG-KEY [1805/1805] -> "/tmp/slackpkg.a0UEDe/gpgkey-tmp-slackpkgplus" [1]
pub  2048R/ED123FBC 2011-01-01 Matteo Rossini <zerouno@slacky.it>
sub  2048R/2B41569A 2011-01-01
gpg: key ED123FBC: "Matteo Rossini <zerouno@slacky.it>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1


http://dl.slarm64.org/slackware/packages/aarch64/GPG-KEY:
2021-11-03 18:11:43 ERROR 404: Not Found.

                   !!! W A R N I N G !!!
    Repository 'slarm64' does NOT contain the GPG-KEY
    You SHOULD disable GPG check by setting 'CHECKGPG=off'
    in /etc/slackpkg/slackpkg.conf or use slackpkg with
    '-checkgpg=off' : 'slackpkg -checkgpg=off install packge'


			Slackware Linux Project's GPG key added
I added the following repo to slackpkgplus.conf:
Code:
MIRRORPLUS['slarm64']=http://dl.slarm64.org/slackware/packages/aarch64/
 
Old 11-03-2021, 12:28 PM   #21
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
Hi sndwvs,

I seem to be having a similar problem. Slackpkg+ is complaining about not having a gpg key for the repo.
I tried shelldweller's workaround, but the gpg command told me that the key was already imported, and did nothing.
Both the wget and curl and other basic programs like sed seem to run fine, so all the libraries are likely present on my system.
Also, your latest patch linked in your last comment seems to be present on my system.

I have the following installed:
Code:
root@janos-pbp:~# ls -1 /var/log/packages/slack*
/var/log/packages/slackpkg+-1.7.9-noarch-1mt
/var/log/packages/slackpkg-15.0.8-noarch-1
root@janos-pbp:~# slackpkg update gpg

2021-11-03 18:11:42 URL:http://mirrors.slackware.bg/slarm64/slarm64-current/GPG-KEY [2686/2686] -> "/tmp/slackpkg.a0UEDe/gpgkey" [1]
pub  3072R/4690E354 2020-12-19 slarm64 AArch64 <security@slarm64.org>
sub  3072R/91353E37 2020-12-19 [expires: 2040-12-14]

2021-11-03 18:11:43 URL:https://slakfinder.org/slackpkg+15/GPG-KEY [1805/1805] -> "/tmp/slackpkg.a0UEDe/gpgkey-tmp-slackpkgplus" [1]
pub  2048R/ED123FBC 2011-01-01 Matteo Rossini <zerouno@slacky.it>
sub  2048R/2B41569A 2011-01-01
gpg: key ED123FBC: "Matteo Rossini <zerouno@slacky.it>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1


http://dl.slarm64.org/slackware/packages/aarch64/GPG-KEY:
2021-11-03 18:11:43 ERROR 404: Not Found.

                   !!! W A R N I N G !!!
    Repository 'slarm64' does NOT contain the GPG-KEY
    You SHOULD disable GPG check by setting 'CHECKGPG=off'
    in /etc/slackpkg/slackpkg.conf or use slackpkg with
    '-checkgpg=off' : 'slackpkg -checkgpg=off install packge'


			Slackware Linux Project's GPG key added
I added the following repo to slackpkgplus.conf:
Code:
MIRRORPLUS['slarm64']=http://dl.slarm64.org/slackware/packages/aarch64/
So, because of the fact that the path is indicated
Code:
MIRRORPLUS['slarm64']=http://dl.slarm64.org/slackware/packages/aarch64/
The key is found in the http://dl.slarm64.org/slackware/pack...arch64/GPG-KEY and not in http://dl.slarm64.org/slackware/packages/GPG-KEY
 
Old 11-04-2021, 03:01 AM   #22
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
So, because of the fact that the path is indicated
Code:
MIRRORPLUS['slarm64']=http://dl.slarm64.org/slackware/packages/aarch64/
The key is found in the http://dl.slarm64.org/slackware/pack...arch64/GPG-KEY and not in http://dl.slarm64.org/slackware/packages/GPG-KEY
You switched the wrong and right URLs in your last post, but it was easy to find.
Anyway, I corrected the mirror URL, and the GPG key got imported, but I still get this after a successful slackpkg update gpg:

Code:
root@pbp:~# slackpkg update

FATAL! No Slackware GPG-KEY imported.
If you are upgrading from an older release of slackpkg+, all keys must to be reimported.
Please run
  # slackpkg update gpg

root@pbp:~#
 
Old 11-04-2021, 06:36 AM   #23
shelldweller
Member
 
Registered: Mar 2019
Distribution: Slackware
Posts: 300

Rep: Reputation: Disabled
I always use this one:

http://dl.slarm64.org/slarm64/slarm64-current/GPG-KEY

since this is where the upstream packages are found, instead of in any "packages" directory.
 
Old 11-04-2021, 07:34 AM   #24
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by shelldweller View Post
I always use this one:
Well that doesn't get me very far, as the key is the very same one, and nothing happens at import. And I still get told to do "slackpkg update gpg"...
 
Old 11-04-2021, 09:07 AM   #25
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by wowbaggerHU View Post
Code:
root@pbp:~# slackpkg update

FATAL! No Slackware GPG-KEY imported.
If you are upgrading from an older release of slackpkg+, all keys must to be reimported.
Please run
  # slackpkg update gpg

root@pbp:~#
This is what I get after installing slackpkgplus 1.7.9, even with all MIRRORPLUS and REPOPLUS variables commented out. That's because the script expects Slackware to be the installed OS instead of slarm64.

So, if you installed slackpkgplus from the origin slackpkplus repository, try installing http://dl.slarm64.org/slackware/pack...noarch-2mt.txz instead.
 
1 members found this post helpful.
Old 11-04-2021, 09:17 AM   #26
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
So, because of the fact that the path is indicated[/url]
Hi sndwvs,

Could you please create a package of the new slackpkg+ 1.7.9?
Thank you!
 
Old 11-04-2021, 01:38 PM   #27
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Hi wowbaggerHU,

updated slackpkg+-1.7.9-noarch-1mt.txz
 
2 members found this post helpful.
Old 11-05-2021, 03:17 AM   #28
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
Hi wowbaggerHU,

updated slackpkg+-1.7.9-noarch-1mt.txz
Hi sndwvs,

Thank you for stepping in! That resolved the issue for me.
 
1 members found this post helpful.
Old 03-11-2024, 03:04 PM   #29
visigal@gmail.com
LQ Newbie
 
Registered: Mar 2024
Posts: 7

Rep: Reputation: 0
slarm64: slackpkg GPG check fails

i made link to /usr/bin/gpg2 and remamed it gpg
 
Old 03-13-2024, 11:50 AM   #30
visigal@gmail.com
LQ Newbie
 
Registered: Mar 2024
Posts: 7

Rep: Reputation: 0
slarm64: slackpkg GPG check fails

i made link to /usr/bin/gpg2 and renamed it gpg
if have a /usr/bin/gpg rename it to something else like gpg1 1st
 
  


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] slackpkg update fails gpg check; How do I fix it? maschelsea Slackware 5 03-11-2024 03:02 PM
[SOLVED] I have run slackpkg update gpg instead of slackpkg update amikoyan Slackware 13 08-15-2021 02:12 AM
[SOLVED] Update slarm64 md5/gpg issues? pchristy Slackware - ARM 16 02-21-2021 04:21 PM
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 9 06-03-2019 10:06 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM

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

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