LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-11-2024, 06:43 AM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Rep: Reputation: Disabled
Slackpkg(plus) failing on GPG errors.


I updated a few days ago and no issues. I tried to update this morning and am getting:

Code:
/usr/libexec/slackpkg/functions.d/slackpkgplus.sh: line 981: /usr/bin/gpg: cannot execute: required file not found
slackpkg update gpg fails...


I reinstalled gnupg1 and gnupg2 and it's still failing.

Any ideas?

Last edited by arfon; 03-11-2024 at 08:37 AM.
 
Old 03-11-2024, 07:35 AM   #2
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,213

Rep: Reputation: 297Reputation: 297Reputation: 297
try slackpkg update gpg

edit: Ups sorry, I saw you tried it, but I dont think I have slackpkplus.sh in that dir, what is that file ? Are you on 15.0 or current ?

Last edited by saxa; 03-11-2024 at 07:37 AM.
 
Old 03-11-2024, 08:30 AM   #3
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Current.
Code:
    if [ $(basename $1) = "GPG-KEY" ];then
      mkdir -p ${WORKDIR}/gpg
      rm -f ${WORKDIR}/gpg/* 2>/dev/null
      gpg $2
Line 981: gpg $2


The command is "slackpkg update gpg" so $2 should be "gpg".


Code:
]$ which gpg
/usr/bin/gpg
I've disabled GPG check in both slackpkg.conf and slackpkgplus.conf and it still fails.

Last edited by arfon; 03-11-2024 at 08:35 AM.
 
Old 03-11-2024, 08:42 AM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,362

Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by arfon View Post
Current.
Code:
    if [ $(basename $1) = "GPG-KEY" ];then
      mkdir -p ${WORKDIR}/gpg
      rm -f ${WORKDIR}/gpg/* 2>/dev/null
      gpg $2
Line 981: gpg $2


The command is "slackpkg update gpg" so $2 should be "gpg".


Code:
]$ which gpg
/usr/bin/gpg
I've disabled GPG check in both slackpkg.conf and slackpkgplus.conf and it still fails.
Make sure your gnupg2 is up to date
See here :
https://www.linuxquestions.org/quest...ml#post6488284

Last edited by marav; 03-11-2024 at 08:43 AM.
 
1 members found this post helpful.
Old 03-11-2024, 10:20 AM   #5
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
marav for the win!

It looks like I installed gnupg2 for 15 and not for current (or maybe I installed the 32b vs the 64b) but, whatever. I downloaded the gunpg2 for curent64 and installed it and removed gnupg1 and it cleared up the issue.

slackpkg upgrade should have done this but, it didn't.

So, FYI to anyone having slackpkg/gpg issues, here's what worked for me.
 
Old 03-11-2024, 10:56 AM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,362

Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by arfon View Post
marav for the win!

It looks like I installed gnupg2 for 15 and not for current (or maybe I installed the 32b vs the 64b) but, whatever. I downloaded the gunpg2 for curent64 and installed it and removed gnupg1 and it cleared up the issue.

slackpkg upgrade should have done this but, it didn't.

So, FYI to anyone having slackpkg/gpg issues, here's what worked for me.
You can keep gnupg v1 installed, as the binary was renamed /usr/bin/gpg1
 
Old 03-11-2024, 01:11 PM   #7
visigal@gmail.com
LQ Newbie
 
Registered: Mar 2024
Posts: 7

Rep: Reputation: 0
slackpkg gpg trouble

i made link to gpg2 and renamed it gpg
 
Old 03-11-2024, 04:02 PM   #8
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,362

Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by visigal@gmail.com View Post
i made link to gpg2 and renamed it gpg
This is exactly what gnupg and gnupg2 packages do

gnupg
Code:
# Rename the binaries:
for binary in gpg gpgv gpg-zip gpgsplit; do
  mv $PKG/usr/bin/${binary} $PKG/usr/bin/${binary}1
done
gnupg2
Code:
# If there's no /usr/bin/gpg, claim it:
if [ ! -e usr/bin/gpg ]; then
  ln -sf gpg2 usr/bin/gpg
fi

Last edited by marav; 03-11-2024 at 04:05 PM.
 
Old 03-12-2024, 07:14 AM   #9
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by marav View Post
This is exactly what gnupg and gnupg2 packages do

gnupg
Code:
# Rename the binaries:
for binary in gpg gpgv gpg-zip gpgsplit; do
  mv $PKG/usr/bin/${binary} $PKG/usr/bin/${binary}1
done
Hmmm, ./configure --program-suffix=1 ?
 
  


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
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM

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

All times are GMT -5. The time now is 03:25 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