LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-07-2024, 12:56 PM   #1
linux91
Member
 
Registered: Feb 2004
Location: Williamson, New York, USA
Distribution: (Minix), SLS, Slackware 0.99-15, Current, Qubes-OS
Posts: 111

Rep: Reputation: 43
Does slackpkg check gpg keys on failed upgrades when invoked a second time?


Looking at the slackpkg script it isn't apparent to me where gpg is checked on packages that have already been downloaded but failed the gpg check.

NOTE that the gpg keys have now been updated, this is more a concern as to whether slackpkg will install unverified packages.

With the hope of clarification, here is a synopsis of the sequence of events:
'slackpkg update' completes without errors
First run of 'slackpkg upgrade-all' started, all packages download and cached
Code:
 $ sudo slackpkg upgrade-all
[1/56]	Package SDL2-2.30.1-x86_64-1.txz is already in cache - not downloading
...
[56/56]	Package xdg-desktop-portal-kde-5.27.11-x86_64-1.txz is already in cache - not downloading
installs begin, 7 of 56 packages install:

Code:
 [1/56]	Package SDL2-2.30.1-x86_64-1.txz is already in cache - not downloading
	Upgrading SDL2-2.30.0-x86_64-1 => [slackware64]:SDL2-2.30.1-x86_64-1...
Upgrading:  SDL2-2.30.1-x86_64-1: Simple DirectMedia Layer Version 2 .................... [ 4.7M]
...
[8/56]	Package gnupg-1.4.23-x86_64-6.txz is already in cache - not downloading
	Upgrading gnupg-1.4.23-x86_64-5 => [slackware64]:gnupg-1.4.23-x86_64-6...
Upgrading:  gnupg-1.4.23-x86_64-6: The GNU Privacy Guard ................................ [ 5.5M]
[9/56]	Package gnupg2-2.4.4-x86_64-2.txz is already in cache - not downloading
	ERROR - Package not installed! gpg error!
gpg (package 8/56) fails to install and subsequent installs to fail due to gpg error.
The second run of 'slackpkg upgrade-all' downloads and installs 48 packages even though gpg is no longer installed.

Code:
 $ sudo slackpkg upgrade-all
Password: 
gpg package not found!  Please disable GPG in /etc/slackpkg/slackpkg.conf or install
the gnupg package.
To disable GPG, edit slackpkg.conf and change the value of the CHECKGPG 
variable to off - you can see an example in the original slackpkg.conf.new
file distributed with slackpkg.
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE
Preparing list     [54/54]
...
[1/48]	Package gnupg2-2.4.4-x86_64-2.txz is already in cache - not downloading
...
[48/48]	Package xdg-desktop-portal-kde-5.27.11-x86_64-1.txz is already in cache - not downloading
[1/48]	Package gnupg2-2.4.4-x86_64-2.txz is already in cache - not downloading
	Upgrading gnupg2-2.4.4-x86_64-1 => [slackware64]:gnupg2-2.4.4-x86_64-2...
Upgrading:  gnupg2-2.4.4-x86_64-2: The GNU Privacy Guard version 2.x .................... [  12M]
...
[48/48]	Package xdg-desktop-portal-kde-5.27.11-x86_64-1.txz is already in cache - not downloading
	Upgrading xdg-desktop-portal-kde-5.27.10-x86_64-1 => [slackware64]:xdg-desktop-portal-kde-5.27.11-x86_64-1...
Upgrading:  xdg-desktop-portal-kde-5.27.11-x86_64-1: implementation for xdg-desktop-porta [ 1.5M]
Searching for NEW configuration files...
Checking the update of gpg. The same gpg: WARNINGs are given for all keys.

Code:
 $ sudo slackpkg update gpg
Password:
2024-03-07 09:37:58 URL:https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/GPG-KEY [1572/1572] -> "/tmp/slackpkg.T0U9ND/gpgkey" [1]
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
pub   dsa1024 2003-02-26 [SCA] [expires: 2038-01-19]
      EC5649D______________________________________
uid           Slackware Linux Project <security@slackware.com>
sub   elg1024 2003-02-26 [ER] [expires: 2038-01-19]
gpg: WARNING: no command supplied.  Trying to guess what you mean ...

2024-03-07 09:37:59 URL:https://us.slackware.nl/slackpkgplus/GPG-KEY [1805/1805] -> "/tmp/slackpkg.T0U9ND/gpgkey-tmp-slackpkgplus" [1]
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
...
A third run of slackpkg upgrade-all is run to upgrade greylisted kernel packages, all packages download but fail on gpg error:

Code:
 $ sudo slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE
Preparing list       [6/6]
...
[1/6]	Package: kernel-firmware-20240305_d13f88b-noarch-1.txz
--2024-03-07 09:21:39--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-firmware-20240305_d13f88b-noarch-1.txz
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 334175520 (319M) [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-firmware-20240305_d13f88b-noarch-1.txz'

//var/cache/packages/./s 100%[===============================>] 318.69M  6.81MB/s    in 48s     

2024-03-07 09:22:27 (6.67 MB/s) - '//var/cache/packages/./slackware64/a/kernel-firmware-20240305_d13f88b-noarch-1.txz' saved [334175520/334175520]

--2024-03-07 09:22:27--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-firmware-20240305_d13f88b-noarch-1.txz.asc
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 195 [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-firmware-20240305_d13f88b-noarch-1.txz.asc'

//var/cache/packages/./s 100%[===============================>]     195  --.-KB/s    in 0s      

2024-03-07 09:22:27 (8.58 MB/s) - '//var/cache/packages/./slackware64/a/kernel-firmware-20240305_d13f88b-noarch-1.txz.asc' saved [195/195]

No matching GPG-KEY for repository 'slackware64' checking kernel-firmware-20240305_d13f88b-noarch-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
	ERROR - Package not installed! gpg error!
[2/6]	Package: kernel-generic-6.6.21-x86_64-1.txz
--2024-03-07 09:22:28--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-generic-6.6.21-x86_64-1.txz
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13313900 (13M) [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-generic-6.6.21-x86_64-1.txz'

//var/cache/packages/./s 100%[===============================>]  12.70M  5.60MB/s    in 2.3s    

2024-03-07 09:22:31 (5.60 MB/s) - '//var/cache/packages/./slackware64/a/kernel-generic-6.6.21-x86_64-1.txz' saved [13313900/13313900]

--2024-03-07 09:22:31--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-generic-6.6.21-x86_64-1.txz.asc
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 195 [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-generic-6.6.21-x86_64-1.txz.asc'

//var/cache/packages/./s 100%[===============================>]     195  --.-KB/s    in 0s      

2024-03-07 09:22:31 (5.15 MB/s) - '//var/cache/packages/./slackware64/a/kernel-generic-6.6.21-x86_64-1.txz.asc' saved [195/195]

No matching GPG-KEY for repository 'slackware64' checking kernel-generic-6.6.21-x86_64-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
	ERROR - Package not installed! gpg error!
[3/6]	Package: kernel-headers-6.6.21-x86-1.txz
--2024-03-07 09:22:31--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/d/kernel-headers-6.6.21-x86-1.txz
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1174532 (1.1M) [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/d/kernel-headers-6.6.21-x86-1.txz'

//var/cache/packages/./s 100%[===============================>]   1.12M  1.91MB/s    in 0.6s    

2024-03-07 09:22:32 (1.91 MB/s) - '//var/cache/packages/./slackware64/d/kernel-headers-6.6.21-x86-1.txz' saved [1174532/1174532]

--2024-03-07 09:22:32--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/d/kernel-headers-6.6.21-x86-1.txz.asc
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 195 [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/d/kernel-headers-6.6.21-x86-1.txz.asc'

//var/cache/packages/./s 100%[===============================>]     195  --.-KB/s    in 0s      

2024-03-07 09:22:32 (5.32 MB/s) - '//var/cache/packages/./slackware64/d/kernel-headers-6.6.21-x86-1.txz.asc' saved [195/195]

No matching GPG-KEY for repository 'slackware64' checking kernel-headers-6.6.21-x86-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
	ERROR - Package not installed! gpg error!
[4/6]	Package: kernel-huge-6.6.21-x86_64-1.txz
--2024-03-07 09:22:33--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-huge-6.6.21-x86_64-1.txz
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15189312 (14M) [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-huge-6.6.21-x86_64-1.txz'

//var/cache/packages/./s 100%[===============================>]  14.49M  5.35MB/s    in 2.7s    

2024-03-07 09:22:35 (5.35 MB/s) - '//var/cache/packages/./slackware64/a/kernel-huge-6.6.21-x86_64-1.txz' saved [15189312/15189312]

--2024-03-07 09:22:35--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-huge-6.6.21-x86_64-1.txz.asc
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 195 [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-huge-6.6.21-x86_64-1.txz.asc'

//var/cache/packages/./s 100%[===============================>]     195  --.-KB/s    in 0s      

2024-03-07 09:22:36 (6.40 MB/s) - '//var/cache/packages/./slackware64/a/kernel-huge-6.6.21-x86_64-1.txz.asc' saved [195/195]

No matching GPG-KEY for repository 'slackware64' checking kernel-huge-6.6.21-x86_64-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
	ERROR - Package not installed! gpg error!
[5/6]	Package: kernel-modules-6.6.21-x86_64-1.txz
--2024-03-07 09:22:36--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-modules-6.6.21-x86_64-1.txz
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55397760 (53M) [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-modules-6.6.21-x86_64-1.txz'

//var/cache/packages/./s 100%[===============================>]  52.83M  6.81MB/s    in 8.2s    

2024-03-07 09:22:44 (6.47 MB/s) - '//var/cache/packages/./slackware64/a/kernel-modules-6.6.21-x86_64-1.txz' saved [55397760/55397760]

--2024-03-07 09:22:44--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/a/kernel-modules-6.6.21-x86_64-1.txz.asc
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 195 [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/a/kernel-modules-6.6.21-x86_64-1.txz.asc'

//var/cache/packages/./s 100%[===============================>]     195  --.-KB/s    in 0s      

2024-03-07 09:22:44 (5.62 MB/s) - '//var/cache/packages/./slackware64/a/kernel-modules-6.6.21-x86_64-1.txz.asc' saved [195/195]

No matching GPG-KEY for repository 'slackware64' checking kernel-modules-6.6.21-x86_64-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
	ERROR - Package not installed! gpg error!
[6/6]	Package: kernel-source-6.6.21-noarch-1.txz
--2024-03-07 09:22:45--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/k/kernel-source-6.6.21-noarch-1.txz
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 136289916 (130M) [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/k/kernel-source-6.6.21-noarch-1.txz'

//var/cache/packages/./s 100%[===============================>] 129.98M  6.37MB/s    in 20s     

2024-03-07 09:23:05 (6.56 MB/s) - '//var/cache/packages/./slackware64/k/kernel-source-6.6.21-noarch-1.txz' saved [136289916/136289916]

--2024-03-07 09:23:05--  https://mirror.cs.princeton.edu/pub/mirrors/slackware/slackware64-current/slackware64/k/kernel-source-6.6.21-noarch-1.txz.asc
Resolving mirror.cs.princeton.edu (mirror.cs.princeton.edu)... 128.112.136.119
Connecting to mirror.cs.princeton.edu (mirror.cs.princeton.edu)|128.112.136.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 195 [application/octet-stream]
Saving to: '//var/cache/packages/./slackware64/k/kernel-source-6.6.21-noarch-1.txz.asc'

//var/cache/packages/./s 100%[===============================>]     195  --.-KB/s    in 0s      

2024-03-07 09:23:05 (5.36 MB/s) - '//var/cache/packages/./slackware64/k/kernel-source-6.6.21-noarch-1.txz.asc' saved [195/195]

No matching GPG-KEY for repository 'slackware64' checking kernel-source-6.6.21-noarch-1.txz
slackpkg tries two more times with the same results resulting in the final warnings:
Code:
 ==============================================================================
  WARNING! One or more errors occurred while slackpkg was running
------------------------------------------------------------------------------
No matching GPG-KEY for repository 'slackware64' checking kernel-firmware-20240305_d13f88b-noarch-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
kernel-firmware-20240305_d13f88b-noarch-1.txz:	gpg
No matching GPG-KEY for repository 'slackware64' checking kernel-generic-6.6.21-x86_64-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
kernel-generic-6.6.21-x86_64-1.txz:	gpg
No matching GPG-KEY for repository 'slackware64' checking kernel-headers-6.6.21-x86-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
kernel-headers-6.6.21-x86-1.txz:	gpg
No matching GPG-KEY for repository 'slackware64' checking kernel-huge-6.6.21-x86_64-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
kernel-huge-6.6.21-x86_64-1.txz:	gpg
No matching GPG-KEY for repository 'slackware64' checking kernel-modules-6.6.21-x86_64-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
kernel-modules-6.6.21-x86_64-1.txz:	gpg
No matching GPG-KEY for repository 'slackware64' checking kernel-source-6.6.21-noarch-1.txz
Try to run 'slackpkg update gpg' or disable gpg check
kernel-source-6.6.21-noarch-1.txz:	gpg
No matching GPG-KEY for repository 'slackware64' checking kernel-firmware-20240305_d13f88b-noarch-1.txz
(These warnings were repeated two times)
The kernel packages upgrades failed.
How is it that packages were installed during the second run regardless of gpg errors; errors that were present even in the third run of slackpkg?
 
Old 03-08-2024, 02:42 AM   #2
ausrv
LQ Newbie
 
Registered: Mar 2024
Posts: 4

Rep: Reputation: 0
Same here. It also seems that gpg (package gnupg-1.4.23-x86_64-6) was deleted somewhere on the way:

Code:
2024-03-08 06:41:40 URL:https://linux.rz.rub.de/slackware/slackware64-current/GPG-KEY [1572/1572] -> "/tmp/slackpkg.E1YrcT/gpgkey" [1]
/usr/libexec/slackpkg/functions.d/slackpkgplus.sh: line 981: gpg: command not found
/usr/libexec/slackpkg/functions.d/slackpkgplus.sh: line 982: gpg: command not found

                   !!! F A T A L !!!
    Slackware repository does NOT contain the Official GPG-KEY
    You SHOULD disable GPG Strict check 'STRICTGPG=off'
    in /etc/slackpkg/slackpkgplus.conf
On http://www.slackware.com/changelog/c...php?cpu=x86_64 you can also read:

Code:
...
ap/slackpkg-15.0.10-noarch-3.txz: Rebuilt.
       core-functions.sh: use gpg2, not gpg.
...
Could reinstalling gnupg-1.4.23-x86_64-6 be a (temporay) solution?
 
Old 03-08-2024, 01:38 PM   #3
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
This sort of thing is to be expected in -current no?
Even though I can't answer your question about why it installed when it shouldn't have, maybe this helps sort things out:
Code:
removepkg gnupg gnupg2 slackpkg
installpkg gnupg2-2.4.5-x86_64-1.txz
installpkg slackpkg-15.0.10-noarch-3.txz
slackpkg upgrade-all
 
Old 03-10-2024, 01:52 PM   #4
linux91
Member
 
Registered: Feb 2004
Location: Williamson, New York, USA
Distribution: (Minix), SLS, Slackware 0.99-15, Current, Qubes-OS
Posts: 111

Original Poster
Rep: Reputation: 43
Quote:
This sort of thing is to be expected in -current no?
Yes, my understanding is using current implies 'unstable with feedback'. This was intended to be feedback so it doesn't become a problem. This may also offer ideas to someone who identifies a similar condition.
If enough people find this condition then it may prompt a revision to the slacking script to catch the condition and either prevent the upgrades or at least notify the user of what can be done to remedy it.
My solution was to upgrade gnupg2 prior to any other upgrades and the running
Code:
sudo --refresh-keys
Thanks for the quick reply.
I agree that gnupg should be removed.

Last edited by linux91; 03-20-2024 at 06:31 PM. Reason: Corrected typo rsudo
 
  


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] Slackware64 15.0 can't update slackpkg or update gpg key for slackpkg ccoffee Slackware 3 01-08-2023 04:48 PM
[SOLVED] I have run slackpkg update gpg instead of slackpkg update amikoyan Slackware 13 08-15-2021 02:12 AM
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
glibc 2.9 "make check" fails on rt/tst-cputimer with "timer sig[12] invoked to soon" shachter Linux - Software 2 02-14-2009 01:24 PM

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

All times are GMT -5. The time now is 12:02 AM.

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